Pages: [1]
  Print  
Author Topic: Detail thing i noticed...  (Read 9478 times)
fromhell
Administrator
GET A LIFE!
**********

Cakes 35
Posts: 14520



WWW
« 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

asking when OA3 will be done won't get OA3 done.
Progress of OA3 currently occurs behind closed doors alone

I do not provide technical support either.

new code development on github
Jakash3
I EDITED ALL MY POSTS OUT LOL!!! TAKE THAT, INTERNET FORUM!!
Half-Nub


Cakes -9
Posts: 89


SELF-IMPOSED CENSORSHIP FTW!


« 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



ADMIN NOTE: Post restored from backup.  The childish act of self-censoring all posts will not be tolerated.
« Last Edit: March 06, 2014, 11:34:06 PM by fromhell » Logged

BY THE WAY I GAVE UP ON OPENARENA
Pages: [1]
  Print  
 
Jump to: