Huge performances leak

Datky

Member
Hi there,
I'm currently making a 3d dungeon crawler in GM 1.4, all was going good but I started to encounter huge performance leak (down to 20FPS, so 1/3 of the game speed)
I think it's because the room is some sort of labyrinth, so there's a lot of wall instances and I think it might be because of that.

How can I optimize the game beside only doing small rooms ?

Thanks
 

TsukaYuriko

☄️
Forum Staff
Moderator
Start the debugger and check how many texture swaps you have. You want to keep that number as low as possible. Detailed information about this topic should be easy to find on either the current or the old GMC, so I won't re-iterate everything here.

Also try running the profiler to check if there's anything unexpected on the CPU side that might be slowing down stuff.
 

Datky

Member
In the profiler, the d3d_draw_block function is the highest using 40% of the step, so I would need to lower that.
 
Top