#How to optimize loops?

14 messages · Page 1 of 1 (latest)

slate geyser
#

Depends on how often you need to run it

#

All that runs in 54 ms

#

then it'll take about 4 frames on 60fps

#

Yeah just saying that time it takes would be about 4 frames if ur game was running at 60 fps

#

So you shouldn't optimize unless you really want to

#

How many tiles are on screen?

#

Or is it 3d

#

That's a little more concerning

#

1s

#

Greatly depends on how much you need to have generated

#

If it's just at the start of the game then fuck it
If it's continously then it's questionable

gusty fiber
#

Just hide the initial load behind a loading screen

#

Minecraft has a loading screen during the initial load

#

Also why are you building this nested dictionary instead of just using a Vector3i as a key?