I didn’t want to bump and older post about this, so I made a new topic.
Basically, when I click the Preview button to test something out in my game, it takes over 30 seconds to load the game preview. This is a low resolution, retro game with sprites mostly being 16x16px and 32x32px. Regardless of what scene I try to preview, the preview takes just as long to load. For example, the Pause Screen scene, which has very few objects compared to a gameplay scene, takes the same time to load as any other scene.
When I look at the console as the preview is loading, I get what looks like this:
A lot of variable-related errors are being run through, but I get no errors in the editor as I declare them. Despite what the errors are saying, I have no variables (object, scene, or global) which are the wrong data type. I’ve confirmed this.
I do include multiple external event sheets at the beginning of every “gameplay” scene (for the Player Controller, among other events which are used in every scene). I’m wondering if this is a problem?
Once the preview does load, the game works perfectly fine and runs at a steady 60 FPS. It’s just the loading of the preview that seems to take too long.
Has anyone else experienced this, and if so, have you found anything that you were able to do or optimize which reduced the preview load time? I have about 100 global objects in my game, but like I said, none of them are of too high a resolution.
I’ve also gone through the Resources tab and removed any unused objects from there, but the long preview load times persist.
What should I try to get the preview load time to be more efficient?
EDIT: I’ve also tried disabling the events for including external event sheets in the scenes, but the long preview load times still persist even after this.

