Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Operative memory again [Re: VeT] #280878
07/24/09 14:03
07/24/09 14:03
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Its up to the dll, like your newton doesnt like the engine closing with
the newton dynamics still active.

That sort of thing...

But I think that idea is ruled-out by Techmuch's tests.
They look pretty damning for SED...



"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Operative memory again [Re: EvilSOB] #280885
07/24/09 14:28
07/24/09 14:28
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
I had the same results and printed them on the forum some time ago... so, we are waiting for Jcl smile


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Operative memory again [Re: VeT] #281464
07/27/09 12:47
07/27/09 12:47
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
If it happens with any script on your PC, it should also happen with any of our scripts, which is not the case - in fact we never observed this except for the mentioned compiler memory consumption. But we'll make another attempt to reproduce it, maybe it depends on a certain configuration.

Re: Operative memory again [Re: jcl] #281488
07/27/09 14:02
07/27/09 14:02
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Yes, but at least it was possible to work before, when i needed to restart SED some times per hours... bot now i may restart it every 10 minutes

Okay, i'll wait and hope that you'll deal with this.


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Operative memory again [Re: VeT] #282115
07/30/09 12:33
07/30/09 12:33
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Ok, we spent one day running Techmuc's minimum script on a large variety on machines, several SED and engine versions, and with professional debugging tools. We could never see any memory leak, except for the mentioned leak in debug mode. We also had SED run overnight under remote control and permanently started that script. After about 10,000 runs, the memory allocation was still exactly the same.

So in short, we are not any wiser than before.

Maybe you're always running in debug mode?
Or still using something in your script that does not free its allocated memory?

Re: Operative memory again [Re: jcl] #282123
07/30/09 12:51
07/30/09 12:51
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
//Ok, we spent one day running Techmuc's minimum script on a large variety on machines, several SED and engine versions
Thank you for your attempts to fix this.

Okay, i'll also try exactly his script, wait a little.


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Operative memory again [Re: VeT] #282126
07/30/09 13:04
07/30/09 13:04
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Well mine also has that same problem. SED increases memory usage everytime I run my scripts but somehow it depends on the memory used by the scripts.
For example, each time I run my dinoisland, the memory usage increase about 30Mb, while some example almost no significant increment. The solusion is just simple, I quit SED then restart it again... Maybe some kind of memory leak...

Well since I use LLiteC Free which is free, I have no complain though...

Re: Operative memory again [Re: bart_the_13th] #282130
07/30/09 13:17
07/30/09 13:17
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Okay, i created new folder, added new empty file test.c, add there
Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>

///////////////////////////////

function main()
{
  vec_set(screen_size,vector(800,400,0));
  vec_set(screen_color,vector(50,1,1)); // dark blue
  vec_set(sky_color,vector(50,1,1)); // dark blue
  video_window(NULL,NULL,0,"My New Game");
  d3d_antialias = 1;
  shadow_stencil = 3;
  
  level_load(NULL);
  vec_set(camera.x,vector(-250,0,50));
  vec_set(camera.pan,vector(0,-15,0));
}



1)
AnVir shows that SED eats 20.5 Mb (sorry, i dont have more proffesional tool smile )
I press "Run current script" button, now SED is 20.7 Mb
Close game window: 20.7

Close SED and launch again : 20.1 MB (???)
Hm... okay, now i add test.c to Main Script and press Test Run, 22.3 Mb (what???)
Close window, now its still 22.3 (even i dont expect this)

Reboot SED: 20.1 (heh, thats good)
Debug Run: 44 Mb (wtf ?!?!)
Close Engine: 36.4 Mb
Debug run again: 53Mb
Close Engine: 45 Mb

2) Lets look deeply
Reboot Sed: 20.1 Mb
Run Current Script: 20.2 (i'm really happy that you add this button smile )
Close window: 20.2 Mb
Run Current Script: 20.2 Mb
Close engine: 20.2 Mb
***
Yep, "Run Current Script" creates new acknex.exe and dont disturb SED.exe - thats real smile

Reboot: 20.1 Mb
Test run: SED.exe - 20.3 Mb, acknex.exe - 26 Mb
Close acknex: SED.exe - 20.3Mb
Test run: SED.exe - 20.3 Mb, acknex.exe - 26 Mb
Close acknex: SED.exe - 20.3Mb
***
Looking like stable: SED.exe didn't eat more memory, but what was that on the first launch?

I think that debug is no need to test as you said that its known leak


Hey, i got new idea: sometimes, when i perss F5 after placing some breakpoints, i run Debug mode, and sometimes test mode... Can you check that? In addition with the "engine runs before scripts save" problem?

Edit: if only i would get this, i'd think that AnVir dont work properly or something like that... but it happens not only to me..



1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Operative memory again [Re: bart_the_13th] #282131
07/30/09 13:19
07/30/09 13:19
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Originally Posted By: bart_the_13th
The solusion is just simple, I quit SED then restart it again...

Exactly, but now, as you have not too large project, you are need to restart SED one time per some hours, and while your project would be large enough, you'd be needed to restart it every 5-10 minutes... I hope, we'll find, where is the problem and Jcl would fix it.


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Operative memory again [Re: VeT] #282145
07/30/09 14:30
07/30/09 14:30
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP
Serious User
VeT  Offline OP
Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Yes..
Test Run is F5 (as it is said in menu in SED)
When i press Test Run button, all works fine (ist acknex.exe created and the size of SED.exe is stable), but when i press F5 key, Debug Run is activated and SED begin to eat too many memory without releasing... I think you can fix this easily smile


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Page 2 of 3 1 2 3

Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1