Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 527 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Memory Issues #235353
11/07/08 08:40
11/07/08 08:40
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
I am having problems relating to E1005. And I do not believe it to be due to a damaged file, and am wondering what limits there are for memory? I plan to convert to .dds, but in the meantime would like to have the largest levels run smooth in uncompressed formats.


At the time of error, which occurs upon loading a level - My nexus is showing around 350MB, with the system memory around 900MB. But this doesn't seem to add up, as the entity memory consumed is showing 214MB and Bmaps, 61MB, everything else is near 0, and it says I still have over 700MB available. My virtual memory is set over 4GB and the nexus is set at 200MB.

If E1005 appears after the engine loads the damaged file, then this cannot be the problem, because everything loads fine if I stay under a limit. The only time this happens is when my nexus is approaching near 400MB, and my sys_memory is showing over 900MB. If I load the same levels with a few less models, to keep it under the limit, then it works fine. I can get all my reasources to load fine if I stay under a limit. I've also run into a E2000 saying I ran out of D3D memory from time to time, although only when it shows the nexus close to 400MB and I escape the E1005.

Does the nexus amount to the MB on my 3dcard? And what uses ram and virtual memory? Am I going over my computers limit? My computer has 4GB of ram, a 512MB card, and 4GB virtual memory. The manual seems a little fuzzy on this, and I need to plan accordingly to develop a solid product.


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: Memory Issues [Re: William] #235355
11/07/08 08:56
11/07/08 08:56
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
If it's not a damaged file, E1005 means that you're going over your computer limits. The nexus setting is for speeding up the level loading only. When 350 MB nexus is consumed, you should also set up the nexus to 350 MB.

sys_memory indicates the amount of virtual memory consumed by your game. Textures, entities and levels all consume virtual memory. When they are active, i.e. visible or accessed by script, they also consume physical memory.

The memory of your PC is running out when either virtual or physical memory is completely consumed and can not be allocated anymore. If you see E1005, your PC is in an unstable state because no memory is left. E1005 is often followed by a PC crash because some other program, or DirectX itself crashes when it gets no memory.

If your PC is equipped with 2 GB physical memory, you have maybe less than 800 MB left for your game. When all your 900 MB game content consumes physical memory at the same time and can't be swapped to hard disk, you'll get E1005.

Conclusion: Your game probably consumes too much memory for a normal PC today. Try reducing texture and entity sizes. Use DDS. The F11 panel should tell you what the main memory consumption is caused from.

Re: Memory Issues [Re: jcl] #235358
11/07/08 09:20
11/07/08 09:20
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Thanks for the quick response JCL. This makes sense, and I had a feeling I was pushing the limits due to lightmap model duplicates, although I have a few more questions.

Why doesn't the memory consumed by entities, sounds, bmaps, ect. in the statics panel add up to what it is showing for the nexus and sys_memory variables? When added up it is less than half of the sys_memory.

Why does it show over 700MB of memory as still being available in the stats panel when the error occurs?

Is there a statistic showing the amount of physical memory(RAM) the game is using, if not, could there be one?

What is the graphics card memory(512MB) used for?

Last edited by William; 11/07/08 09:26.

Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: Memory Issues [Re: William] #235384
11/07/08 12:38
11/07/08 12:38
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
The texture memory indicated in the F11 panel is video memory. That's on your 3D card and is totally unrelated to the virtual and physical memory of your PC. DirectX uses memory management, so there is also virtual and physical video memory. Yes, I know that's confusing...


Moderated by  old_bill, Tobias 

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