Bug 4842 - Speedup shader buffer creation
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Video
Version: GIT MASTER
Hardware: All All
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2010-12-16 17:59 EST by Eugene C.
Modified: 2010-12-19 13:18:22 EST
1 user (show)

See Also:


Attachments
speedup (1.35 KB, patch)
2010-12-16 17:59 EST, Eugene C.

Description Eugene C. 2010-12-16 17:59:34 EST
Created attachment 2535 [details]
speedup

Building shader buffer can take a lot of time in case if you have many pk3 files with shaders, as actually it grows in algebraic progression according to number of shader files loaded. Suggested solution brings it back to linear dependency which results in significant speedup: from ~2s to ~50ms in my case
Comment 1 Tim Angus 2010-12-19 13:18:22 EST
Committed in r1807 (with minor modifications).