Anyone else having memory issues with this game?

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Anyone else having memory issues with this game?

Re: Anyone else having memory issues with this game?

by Lewa » Sun Dec 10, 2017 9:23 pm

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. :)

Re: Anyone else having memory issues with this game?

by imawakka » Tue Nov 21, 2017 2:34 am

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?

by Lewa » Sat Nov 18, 2017 4:44 pm

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?

by imawakka » Fri Nov 17, 2017 4:15 am

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?

by Lewa » Fri Nov 17, 2017 4:01 am

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?

by imawakka » Fri Nov 17, 2017 3:29 am

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?

by Lewa » Fri Nov 17, 2017 1:27 am

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?

by imawakka » Thu Nov 16, 2017 6:33 am

Going to be honest and say I wasn't exactly sure which column to sort by for you. But from my brief research it sounded like sorting on the "Commit" column would display what was taking the most RAM.

So here is the image where the data is sorted by the Commit Column: https://ibb.co/jnRFcm

I do think it's odd that it's not at the very top of list the list...But I swear to you this doesn't occur unless Celaria is open. I didn't really see a way to view subprocesses of a parent process(if there even are any???) Am I doing something wrong? Or is there way I can dig deeper into this issue for you?

Also I tried the new version out and had the same result.

Re: Anyone else having memory issues with this game?

by Lewa » Thu Nov 16, 2017 5:24 am

Yes, this information helps greatly. :)

Did you try to sort the list in the ressource monitor by memory usage? (It should display what exactly is allocating all those gigabytes of RAM.)
The .exe file of celaria seems to use only 70MB. Maybe one of it's sub-processes does the allocations. (should be visible in the list by simply sorting everything by memory usage and looking for the process with the highest RAM usage.)


I recompiled the game with a newer engine version. (which fixes a few bugs internally.) You can download it by clicking HERE.

If you don't mind, check which process allocates that much ram and and try the new game version to see if the issue still persists there.

Re: Anyone else having memory issues with this game?

by imawakka » Thu Nov 16, 2017 2:15 am

I just restarted my computer.

This is before I start Celaria: https://ibb.co/hQ4WXm

This is a image I took right before closing it: https://ibb.co/iP7eJR (I'm honestly not sure how alarming those numbers on in the image BUT I know for a fact this doesn't happen unless I'm running Celaria)

This image is just to show file path: https://ibb.co/eEQAQ6

As for other issues I think the Soundtrack as far as I can tell sounds great. Also the mouse seems normal. Only thing I can say is After a few times of the game crashing whenever I started the game it would just go to black screen and I could just hear the game but not see anything. I fixed that by changing some values in the options.ini file as it was recommended in another part of the forum. When I could actually play the game I thought it felt really good and fluid.

I hope this information helps. If you need me to test anything else or look into something else let me know.

Top