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
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 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
loading a map-entity causes a delay, even if preloaded #374785
06/21/11 18:03
06/21/11 18:03
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Hi,
I am unsure about this, maybe you can shed some light. Seems, that I am somehow blind on this one...

I made a cave model and stored it as MDL with a tiled texture and a lightmap (incl. 2nd UV set). Ingame, I set preload_mode to 7 and explicitely create it once, do ent_preload and remove it again, just to make it 100% sure that it is preloaded (I generate the filenames procedurally, so, this is necessary).

Later, I infinitely ent_create the model several times and ptr_remove instances after a while. In fact - apart from the entity creation, which is blazing fast, because I preloaded everything - I have -no- feelable delay.

Now, I loaded the same model (without lightmap) into WED as static mesh and lightmapped it. The rest is unchanged, preload_mode is still = 7 and I explicitely preload it like I said above. But, I get a small feelable delay -each time- the map entity is ent_create'd (in comparison with the model variant), even though I preloaded it! It is "feelable" because camera moves slowly on a fps of 300 and than it drops shortly while the cave is ent_create'd...

What do you think could cause this?
What am I making wrong?

Last edited by HeelX; 06/21/11 18:06.
Re: loading a map-entity causes a delay, even if preloaded [Re: HeelX] #374899
06/22/11 11:58
06/22/11 11:58
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Map entities are not preloaded at all. Preloading is only implemented for sprites and models, as map entities are normally supposed to be loaded at the begin of the level only.

Re: loading a map-entity causes a delay, even if preloaded [Re: jcl] #374908
06/22/11 12:45
06/22/11 12:45
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
I see. Nevertheless, would you mind to add a "+" parameter for preload_mode to enforce this?

Re: loading a map-entity causes a delay, even if preloaded [Re: HeelX] #375685
06/27/11 08:06
06/27/11 08:06
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
I'll look into that. Map entities are just containers, so it should be not too hard to implement.

Re: loading a map-entity causes a delay, even if preloaded [Re: jcl] #375690
06/27/11 09:41
06/27/11 09:41
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline OP
Senior Expert
HeelX  Offline OP
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
That would be really, really great!


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