Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
3 registered members (7th_zorro, henrybane, AndrewAMD), 1,343 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Terrain Multitexturing -> Memory Usage #33159
09/14/04 00:17
09/14/04 00:17
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Hi together!
I wanted to ask a question that was recently scaring me all the time: What about the memory consumption when using multitexturing shaders? I'm using the ps 1.3 shader by ventilator (found in the wiki) which blends two textures smoothly. I haven't got any problems so far, but as the world our team is creating will tend out to be really huge, I'm scared the VRAM or RAM could run full! How about it? Does the shader use a feature similar to A6's "d3d_texshare" or, if not, how to do it?
Because if things keep like they are at the moment which means every mdl (I'm using the shader on mdls for more flexibility namely concave forms) loads the texture into the VRAM for its own, I will run out of memory in a very, very short time (note: target sys specs are 512 MB RAM / 64MB VRAM)...
Does anyone know about it?

Last edited by The Matrix; 09/16/04 22:22.

Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: Terrain Multitexturing -> Memory Usage [Re: Thomas_Nitschke] #33160
09/15/04 00:27
09/15/04 00:27
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
40 views and no one did know anything?
O_O!

Sorry, didn't mean to me impolite or impatient. I was just wondering why so many people are viewing this and no one is answering... maybe the (for me quite slow although DSL) forum speed is guilty?


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: Terrain Multitexturing -> Memory Usage [Re: Thomas_Nitschke] #33161
09/15/04 23:58
09/15/04 23:58
Joined: Jan 2004
Posts: 585
Alexandria, VA
Alkai Offline
Developer
Alkai  Offline
Developer

Joined: Jan 2004
Posts: 585
Alexandria, VA
Shaders definitely use additional memory. With clever scripting, you can avoid a lot of the frame rate loss and memory consumption. A couple points come to mind:

1) If you have multiple terrains, make sure they are sewn together. A crack in your terrains can cause framerate loss, as anything under the terrain (skybox or other) will have to be rendered as well.

2) Load only those terrains that are visible, using ent_create and ent_remove. You do not want to have 16 terrains placed in WED if the player can only see 4 of them at once.


If you gaze long into an abyss, the abyss will gaze back into you. 3.0 GHz Pentium 4 w/HT 1 Gig 400mhz DDR SDRAM 128mb NVidia GeForce FX 5200
Re: Terrain Multitexturing -> Memory Usage [Re: Alkai] #33162
09/16/04 10:25
09/16/04 10:25
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
If you plan to stitch your terrains, but dont know how - theres a feature article on it in March edition of 3PM.

3PM March


Check out Silas. www.kartsilas.com

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

Daily dev updates - http://kartsilas.blogspot.com/
Re: Terrain Multitexturing -> Memory Usage [Re: William] #33163
09/16/04 22:21
09/16/04 22:21
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Thanks for your replies both of you!
I actually planned to do some clever scripting such as ent_remove and ent_create, the point for me now is:
Is there any way to tell the shader itself that it should share the textures used with other objects that have assigned the same shader and are using the same texture/s?
Btw I'm completely idiot to shaders so you would propably have to explain a bit more precise if you do
Thanks in advance!


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: Terrain Multitexturing -> Memory Usage [Re: Thomas_Nitschke] #33164
09/16/04 22:27
09/16/04 22:27
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
texture memory usage has nothing to do with shaders.

it depends on wether you use the same textures for all terrains (mtlskin) or separate textures for each terrain (entskin).

of course the first solution will consume much less texture memory because the textures will be shared.

Re: Terrain Multitexturing -> Memory Usage [Re: ventilator] #33165
09/18/04 16:35
09/18/04 16:35
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Ahaa thanks thats what I was after!
Ok then I'll give it a try; not sure though which line to change but I'll find out
Thankies ^^


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: Terrain Multitexturing -> Memory Usage [Re: Thomas_Nitschke] #33166
09/21/04 20:14
09/21/04 20:14
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline OP
Senior Developer
Thomas_Nitschke  Offline OP
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
Ok I got it working, thx everybody

New idea! What if you could write a simple code using the ffp to make every model share its skin with any other models that have the same skin? What I mean is, would it be possible to achieve the d3d_textshare effect also with models and terrain without loosing any skinning information on MDLs?
Or is that feature already on the forecast and I didn't notice... just wondering because everybody, including me, is complaining about models each using their own textures instead of sharing them!
Any ideas?


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?

Moderated by  Blink, Hummel, Superku 

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