Open michalove opened 9 years ago
I just noticed that we don't actually re-load levels. I load them once at startup and only re-load them when the camera scale changes. This means that something else migth be slow. My guess is that it might be the fact that the images (visualizers) are shown the first time. The (I do some calculations when loading the images, but I highly doubt that these are the bottleneck. They're not really difficult calculations.)
Could you use the profiler to check how long the levelEnd:draw and the levelEnd:display calls take? I have a relatively high-end system, so I don't really notice any loading time there. If it's the display function that takes long, I will look into optimizing it. Some of the calculations I can do at game startup.
Often there is too much loading time at the end of the level.