D
Daniel2210
Guest
I started working on my first ever 3D game a couple of days ago. Things were going pretty well until I started making the first room. It was a 5000x5000 room with 64x64 blocks composing the entire floor, so when I started up the game and noticed how bad the lag was, I thought it was just because I had so many instances running at one time. I added code that deactivated all instances that were 500 pixels away from the player, but the game still ran at around 10 FPS. After a lot of experimenting, I found out the lag had to do with the size of the room. I shrunk it down to 1000x1000 and the game ran at a comfortable 45-60 FPS. My suspicions about room size slowing down the game were confirmed when I placed only 5 instances in a 5000x5000 room and the game still ran at an unplayable 10 FPS.
Is there any way to counteract this, or am I forced to make my game with a series of rooms no bigger than 1000x1000? Any help would be appreciated.
Is there any way to counteract this, or am I forced to make my game with a series of rooms no bigger than 1000x1000? Any help would be appreciated.