generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: do tables have lag?

Previous Thread :: Next Thread 
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
03 May 2015 11:12 PM
Lets say I have a table that holds 50,000 variables would there be lag when trying to edit/check the state of the variable?
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
03 May 2015 11:13 PM
if u iterated through it

u'd probably want a delay every 1000-5000 iterations
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
03 May 2015 11:13 PM
Not when indexing, but yes when iterating without yielding.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 May 2015 11:14 PM
Nope, Lua's main purpose was to be able to efficiently do this.
Although why do you have a whole 50 thousand lol
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 May 2015 11:14 PM
Wow I got ninja'd pretty badly
Report Abuse
Eternalfireeater is not online. Eternalfireeater
Joined: 01 May 2011
Total Posts: 10027
03 May 2015 11:15 PM
I got ninja'd too :(
Report Abuse
cpmoderator12345 is not online. cpmoderator12345
Joined: 26 Jan 2013
Total Posts: 15651
03 May 2015 11:18 PM
why do you have 50 thousand [2]

Save the plants! Plants > animals!
Report Abuse
VirtualMouse is not online. VirtualMouse
Joined: 05 Mar 2015
Total Posts: 67
03 May 2015 11:37 PM
^ it's called curiosity
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
04 May 2015 03:23 PM
I was thinking of a grid based hitbox for gui's that did not use loops to compair positions to see if something is there but I was unsure of the limitations of it

I made a game that had 2.5k variables in a table for a 50x50 grid (used a script to make the table for me) and just set the variable true for a hitbox and false for air
http://www.roblox.com/games/197131891/Snake-Game
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
04 May 2015 03:25 PM
Can tables even hold that many elements? o_o
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
04 May 2015 03:28 PM
Collision = {
["X0.0Y0.0"] = false,
["X0.02Y0.0"] = false,
["X0.04Y0.0"] = false,
["X0.06Y0.0"] = false,
... until
["X0.98Y0.98"] = false
}
This is what my table looks like
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image