Page 2 of 2

Re: Anyone else having memory issues with this game?

Posted: Fri Nov 17, 2017 1:27 am
by Lewa
Yes, it's odd that the memory allocations don't seem to show up in the list.

Let's try a few things. Given that texture filtering doesn't seem to work properly (something may be going wrong with the xExt.dll) it's a good idea to remove the DLL from the game and see if that improves the memory usage.

Here is the download of this version: Download
Try this one and check if that improves the RAM usage.

If that doesn't work i'll remove another DLL from the game and repeat this process until we find the issue.

Re: Anyone else having memory issues with this game?

Posted: Fri Nov 17, 2017 3:29 am
by imawakka
So first things first removing that dll doesn't fix the problem. But I did in fact discover something that may help.

OK. So this is going to sound kind of strange but I found a way to actually play the game. It seems when I first boot the game my RAM just starts getting drained. If I go start a level the draining continues. BUT if I leave the level by going back to menu and renter the level my RAM stops getting drained...

I feel like that is kind of wacky. So if you need me to try and make a video as proof I can try and do so using OBS.

Re: Anyone else having memory issues with this game?

Posted: Fri Nov 17, 2017 4:01 am
by Lewa
Ok, that is really strange.
I'll look into the code which handles all the map/ressource loading between the menu and gameplay transition to see if i can spot something. (Still weird that this only occurs on some PCs.)

To make sure that the audio library isn't the culprit (the audio library is multithreaded and quite old) i have recompiled yet another version of the game, this time with the audiere library removed. (The game changes the music between the menu and level transition. Just want to make sure that this isn't the culprit.)
Here is the download.
Try this version out.

It would be great if you can record this behaviour. Maybe i'll be able to spot another clue in the video.

Re: Anyone else having memory issues with this game?

Posted: Fri Nov 17, 2017 4:15 am
by imawakka
I just wanted to give a quick response and say that that last compile did NOT drain me at start up so I think the audio definitely has something to do with it.

It's worth noting every time you send me one of these I have to change the values in the option.ini file to 1 so I can avoid the black screen.
Also, for my workaround before you sent this last compile the game eventually crashed(Not because of RAM maxing out) after prolly 15-30 minutes of playing but the error dialog box closed itself before I could even read it.

Re: Anyone else having memory issues with this game?

Posted: Sat Nov 18, 2017 4:44 pm
by Lewa
Alright.
So, here is another version of the game, this time with only the audio library removed. There is no sound output but at least it should be playable on your PC for the time being. > DOWNLOAD
The good news is that i already replaced the audiere sound library with the internal sound solution of the engine due to other issues (not related to this bug.). The bad news is that i can't implement it in the alpha so you have to wait until the final game is out.

If the game crashes again after 15-30 minutes play, make sure to grab a screenshot of the error message so i can investigate it further.

Also, can you tell me which option you modify in the option.ini file?

Re: Anyone else having memory issues with this game?

Posted: Tue Nov 21, 2017 2:34 am
by imawakka
Hey! Sorry about my absence I had a busy weekend.

So the last 2 builds are working great in the regard of not sucking up my RAM. On the very last build you sent when I first started it up the screen was no longer fuzzy! However, when I changed the resolution to 1920x1080 and set to full screen the screen went black. So I went into the options.ini file and changed some of the values.

On start up we have these 2 set to 0(down below). I just change their value to 1 and then open the game and the screen is no longer black and I can see the game. The problem is after changing those values the screen does get that fuzziness.

CreateTexturesOnDemand=0
AlternateSyncMethod=0

All in all I can now play the game and I don't really mind playing the game mute so that's awesome. Do you have an estimate when you will be releasing the full version?

Re: Anyone else having memory issues with this game?

Posted: Sun Dec 10, 2017 9:23 pm
by Lewa
No worries.
On the very last build you sent when I first started it up the screen was no longer fuzzy!
Great to hear that. :) (Probably the audio bug somehow interfered with the other dll which was responsible for the texture filtering.)

Also, now i know what type of bug this is (the one causing the black screen.).

The issue persists on Windows 10 and started after Microsoft released the creators update for Windows 10. After that, switching to fullscreen resulted in a black screen.
The only known workaround for this was to enable vsync with "AlternateSyncMethod". I have no idea if this will ever be properly fixed. I don't have access to the source code of the core engine and given that this bug persists for quite a while, chances are it never will be.

Also, "CreateTexturesOnDemand" shouldn't affect the black screen bug. But it seems to affect the texture filtering (making the blocks all fuzzy.)
Leave that value at 0 but enable the alternatesyncmethod like this:

Code: Select all

CreateTexturesOnDemand=0
AlternateSyncMethod=1
Enabling vsync in the options menu before doing so (while in window mode) might also help (and switching to fullscreen after that).

This way you will still be able to play in fullscreen while retaining the texture filtering.



As to when the full game comes out,... not quite sure yet. (It might be early next year. January/February) It is more or less complete (featuring 25 singleplayer maps at the time of writing), though i took a short break from finishing this game (for the past few months) in order to do a bit of research into other engines/tech as i want to move away from Game Maker: Studio (the engine which i'm currently using for Celaria).

As of right now i'm in the process of developing my own custom game engine which i'll be using for future projects. :)