Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 662 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
help with out of video memory ... #248752
01/28/09 21:58
01/28/09 21:58
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hi,

I've currently a strange problem.

I have 4 levels and every single level works fine.

But if I change between those levels a few times GS crashes with:

D3D_DrawPrimitive: D3DERR_OUTOFVIDEOMEMORY
Malfunction W1246: D3D driver failure: D3DERR_OUTOFVIDEOMEMORY

If I press F11 and look at the available video memory it gets less everytime I change the levels.

For example:

When I start in Level 1 the stats show me about 350mb of free video memory.
Then I change to Level 2 and I have 270mb free.
Then I change back to Level 1 it shows me 180mb of free video memory and so on.

Have I missed some lines of code that could free the used video memory?

I don't use any bmaps that I could purge or something and all Levels are pure model-level.

Has anyone an idea???

Best regards,
Pegamode.

Re: help with out of video memory ... [Re: pegamode] #248782
01/28/09 23:55
01/28/09 23:55
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi pegamode

Just a comment on my experience today.
I upgraded to 7.664 today and changed the visible flags. This helped
with the speed. The program does'nt have to maintaint backward codes I guess.

Ottawa smile

edit : look in ask the developers for situation with memory.

Last edited by Ottawa; 01/29/09 00:13.
Re: help with out of video memory ... [Re: Ottawa] #248797
01/29/09 05:29
01/29/09 05:29
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hi Ottawa,

I use the 7.664 since it was released.

What exactly do you mean with "... changed the visible flags"?

Do you set all entities to invisible before you load the new level?

Pegamode.

PS: Now I'll take a look at "ask the developers" ...

Re: help with out of video memory ... [Re: pegamode] #248802
01/29/09 07:49
01/29/09 07:49
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
There's one thing I've tested and it seems to be one reason of my video memory issue.

My three playable characters are set by ent_create into the level if they are located in this level.

So, everytime I change the level ent_create is called after level_load.
It seems that the allocated video memory for this entities are not set free with level_load.
A short test with ent_purge before level_load seems to work.

Can someone confirm that the allocated video memory for entities that are set by ent_create isn't set free with level_load ???

Pegamode.

Re: help with out of video memory ... [Re: pegamode] #248834
01/29/09 12:51
01/29/09 12:51
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany

Re: help with out of video memory ... [Re: pegamode] #248901
01/29/09 21:44
01/29/09 21:44
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi Pegamode smile

I had a problem similar to yours ...it came back.

Try proc_kill = 4 in one function at a time and look with F11 at the impact.
Look for while (1) with c_move, c_rotate and collisions.

Try it one function at a time so you'l know which one is guilty of eating
your memory. smile

Ottawa

Re: help with out of video memory ... [Re: Ottawa] #248918
01/30/09 04:51
01/30/09 04:51
Joined: Jan 2009
Posts: 36
Philippines
U
unknown_master Offline
Newbie
unknown_master  Offline
Newbie
U

Joined: Jan 2009
Posts: 36
Philippines
hmmm...how much capacity that your video card contains?? my video card contains 256 MB but it can render big map but slower rendering...and if i run it there is no error else if my code are wrong... frown







From: Philippine Game Developers.

Re: help with out of video memory ... [Re: unknown_master] #248922
01/30/09 05:52
01/30/09 05:52
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
I added ent_purge for all entities that were created by ent_create before changing the level and now it works ... but I think I have to take a deeper look into that, because as fas as jcl told me I don't have to do that for entities created by ent_create ... but if I remove those lines the problem comes back.

@unknown_master ... it doesn't depend on the capacity of the video card, because the video memory gets less step by step with every level change. Even with 1GB or more it would get out of memory, sooner or later.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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