Memory Leaks
Displaying 1-4 of 4 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Eldritch05

I don't know if this has been addressed before, or even if it's already been fixed in a build I don't have access to, but it's become something of an annoyance.

The most recent public build of VERGE (11 Dec 05) doesn't appear to free memory correctly, or at least as well as older versions do. At it's most basic, this is the code that's causing the trouble:

int i;
while(1) {
i=LoadImage("testpic.png");
FreeImage(i);
}


In the 11 Dec 05 build, watching my page file usage in the Task Manager shows that, while VERGE thinks the image is gone, it's still loaded in memory somewhere. If left to run long enough, that code snippet will eventually lead to Windows Virtual Memory error messages. I stopped at that point, but I guess it would eventually crash.

Now, note that VERGE does think the image is gone. If I try to Blit() the image after it's been freed, VERGE breaks. It thinks it's gone, but my computer thinks differently.

However, if I use Serinor's version of VERGE (28 Sep 04), the memory issue vanishes. The page file usage never moves no matter how long the program runs.

Again I don't know if this is useful or important or just me being overly picky, but the graphics-intensive compo game I'm working on gets REALLY slow if I start playing too long.

(Incidentally, while I'm thinking about it, the 11 Dec 05 version blows chunks when I drop it into Serinor's directory to try and use an updated engine for my major project. I haven't had time to test it as thoroughly, but since I know the newer version absolutely despises Serinor's save files, it may have something to do with FileReadQuad()/FileWriteQuad() incompatibilities between the two versions of the engine.)

Posted on 2007-08-17 12:17:15

Overkill

Yeaaah, this problem got fixed about a few weeks after that December 05 release. We just haven't actually put out a new version yet for some reason. Why haven't we released in over two years even though there's been significant extra features added? I dunno. I'll remedy that!

In the meantime (username/password anonymous/anonymous): [latest dev build] [changelog]

Posted on 2007-08-17 15:07:36

Eldritch05

Thank you! A lot!

It's too late to use it with my compo entry (one of the pitfalls of having to use a public terminal to access the Internet as opposed to my own computer and the fact that we're moving to another state today) but I appreciate it all the same. Hopefully, with some effort, Serinor will get a new engine version too, and that's what really excites me.

Good luck on getting a new public build out. I know there must be others who'll appreciate it.

Posted on 2007-08-19 13:10:48

Eldritch05

Okay, so, the new build works great in Epic of Serinor except for two things (so far):

* right("testing right()",0) returns "testing right()" instead of "". This threw off my scrolling text. Passing left() a zero still returns an empty string. I don't know which you want to use, but they should at least be the same. I worked around it, but it'd be nice if I didn't have to.

* Something screwy happened to Buttons 3 and 4, previously Esc and Space. Serinor's character menu, which used to be bound to Space (Button 4) is gone, and the Reset Game prompt, previously on Esc (Button 3), comes up when pressing Space. That's not the half of it though.

I rebound Button3 to "H" and Button4 to "J" use SetButtonKey() for testing, leaving Menu() hooked to Button4 and ResetGame() to Button3. What ended up happening is that pressing J (Button4) calls ResetGame() and pressing H does nothing. No matter what I tried, Button3 always called its hooked function when pressing Button4, and pressing Button3's key never did anything.

So yeah. Those are the only problems I found yesterday while updating Serinor. Of course, FileReadQuad()/FileWriteQuad() are still incompatible between the two versions, but I managed a way around that too, since I very much want save files from previous releases to be valid. It's also pickier about how I use the ! operator, but I was probably just sloppy before anyway.

Posted on 2007-08-21 12:38:02


Displaying 1-4 of 4 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.