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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (dr_panther, 7th_zorro), 1,203 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Prevent showing Textures in dedicated sever mode? #373936
06/14/11 11:53
06/14/11 11:53
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
No one could answer my question so far:
If I decide not to open a video window (video_screen = 0 in the first frame) for my dedicated server, is there a way to prevent texture loading?

We have some very large textures. I don't want to increase the game size by saving every model twice, once with and once without skins, so I was wondering if there was a way for the engine to not load textures and only geometry.
Thanks...


~"I never let school interfere with my education"~
-Mark Twain
Re: Prevent showing Textures in dedicated sever mode? [Re: Germanunkol] #374063
06/15/11 08:49
06/15/11 08:49
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I know no direct way to switch off texture loading. You could use external textures, and replace them by small dummy textures of the same name in the server folder.

Re: Prevent showing Textures in dedicated sever mode? [Re: jcl] #374094
06/15/11 13:55
06/15/11 13:55
Joined: Feb 2011
Posts: 135
Myrkling Offline
Member
Myrkling  Offline
Member

Joined: Feb 2011
Posts: 135
Perhaps setting d3d_texlimit to a very small value could be a solution, too?

Re: Prevent showing Textures in dedicated sever mode? [Re: Myrkling] #374099
06/15/11 14:14
06/15/11 14:14
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
d3d_texlimit seems good but i dont think it would reduce the loading time if thats what you wanted to reduce also

Re: Prevent showing Textures in dedicated sever mode? [Re: darkinferno] #374102
06/15/11 14:25
06/15/11 14:25
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
d3d_texlimit has no effect on the server, as the textures are not created in video memory anyway. Only exception is when you do something with the textures, like locking or processing them.

Re: Prevent showing Textures in dedicated sever mode? [Re: jcl] #374376
06/18/11 08:09
06/18/11 08:09
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
Hm, so the textures are loaded on the server, but not into video memory?

Our serer and client folders are the same, we're using the same binary with different startup command line options, and since the files are all in .wrs archives the files are all automatically loaded. But we could make the server only call mdls ending in "_srv.mdl", and not assign any skins to those models in the first place...

I don't like the fact that this way we'll have to ship all models twice.

But I guess we'll have to try...


~"I never let school interfere with my education"~
-Mark Twain
Re: Prevent showing Textures in dedicated sever mode? [Re: Germanunkol] #374381
06/18/11 09:51
06/18/11 09:51
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
Just out of curiosity, why do you want to ship all models twice, is this only for saving some seconds loading time on the server?

In my experience, a game should be as simple as possible, all complications that you add can increase the likeliness of problems, especially in a multiplayer game.

Re: Prevent showing Textures in dedicated sever mode? [Re: Spirit] #374407
06/18/11 13:44
06/18/11 13:44
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline OP
Expert
Germanunkol  Offline OP
Expert

Joined: Jun 2006
Posts: 2,640
Earth
If I can prevent it, I don't want to ship all models twice. But to my understanding, as soon as a model is loaded, its texture is loaded as well. In the game, the model's textures are pretty large and so the game uses lots of memory. To keep the (dedicated) server from using lots of memory, I want to prevent loading textures on it.

So I need to load different models with no textures but the same geometry, don't I?

Last edited by Germanunkol; 06/18/11 13:45.

~"I never let school interfere with my education"~
-Mark Twain
Re: Prevent showing Textures in dedicated sever mode? [Re: Germanunkol] #374408
06/18/11 13:52
06/18/11 13:52
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
If your models got only external textures, it is easier to avoid loading the textures.
Just build an own wrs with all the textures, and build another wrs with very small dummy textures, that you put in the server's folders.
The dummy textures only need to be created once, because you only need one simple texture with different names, while the models still need to be different because of collision sizes etc.

Re: Prevent showing Textures in dedicated sever mode? [Re: Germanunkol] #374409
06/18/11 13:53
06/18/11 13:53
Joined: Oct 2009
Posts: 149
Germany
M
muffel Offline
Member
muffel  Offline
Member
M

Joined: Oct 2009
Posts: 149
Germany
Whats about removing the skin after loading. this should solve in someway the memory issue, but would slowdown additionally the loading process.

muffel

Page 1 of 2 1 2

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