Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, aliswee), 835 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Strange behaviour #469825
12/10/17 18:28
12/10/17 18:28
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline OP
Senior Member
preacherX  Offline OP
Senior Member

Joined: Sep 2005
Posts: 352
Germany
Does someone know what can trigger this:
https://www.youtube.com/watch?v=bDLbxAAUnF4&feature=youtu.be

Look at the statistic panel, the memory of entities is increasing without an end. Normally this value is about 200, but sometimes, after using level_load(); this strange thing happens and the fps are going down.

It only happens after using level_load(); - could this be a bug?

Normally all entities should be removed after level_load or not?

Does someone else encounter such a problem?

Re: Strange behaviour [Re: preacherX] #469826
12/10/17 18:38
12/10/17 18:38
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hey

Never faced anything like that, but my guess is that you just messed/missed something up after loading new level. I once had an issue similar to yours, but not the same. Amount of functions (loops) was increasing each time I called 'level_load'. Reason was the loop that handled all props (elevators, plaftorms etc) on the level. I forgot to break it before calling 'level_load' (I was calling that loop over and over again as soon as level was loaded).

Greets.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Strange behaviour [Re: 3run] #469828
12/10/17 19:30
12/10/17 19:30
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline OP
Senior Member
preacherX  Offline OP
Senior Member

Joined: Sep 2005
Posts: 352
Germany
Do you know when this value should increase? I thought that the entities memory would only grow if a new entity is loaded with ent_create... Or not? So even if a function in a loop is creating new entities, this should not happen, or am I wrong? ... I just also found out that this value won't return to zero after a new level_load -normally it will go to zero if you perform a level_load.

Re: Strange behaviour [Re: preacherX] #469829
12/10/17 19:43
12/10/17 19:43
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
That value is num_entities, you can see that from 'default.c' -> 'def_debug_pan' panel.

Originally Posted By: preacherX
I thought that the entities memory would only grow if a new entity is loaded with ent_create... Or not?
num_entities - will grow if entities are created (doesn't matter how).
You have to check your code for 'ent_create' first (that's what I would do). I think some logic get's messed up after level_load.

Originally Posted By: preacherX
I just also found out that this value won't return to zero after a new level_load -normally it will go to zero if you perform a level_load.
This is weird. Do you use view entities? They aren't purged at level change, but I'm not sure if they will affect 'num_entities'.

Edit: just made a test, view entities don't affect 'num_entities'...

Greets!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Strange behaviour [Re: 3run] #469831
12/10/17 19:51
12/10/17 19:51
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline OP
Senior Member
preacherX  Offline OP
Senior Member

Joined: Sep 2005
Posts: 352
Germany
I don't meant the number of entities but its memory:

https://1drv.ms/i/s!AnPFFAcZiQdslchqJim9fp6iZGyjNA

The number of entities is normal in that case.


Last edited by preacherX; 12/10/17 19:52.
Re: Strange behaviour [Re: preacherX] #469832
12/10/17 19:59
12/10/17 19:59
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Ohh, sorry, then that value comes from 'd3d_texskins'.
So my question about using view entities is still valid (they also don't get purged on level_load).


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Strange behaviour [Re: 3run] #469833
12/10/17 20:03
12/10/17 20:03
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline OP
Senior Member
preacherX  Offline OP
Senior Member

Joined: Sep 2005
Posts: 352
Germany
I'm also using some view entities but I remove them before using level_load.

Re: Strange behaviour [Re: preacherX] #469836
12/10/17 21:58
12/10/17 21:58
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Do you use any shader that bmap_creates anything?


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Strange behaviour [Re: alibaba] #469900
12/13/17 07:04
12/13/17 07:04
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline OP
Senior Member
preacherX  Offline OP
Senior Member

Joined: Sep 2005
Posts: 352
Germany
Not in that moment... It seems that the problem lies somewhere else. Maybe a broken pointer or an invalid array. At the moment it runs fine again but I didn't changed something... I hate those bugs which are only appearing sometimes! wink

Re: Strange behaviour [Re: preacherX] #469902
12/13/17 07:09
12/13/17 07:09
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline OP
Senior Member
preacherX  Offline OP
Senior Member

Joined: Sep 2005
Posts: 352
Germany
Thanks for the hints, guys! laugh

Page 1 of 2 1 2

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