Okay, so this one is bizarre

So I'm actually trying to test the first chapter of a VN I've made. Unfortunately, I've run into a bug that I can't even begin to try and track down because of how it occurs. Hoping someone at least has some idea what is going on so I can track down the issue. So, it's like this:

I have a maigc shop in the game, where the player can work to make money. The job has a fair number of checks and loading the scene does seem to cause a bit of lag even when it works. However, the 'even when it works' part is the issue. The first time someone tries to load the scene, it goes to a blank screen. However, if you make a save right before the 'work' scene, let it freeze the first time, then close the game and load the save...it loads 100% perfectly on the second try. This happens not just with testing from inside the VN maker program, but with a packaged copy on both my system and at least one other person's that I got to test it for me.

The only thing that I can think of is that the scene is actually overloading the memory that the program itself can handle. But, while it IS a fairly complex scene, it shouldn't be anywhere near complex enough to do that. Not unless VN Maker is hilariously bad at handling scene transitions? Or can't handle very much going on in a specific scene? If either of those are true, I'm afraid I'm going to be forced the abandon the software entirely.
Hi, we actually have and had much more complex mechanics in VN Maker Games such as Mini Games, Battle System, Way-Point Maps, etc. so I don't think that your scene will be that complex, at least from what I hear. I think the problem will be somewhere else.

I think if you get the black screen, you should always check the debug console (F12) to see if there are any errors such as loading errors, etc. happening. You can post them here if you don't understand them yourself so we can check it.
I managed to pseduo-fix the issue by splitting the scene in two, reducing the load on the engine. It and other places are still painfully slow to load at times and seem to have random 'blank screen' moments. AS such, I took your advice to pull up the debug console. I hadn't messed with that much before, since I'm using purely the Action options (the whole point in using the engine was that I didn't need to mess with code. I actually have a B.S. in Software Engineering but I utterly despise coding, and wanted to keep it to a minimum after years of using Ren'py). Given that fact (that I'm using purely the pre-build action options) I was rather alarmed to see errors popping up at all! And I have no idea what they are on about:

Bugs.jpg

I'm utterly baffled why it seems to be producing these errors pretty much everywhere in the game, as it's referring to and failing to find an asset that is (presumably since it's nothing I did) built into the engine/software? Though, oddly, it's not freezing on them most of the time. I moved around the game at random until it did the blank screen thing...and it's the exact same errors as it had even when it didn't do that. Too large a scene will freeze it every single time (as happened before) but even with the game broken up into smaller chunks it still has it happening sporadically. Not to mention the occasional prohibitively long load between scenes, despite the fact that I'm using exclusively Change Scene commands with the commands set to clear all assets?

What on earth is going on here? I've been doing a fair bit of digging and ran into other people that have had performance issues (long load times as compared to freezing) related to using 1080p images and video, which admittedly I'm using both quite heavily. But that should never be an issue, unless someone REALLY butchered the way the engine runs, there shouldn't be a functional difference in engine performance between image quality, as only a complete idiot wouldn't offload most of the actually graphical processing to outside handling, with the engine's part in that being little more calls to OpenGL or DirectX, whichever the engine is using. And neither of those should struggle to handle 1080p on any modern PC, let alone on the high-performance gaming and rendering machine I'm using -_-.
Hi, my apologies for the experience you are making. If you are using 1080p videos, especially multiple at a time, that can indeed slow down the system due to fact how it is processed (HTML5). But images, depending on the amount of course, should be not an issue if your PC is capable of handling Full HD in real-time. (Did you try a non Full HD project?)

But I don't know your scenes, if you load 100 1080p images on a non-SSD drive, I wouldn't be surprised. Also, you should update graphics drivers supporting OpenGL. People who reported "slow-motion" performance to us needed to update the graphics driver.

Otherwise, if you know a way how to easily reproduce your issue, you can also send us your project. Just send a PM with a download link.

Do you use the Stable or the BETA version? Also do you use Standalone or Steam version?
I don't have VNM and because of that take the following hint with care, but it seems that VNM shares a quirk with RMMV and other HTML5-based programs.

In your error message of "failed to load" the path given is only partial, relative to the project root. RMMV does the same with its loading errors.
However in half the cases where such an error message was given, the cause of the error was not in the part of the path given but in the hidden path, between drive letter and project root.
To be more precise those errors happened when the project was stored in a path that broke the networking rules (that all HTML5-games have to follow).
Networking rules mean only latin letters, arabic numbers or a very limited number of special signs. Spaces and most of the other special signs (or non-latin letters) must not be used or they can cause loading errors.

You might want to check where your project is stored for that possibility.
Okay, I'm going to put what I ended up having to do here, since inevitably someone else is going to have this issue. The first thing to note: the HD video isn't actually what caused the issue. They seem to load and run just fine, without ever causing any performance drain. Which, even the optimization of the Webm format, makes total sense.

The 1080p PNGs, on the other hand, where one of the major issues. For whatever reason, this engine does not like them. At all. The second most important thing I did was convert all of them from 1080p PNGs to 1080p JPGs, which caused a noticeable improvement in between-scenes loading speeds. So, if you're having problems, I strongly recommend converting everything, even the images that came with the game, over into JPG. Given that I and many of the other testers are running full-blown modern gaming rigs (and yes, running the game off an SSD in my case), this is utterly asinine. But that's just how it is, unfortunately.Without digging into the engine code and figuring out what the hangup is, there's no fixing it.

Now, let's get to the rage-inducing aspect that caused the single biggest problem for me. Essentially, whichever idiotic, incompetent, hack, wrote the Call and Call Scene functions needs to be fired, then run out of town after being tarred and feathered. Both of them (not Call Comment Event, which seems to be fine, but the Call option from a hotspot, or the Call Scene option in general) are HORRIBLE NIGHTMARISH MONSTROSITIES OF DEATH. Using either of them, even ONCE, in any scene will triple or quadruple that scene's resource usage. Worse, I'm not sure what utterly backasswards way that the engine has to be written to cause this, but using them in a sub-scene will affect the scene it's placed under/called from. Meaning that, if you have something like this:

Magic Shop Exterior Scene
-> Magic Shop Interior
->-> Talk with NPC

And each scene has a single Call Scene function in it, let's say attached to a hotspot for purposes of calling up a character menu (as I did), the slowdown will occur x3 times, building on each other. Until, by the time you get about 4 layers deep, it will hit the limits of even a state-of-the-art gaming machine's processing power and the game will freeze. Seriously. Tar. Feathers. Running someone out of town.

Long story short. DON'T USE THEM. FOR THE LOVE OF ALL THAT IS HOLY AND GOOD, NEVER EVER EVER EVER EVER EVER EVER EVER EVER use them for ANYTHING. Ever. It's stupidly, ridiculously awkward to get around if your using the Action UI, but it's possible. What I ended having to do (which is utterly asinine and rage-inducing) was to replace every single usage of Call or Call Scene, with manipulations of Label and Change Scene to produce the same effect. Doing so immediately cut about 75% of the lag issues and ALL of the Blank/Black screen freeze issues that I was getting. For low-performance machines, I still had to do the previously mentioned PNG to JPG conversion, since people running on lower-end machines were still getting some freezing issues. In combination, the performance fixed version of the same exact build I put out to testers the first time hasn't produced a single freeze for any of them.

To say that I find this utterly maddening, as these are the type of issues that should never appear in a professionally designed and sold engine, is understating things a bit. Unfortunately, it is what it is. If you're stuck hip-deep in a project using this engine and having performance issues, do the above two things and cross your fingers -_-.
Okay, I'm going to put what I ended up having to do here, since inevitably someone else is going to have this issue. The first thing to note: the HD video isn't actually what caused the issue. They seem to load and run just fine, without ever causing any performance drain. Which, even the optimization of the Webm format, makes total sense.

The 1080p PNGs, on the other hand, where one of the major issues. For whatever reason, this engine does not like them. At all. The second most important thing I did was convert all of them from 1080p PNGs to 1080p JPGs, which caused a noticeable improvement in between-scenes loading speeds. So, if you're having problems, I strongly recommend converting everything, even the images that came with the game, over into JPG. Given that I and many of the other testers are running full-blown modern gaming rigs (and yes, running the game off an SSD in my case), this is utterly asinine. But that's just how it is, unfortunately.Without digging into the engine code and figuring out what the hangup is, there's no fixing it.

Now, let's get to the rage-inducing aspect that caused the single biggest problem for me. Essentially, whichever idiotic, incompetent, hack, wrote the Call and Call Scene functions needs to be fired, then run out of town after being tarred and feathered. Both of them (not Call Comment Event, which seems to be fine, but the Call option from a hotspot, or the Call Scene option in general) are HORRIBLE NIGHTMARISH MONSTROSITIES OF DEATH. Using either of them, even ONCE, in any scene will triple or quadruple that scene's resource usage. Worse, I'm not sure what utterly backasswards way that the engine has to be written to cause this, but using them in a sub-scene will affect the scene it's placed under/called from. Meaning that, if you have something like this:

Magic Shop Exterior Scene
-> Magic Shop Interior
->-> Talk with NPC

And each scene has a single Call Scene function in it, let's say attached to a hotspot for purposes of calling up a character menu (as I did), the slowdown will occur x3 times, building on each other. Until, by the time you get about 4 layers deep, it will hit the limits of even a state-of-the-art gaming machine's processing power and the game will freeze. Seriously. Tar. Feathers. Running someone out of town.

Long story short. DON'T USE THEM. FOR THE LOVE OF ALL THAT IS HOLY AND GOOD, NEVER EVER EVER EVER EVER EVER EVER EVER EVER use them for ANYTHING. Ever. It's stupidly, ridiculously awkward to get around if your using the Action UI, but it's possible. What I ended having to do (which is utterly asinine and rage-inducing) was to replace every single usage of Call or Call Scene, with manipulations of Label and Change Scene to produce the same effect. Doing so immediately cut about 75% of the lag issues and ALL of the Blank/Black screen freeze issues that I was getting. For low-performance machines, I still had to do the previously mentioned PNG to JPG conversion, since people running on lower-end machines were still getting some freezing issues. In combination, the performance fixed version of the same exact build I put out to testers the first time hasn't produced a single freeze for any of them.

To say that I find this utterly maddening, as these are the type of issues that should never appear in a professionally designed and sold engine, is understating things a bit. Unfortunately, it is what it is. If you're stuck hip-deep in a project using this engine and having performance issues, do the above two things and cross your fingers -_-.

Can not agree more....! Thanks for the sharing, I just encountered the same Call Scene issue. Hope the developers can solve this BIG BUG....
Hi, my apologies for the experience you are making. If you are using 1080p videos, especially multiple at a time, that can indeed slow down the system due to fact how it is processed (HTML5). But images, depending on the amount of course, should be not an issue if your PC is capable of handling Full HD in real-time. (Did you try a non Full HD project?)

But I don't know your scenes, if you load 100 1080p images on a non-SSD drive, I wouldn't be surprised. Also, you should update graphics drivers supporting OpenGL. People who reported "slow-motion" performance to us needed to update the graphics driver.

Otherwise, if you know a way how to easily reproduce your issue, you can also send us your project. Just send a PM with a download link.

Do you use the Stable or the BETA version? Also do you use Standalone or Steam version?
Call Scene has many bugs. For example, if you call scene , and you have hotspots call common event that with "wait" in it, all code below "wait" won't run, these code just be ignored.

Please help....
Necro-post notice: @pokerfacy

Please go ahead and start your own thread

Original thread: https://forums.rpgmakerweb.com/threads/okay-so-this-one-is-bizarre.117841/