BLOG ARTICLE 2005/08/04 | 1 ARTICLE FOUND

  1. 2005.08.04 D3D 장치 상태 변경 비용 목록 ( Accurately Profiling Direct3D API Calls )

Gpgstudy에서 본 내용입니다.

대략 많이 비용이 들겠다고 생각했었는데. 실제 수치 정보가 있내요. 참조해서 -.- 프레임 업!

API CallAverage number of Cycles
SetVertexDeclaration6500 - 11250
SetFVF6400 - 11200
SetVertexShader3000 - 12100
SetPixelShader6300 - 7000
SPECULARENABLE1900 - 11200
SetRenderTarget6000 - 6250
SetPixelShaderConstant (1 Constant)1500 - 9000
NORMALIZENORMALS2200 - 8100
LightEnable1300 - 9000
SetStreamSource3700 - 5800
LIGHTING1700 - 7500
DIFFUSEMATERIALSOURCE900 - 8300
AMBIENTMATERIALSOURCE900 - 8200
COLORVERTEX800 - 7800
SetLight2200 - 5100
SetTransform3200 - 3750
SetIndices900 - 5600
AMBIENT1150 - 4800
SetTexture2500 - 3100
SPECULARMATERIALSOURCE900 - 4600
EMISSIVEMATERIALSOURCE900 - 4500
SetMaterial1000 - 3700
ZENABLE700 - 3900
WRAP01600 - 2700
MINFILTER1700 - 2500
MAGFILTER1700 - 2400
SetVertexShaderConstant (1 Constant)1000 - 2700
COLOROP1500 - 2100
COLORARG21300 - 2000
COLORARG11300 - 1980
CULLMODE500 - 2570
CLIPPING500 - 2550
DrawIndexedPrimitive1200 - 1400
ADDRESSV1090 - 1500
ADDRESSU1070 - 1500
DrawPrimitive1050 - 1150
SRGBTEXTURE150 - 1500
STENCILMASK570 - 700
STENCILZFAIL500 - 800
STENCILREF550 - 700
ALPHABLENDENABLE550 - 700
STENCILFUNC560 - 680
STENCILWRITEMASK520 - 700
STENCILFAIL500 - 750
ZFUNC510 - 700
ZWRITEENABLE520 - 680
STENCILENABLE540 - 650
STENCILPASS560 - 630
SRCBLEND500 - 685
TWOSIDEDSTENCILMODE450 - 590
ALPHATESTENABLE470 - 525
ALPHAREF460 - 530
ALPHAFUNC450 - 540
DESTBLEND475 - 510
COLORWRITEENABLE465 - 515
CCW_STENCILFAIL340 - 560
CCW_STENCILPASS340 - 545
CCW_STENCILZFAIL330 - 495
SCISSORTESTENABLE375 - 440
CCW_STENCILFUNC250 - 480
SetScissorRect150 - 340


1차 자료 출처 ( Gpgstudy.com )

2차 자료 출처 ( MSDN )
AND