Re: [GD-Windows] Reducing Shader Load Time
Brought to you by:
vexxed72
From: Andrew G. <ag...@se...> - 2007-08-28 16:47:33
|
Since Create*Shader relies on the inner workings of drivers I think the only way to reliably load that many of shaders without noticeable hitching is by doing it as a background task over a period of time. So long as your frontend doesn't require 10'000 shaders of course :) Andrew -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Glen Miner Sent: Monday, August 27, 2007 1:02 PM To: Gam...@li... Subject: [GD-Windows] Reducing Shader Load Time We're using native C++ & DirectX 9 and I'm looking for a way to reduce our the shader load times. We have a relatively large number of shader permutations in our engine and we probably load upwards of 10,000 small permutations to the card at startup. IO is not a problem -- it's only a 2 or 4 MB and the data is streamed in asynchronously -- the real hitch seems to be D3D. The hitch is surprisingly bad on my modern workstation with a Radeon X1800 -- it can take upwards of 18 seconds spread over a few frames to shunt that mess up to the card. In comparison, on one of the consoles we're targetting we can push the same shaders to the card in less than 1ms (the other has UMA, so shaders are registered in place instantly). I'm running very recent Radeon drivers, most recent DirectX SDK developer runtime but using retail D3D9, no validation or anything. I'm reasonably confident our artists who aren't using the developer runtime also experience this problem. 18 seconds. The stall seems to happen in CreatePixelShader & CreateVertexShader -- does anyone know any tricks to lube up the driver so it'll accept a that much love all at once? peace ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=3D555 |