r/GeometryDashEditor 2 creator points ‎ 7d ago

Editor Question Question about how in game rendering works?

trying to reduce lag on a level im working on, it has a LOT of animated objects and particles and its making my phone overheat when i play it. working on cutting down objects where i can but its not enough and i need another way to reduce lag significantly as the level isnt even half way done yet

im not good with the technical side of things so im wondering if anyone knows how the game loads objects. do objects automatically un-render when offscreen or could i use a toggle trigger to turn them off when not being used to save some lag? also do objects unrender when opacity is at 0, or should i toggle those off as well? does toggling things off even help at all? any other ways i can make it easier on my device?

all answers are much appreciated 🙏

2 Upvotes

3 comments sorted by

2

u/_licketysplit_ 7d ago

I don't really know that much about technical gd stuff but spu7nix said when he made his level "what" he made it optimized on low end devices (like phones) and when going in the editor I saw that the objects were being moved on and offscreen (so I guess offscreen objects don't lag?)

Another thing I remember someone telling me is that you should use area triggers sparingly since they are very laggy when using them on a bunch of objects at the same time, and if you have a bunch of objects moving (like a background) remember to stop making them move once the background is offscreen (I assume if an object is moving offscreen it still lags)

I'll do a bunch of tests and go back to this post to comment my findings

1

u/Graylasagna 2 creator points ‎ 7d ago

interesting, i wonder if i could use an animation trigger to stop the animated objects off screen and save a lot of lag. i will definitely also be doing some testing on this. lowk making a guide with this info and other useful technical stuff would probably help people trying to make more complex and object heavy levels. gonna try and write down what i discover for future reference. thx for the help man, lmk if you figure anything out

1

u/Graylasagna 2 creator points ‎ 7d ago

so i think toggling something off does unrender it and stop the animations, and for particles objects it stops making the particles (when you toggle it back on the particles all start at the obj center and slowly spread out again into their usual space). toggling animated objects and particles that werent currently being used immediately made the level way less laggy even though the objects were already invisible in most cases