Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Future of OA
Home
Help
Search
Login
Register
OpenArena Message Boards
>
id Tech 3
>
Engine
>
Detail thing i noticed...
Pages: [
1
]
« previous
next »
Print
Author
Topic: Detail thing i noticed... (Read 373 times)
fromhell
because leilei is trademarked
Administrator
GET A LIFE!
Cakes 1202
Posts: 13503
Detail thing i noticed...
«
on:
March 21, 2013, 01:45:20 pm »
Even with r_detailtextures set to 0, the detail stage in a shader still gets its texture loaded and switched despite not rendering anything from it.
Any way around this in the shader loader code, like parsing a shader in reverse to omit disabled stages completely for the final shader load?
This would make OA run a bit faster in r_detailtextures 0 (but not r_vertexlight 1, as that mode already reduces everything to one stage).
«
Last Edit: March 21, 2013, 01:48:57 pm by fromhell
»
Logged
NEVER ASK AN INDIE DEV WHEN IT'S DONE
TWITER.
STEAM GROUP
Jakash3
Half-Nub
Cakes -1
Posts: 57
Re: Detail thing i noticed...
«
Reply #1 on:
March 21, 2013, 10:45:24 pm »
I modified tr_shader.c a bit to do a conditional for each R_FindImageFile in the ParseStage function, not loading the image if (r_detailTextures is false and the detail label was already detected).
http://pastebin.com/raw.php?i=Law7JAWD
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Main Site
-----------------------------
=> News
===> News (French)
===> News (German)
===> News (Spanish)
===> News (Japanese)
===> Old news
-----------------------------
OpenArena
-----------------------------
=> General
=> Technical Snafus
=> Multiplayer
=> Image Gallery
===> Candidates
-----------------------------
OpenArena Contributions
-----------------------------
=> Audio
=> Models
=> Development
=> Graphics
=> Maps
=> Idea pit
=> Help Wanted
-----------------------------
Specialized branches
-----------------------------
=> OAPro
-----------------------------
Other projects
-----------------------------
=> FSFPS
=> Blasphemer
-----------------------------
id Tech 3
-----------------------------
=> Engine
=> cgame/game/ui
-----------------------------
Not OpenArena
-----------------------------
=> General
Loading...