Lawlzee / UnityMapGenerator

5 stars 0 forks source link

Frame Rate Drop #21

Open Electric-Cat opened 2 weeks ago

Electric-Cat commented 2 weeks ago

I don't know how it happens, but while playing with the mod, there's a chance to generate a map that just kills the FPS, dropping it to less than 1 FPS, making it impossible to play.

I don't know how to provide more information than this; sometimes I can play normally, and other times I end up on this map that kills the FPS.

I also can't tell which stage this happens in, but it seems to be a cave; at least the two times it happened, it was in a cave.

It would be good to bring back the option to allow the standard stages of the game. I preferred when it alternated between procedural and standard maps.

Lawlzee commented 2 weeks ago

Thanks for reporting the bug, It thing the issue is with how I handle the ground node graph in the latest update. The ground node graph is used for ground enemy path finding. The issue is probably that my ground node graph has way too many nodes compared to the vanilla node graph. That means that the path finding algorithm probably causes the lag spikes.

I do plan on reworking the ground node graph to solve this issue.