Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (AndrewAMD, fogman, Grant, juanex), 972 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How can I purge map entities from memory? #13285
08/16/03 11:11
08/16/03 11:11
Joined: Jan 2002
Posts: 644
USA
tesanders Offline OP
Developer
tesanders  Offline OP
Developer

Joined: Jan 2002
Posts: 644
USA
I'm cycling through a number of map entities in a 'preview' window via ent_morph(), and have noticed that, as each is loaded, it seems to be retained in system memory. As a result, after I cycle through a few dozen, I get a 'nexus too small' error.

Calling ent_purge() before the ent_morph() doesn't seem to prevent this, (reading up on it, it just removes textures from video memory). Is there a way to remove the model from system memory?

Cheers,
Thomas

Re: How can I purge map entities from memory? #13286
08/17/03 06:31
08/17/03 06:31
Joined: Dec 2002
Posts: 293
Minnesota
Peter Churness Offline
Member
Peter Churness  Offline
Member

Joined: Dec 2002
Posts: 293
Minnesota
Wow. This is totally weird. I was just today having the exact same problem as a result of doing the exact same thing you are doing. In my case I was using ent_morph to toggle through sky models (and I also tried the ent_purge / ent_create method resulting in the "nexus too small" error. FYI: I changed the nexus value in WED and it didn't help.

Can anyone help us here??

Re: How can I purge map entities from memory? #13287
08/18/03 00:50
08/18/03 00:50
Joined: Nov 2002
Posts: 792
Berne, Switzerland
elsewood Offline
User
elsewood  Offline
User

Joined: Nov 2002
Posts: 792
Berne, Switzerland
I would say that's an engine bug! Post it under engine bug.
Meanwhile you could do an ent_remove, ent_create instead of the ent_morph (hope that that works and does not produce the same error...)


A bus station is where the bus stops. A train station is where the train stops.
On my desk I have a workstation...
Re: How can I purge map entities from memory? #13288
08/20/03 23:13
08/20/03 23:13
Joined: Dec 2002
Posts: 293
Minnesota
Peter Churness Offline
Member
Peter Churness  Offline
Member

Joined: Dec 2002
Posts: 293
Minnesota
FYI:

I changed the nexus value in the engine command line using this syntax:
-NX 80
...and that did the trick. I'm now able to cycle through all 28 sky models I have, but it ends up taking up a large amount of virtual memory (which is what the command line above does - tells the engine to reserve 80 meg of virtual memory on the hard drive).

Does anyone know how to clear the virtual memory??

Re: How can I purge map entities from memory? #13289
08/20/03 23:41
08/20/03 23:41
Joined: Jan 2002
Posts: 644
USA
tesanders Offline OP
Developer
tesanders  Offline OP
Developer

Joined: Jan 2002
Posts: 644
USA
quote:
I would say that's an engine bug! Post it under engine bug.
I'm actually trying to figure out if it's a bug, or if it's a bona-fide feature -- is 3DGS just being nice and caching these things after first-load?

-t

Re: How can I purge map entities from memory? #13290
08/21/03 00:15
08/21/03 00:15
Joined: Dec 2002
Posts: 293
Minnesota
Peter Churness Offline
Member
Peter Churness  Offline
Member

Joined: Dec 2002
Posts: 293
Minnesota
See JCL's comments here


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | 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