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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 guests, and 5 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 1 of 2 1 2
Memory Issue #249872
02/04/09 18:20
02/04/09 18:20
Joined: May 2006
Posts: 133
ME
Mysterious Offline OP
Member
Mysterious  Offline OP
Member

Joined: May 2006
Posts: 133
ME
Hello

Here is my statstics:
Hardware:
CPU: AMD Athlon X2 5600
Memory: 2G DDR2 PC-800
VGA: Palit 8600GT
Mainboard: MSI (Code: MS-7260)
Software:
OS: MS Windows XP Professional Service Pack 2
DirectX: November 2008
IDE: CodeGear C++Builder 2007
...............
Ok the problem is that I was using A7 v7.0.7 and my project was reserve about 370 MB from the physical memory
now after I updated to any newer version of A7 (last time I tested v7.6.6) the amount of used memory is increased to become about 480 MB ... I didn't change anything in my program just the ackenx.lib of course

Is there a way to avoid this issue I really want to use the new soft-shadow in the newer versions.

I'll be waiting for the answer.

thanks in advance
Mysterious smile

Re: Memory Issue [Re: Mysterious] #249893
02/04/09 19:11
02/04/09 19:11
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Are you sure that you are not confusing physical and virtual memory? Physical memory is managed by the Windows OS, not by a program like Gamestudio.

When you want to know how much memory your game needs, look at the virtual memory and the nexus, you see it in the debug panel.

Re: Memory Issue [Re: Tobias] #249969
02/05/09 10:06
02/05/09 10:06
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I obviously can't fix the physical memory on your PC - if you have problems with that, go in a computer shop and buy some more. But I suppose you meant virtual memory.

Engine updates normally consume the same or less memory, not more. If it's different with a particular project of yours, check by what element it's caused. The [F11] panel helps you in that. Please post again when you know some details about which object consumes more memory and under which circumstances.

Re: Memory Issue [Re: jcl] #250025
02/05/09 15:12
02/05/09 15:12
Joined: May 2006
Posts: 133
ME
Mysterious Offline OP
Member
Mysterious  Offline OP
Member

Joined: May 2006
Posts: 133
ME
Well...
first of all thank you for responding

in "Windows Task Manager" under the "Mem Usage" column the number was on older version about 370MB and when I update to the newer one it turns to about 480MB

ok I'll try to track the reason of this problem and post again

Mysterious smile

Re: Memory Issue [Re: Mysterious] #253390
02/24/09 14:33
02/24/09 14:33
Joined: May 2006
Posts: 133
ME
Mysterious Offline OP
Member
Mysterious  Offline OP
Member

Joined: May 2006
Posts: 133
ME
Ok after a very hard work I figured out that the memory issue is from ENTITY,
after I take a look at the "atype.h" header and compared it with the one came with A7 v7.0.7 the difference is in the ENTITY struct there is two additional pointers to ENTITY which are
"
struct ENTITY* shadow; // shadow sprite or model
struct ENTITY* parent; // parent entity
"

so to see this by your self try two scene with only one ENTITY the difference is more obvious when more than one entity is created.
in my scene there is more than 100 entity so the memory increased about 100 Mega bytes

if there is a solution for this I'll be thankful

thanks in advance
Mysterious smile

Re: Memory Issue [Re: Mysterious] #253393
02/24/09 14:51
02/24/09 14:51
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
The two pointers add 8 bytes, but 12 bytes were removed at another place, so an entity is in fact 4 bytes shorter than with version 7.07. None of our levels consumes more memory in 7.07 than in 7.70.

Re: Memory Issue [Re: Mysterious] #253395
02/24/09 14:53
02/24/09 14:53
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Still, thats only an additional 8 BYTES per Entity. Not very significant.

JCL: As a side question on these additions to the entity struct, do shadow and parent
ever get populated by the engine if you are NOT using the templates?


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Memory Issue [Re: EvilSOB] #253397
02/24/09 14:58
02/24/09 14:58
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Parent is automatically set in map entities, but shadow is not set unless you set it by script.

Re: Memory Issue [Re: jcl] #253406
02/24/09 15:41
02/24/09 15:41
Joined: May 2006
Posts: 133
ME
Mysterious Offline OP
Member
Mysterious  Offline OP
Member

Joined: May 2006
Posts: 133
ME
Ok another test...

in the med -version 6.902- I load one model of the models I used in my project
and then from File menu ->Engine Preview
the process "acknex.exe" take in the task manager under column "Mem Usage" = 31.392K
but when I load the same model in the med -version 6.894- and do the same
the process "acknex.exe" take in the task manager under column "Mem Usage" = 24.144K

please see the difference it is only one model!

again wait for your help JCL

thanks

Re: Memory Issue [Re: Mysterious] #254152
03/01/09 13:26
03/01/09 13:26
Joined: May 2006
Posts: 133
ME
Mysterious Offline OP
Member
Mysterious  Offline OP
Member

Joined: May 2006
Posts: 133
ME
Hello

I was waiting for 5 days now and no answer, so may I know what happens, did anyone who had read this post try the last test so he can tell me the result

or what I have to do now!!!

Mysterious smile

Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

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