Game freezing and slowing down computer: Help!

In the opening to my game I have a text cutscene and then it opens with the player in his house. The problem is that when it gets to the transfer event, the screen turns black (as its set to under the transfer event command) and it stays black for five seconds, then starts to fade in but stops midway and the screen remains tinted black with nothing working.


Then, when I try to close the playtest window, it doesnt respond and I have to resort to force-quitting it. It also leaves a significant lag on my computer for the next five minutes or so.


It worked fine last night, and the only thing different since then was that I put some new audio into the game folders and tested a BGM+BGS in the opening scene (the one thats causing trouble), but then removed them. 


TL;DR: The screen stops midway of a transfer event and becomes unresponsive. 


Please help! 
Thanks so much!
Several possibilities, either you now have some damaged files or something like bad logic in parallel processes or loops bloack the main game loop.


Can you post a screenshot of the transfer event and check the next map for autoruns and parallel processes?
The event is bigger, but this is the part in question. Ive tried messing with things a bit, but nothing made a difference.



and this is the autorun that plays on the map that the player is transferred to. This map is only (and can only) be visited once, so an erase event command works fine in this case (rather than a self switch)


Why do you have the tint screen in there?  The screen automatically turns black during a transfer and then fades in again.  If your additional tint screen command is changing it to black (I haven't tested what 0, 0, 0, 0 is), where's the command to set it back to normal?


You're turning on two switches in that autorun event.  Do you have any other events on the map or in common events that are conditioned by those switches?  What's happening in them?
the reason might be that during the process of playing a game, your registry store too much infomation and data which will slow down your system running speed, you can down load some program to clean the registry and speed up the computer. Another reason can be that once your computer is infected by malware...some malware will slow down system loading....
The tint screen was part of something that was scrapped. I just removed the event command. Forgot it was there. 
The two switches are for common events that are used for mechanics later on in the game, so I cant really move/remove them.


What stumps me more is that it was working fine last night, and the only changes made were just adding in some extra sounds to their respective folders.


Thanks!
Did removing the tint screen make any difference?  Please show screenshots of the two common events (the full window, and all the event commands, not just a cropped section or a few commands).  Or if you don't want to do that, don't turn on those switches and see if it makes a difference.  That'll at least let you know whether they have anything to do with the issue or not.


If all you really did was add some extra sounds, then maybe take away those sounds and see if anything changes.  Could be format, or could be that you actually did more than just that and don't remember.
The common events havent changed at all and never caused any problems so I highly doubt that's causing any problems. I made a copy of the game and removed all of the new sound files from there. The issue still persists. 


Thanks
And did removing the commands to turn off those switches make a difference?
The common events havent changed at all and never caused any problems so I highly doubt that's causing any problems.

That is an assumption that is not always correct, and one you need to not only check out this time, but learn how to handle in general.


I suggest you follow the link "bughunting" in my signature and read about timing problems.


If you have several independent processes in the game loop triggered at different times, but depend on them to be processed in a specific order, then adding something completely unrelated to the game loop can change that processing order, causing a logic that previously worked to suddenly fail.


And since only autoruns and parallel process common events can be switched on that way, you have such a timing-critical sequence in your game loop that you have to check for this class of problems.
After messing around with the many switches that are set in one of the opening cutscenes (did not post screenshots of that), by moving them around and getting rid of unnecessary ones (setting things to off before they were turned on; switches are already off unless turned on) it worked. I got rid of one switch that Is necessary later on in the game, and realized that that is whats causing the bug. I moved it to another place to see if maybe the placement mattered, but then the game froze when turning it on. Not sure what's up with this.


Thanks
It's a switch to a common event. I'm gonna try merging the two common events, as they both are parallel processes. I dunno.
Figured it out! In the common event that the Switch in question triggers there is a SE in a loop (that I wanted to play throughout the game). This was causing the issue. I moved it from the loop and everything works fine, except there is an annoying lag in the game, so I just removed the SE entirely.

Original thread: https://forums.rpgmakerweb.com/threads/game-freezing-and-slowing-down-computer-help.72045/