- Home /
Question by
Theacesofspades · Apr 12, 2013 at 10:08 PM ·
javascriptloadlagrenderbig
How can i make my game lag less?
So im making a game and im using all cubes. I would like to make it so it shows all of the cubes in the trigger of the player but then it doesnt render the other ones. Or something along those lines. Can anyone tell me how to do this? Thanks!
Comment
Answer by iwaldrop · Apr 12, 2013 at 11:13 PM
All you have to do is set the renderers (and colliders perhaps) off by default. When the the objects enter the 'trigger of the player', then turn their renderers/colliders on. When they exit, turn them back off.
Your answer
Follow this Question
Related Questions
simple checkpoint/save/load system in javascript 4 Answers
Time.timescale cause extreme lag? 1 Answer
Why does my game lag horribly after 4 A.I. spawn? 0 Answers
This is making heaps of lag 1 Answer
Using OnWillRenderObject 1 Answer