CPU side for the whole timedemo:
Code: Select all
Time spent in profile = 148.31308s.
Visits/calls:
- max = 162697, in R_AdvanceSurface_NMip0 at 0x53f04, on line 14195
- 1754321 in total
Executed instructions:
- max = 3345192, in R_AdvanceSurface_NMip0+142 at 0x53f92, on line 14251
- 268380120 in total
...
Executed instructions:
23.02% 61786615 R_AdvanceSurface_NMip0
8.07% 21667860 R_VisPlaneShaderQuickMip
5.61% 5.62% 20.77% 15054648 15082592 55734874 _P_RunThinkers
5.35% 14349094 R_AdvanceSurface_TMip0
5.26% 5.32% 5.59% 14105733 14278839 15003289 _BM_P_CrossBSPNode
4.24% 11385011 R_AdvanceSurface_NMip1
4.13% 11071492 R_SpriteColumnShader_Masked2
3.50% 3.50% 3.65% 9386054 9402807 9807779 _R_DrawColumn
2.95% 7913727 R_AdvanceSurface_TMip1
2.66% 2.66% 2.84% 7128908 7150053 7621201 stream_texture
2.04% 5464306 R_DrawTSurface_Masked1
1.99% 1.99% 4.61% 5327425 5338878 12366009 _P_CheckPosition
1.98% 1.98% 2.06% 5313686 5318877 5538690 _R_PointInSubsector
1.89% 1.90% 5.64% 5081655 5096160 15135288 _R_DrawVisSprite
1.46% 3909170 R_VisPlaneShaderWarp
1.41% 3772994 R_AdvanceSurface_TMip2
1.38% 3691096 R_AdvanceSurface_NMip2
1.37% 1.37% 1.37% 3684954 3687554 3687554 _BM_A_Mux1x2
1.35% 1.36% 1.36% 3635526 3637466 3637466 _BM_A_Mux3x2
1.33% 3574756 R_BSPHyperPlane
0.94% 0.94% 0.97% 2512464 2516054 2597007 init_stategroups
0.90% 0.90% 0.90% 2404748 2406088 2406088 _BM_A_Mux2x2
0.89% 0.89% 0.94% 2381504 2387405 2526039 R_ViewTestSpriteLines
0.86% 0.87% 0.92% 2307637 2339659 2481371 stack_visplane_area
0.80% 0.80% 6.64% 2147361 2151333 17821195 _P_LookForPlayers
0.79% 2116031 R_AddLine_loop
0.76% 2035553 R_StackTransparentSurface
0.74% 0.74% 6.37% 1990738 1998893 17105514 _BM_P_CheckSight
...
Instruction cache misses:
11.09% 11.15% 54.57% 2786538 2800794 13709102 _P_RunThinkers
6.48% 6.51% 13.36% 1628915 1634473 3354975 _P_CheckPosition
6.44% 6.94% 7.11% 1616801 1744181 1786452 _BM_P_CrossBSPNode
5.04% 5.07% 8.54% 1267104 1273006 2144728 _R_DrawVisSprite
4.85% 4.87% 12.00% 1219499 1222627 3015465 _BM_P_CheckSight
3.89% 3.90% 4.08% 976281 978949 1023763 _PIT_CheckLine
3.54% 3.54% 3.76% 888256 889951 944701 R_AddSpriteSpans
3.21% 3.25% 3.34% 806535 815885 839164 _R_DrawColumn
2.95% 2.96% 14.69% 740586 742622 3690299 _P_LookForPlayers
2.73% 2.74% 32.28% 686794 688275 8108937 _P_SetMobjState
2.40% 2.42% 2.46% 603949 607207 618915 _R_PointInSubsector
1.85% 1.86% 1.89% 464713 467583 475357 R_ViewTestSpriteLines
1.49% 1.50% 14.63% 375226 376585 3674987 _P_TryMove
Code: Select all
$053f56 : jmp $53f5a(pc,d0.w*2) 0.06% (164773, 1978860, 0)
$053f5a : bra.s $53f92 0.02% (63585, 512704, 796)
$053f5c : bra.s $53f86 0.01% (34257, 276624, 546)
$053f5e : bra.s $53f7a 0.01% (31832, 257096, 1155)
$053f60 : bra.s $53f6e 0.01% (35099, 283608, 1260)
$053f62 : adda.l d6,a0 1.19% (3180419, 12769116, 6367)
$053f64 : move.b (a2,d4.w),d0 1.19% (3180419, 38211184, 2634)
$053f68 : addx.l d3,d4 1.19% (3180419, 12572, 138)
$053f6a : move.w (a5,d0.w*2),(a0) 1.19% (3180419, 50936912, 0)
$053f6e : adda.l d6,a0 1.20% (3215518, 153636, 4881)
$053f70 : move.b (a2,d4.w),d0 1.20% (3215518, 38652764, 2664)
$053f74 : addx.l d3,d4 1.20% (3215518, 6656, 264)
$053f76 : move.w (a5,d0.w*2),(a0) 1.20% (3215518, 51499324, 0)
$053f7a : adda.l d6,a0 1.21% (3247350, 158000, 9623)
$053f7c : move.b (a2,d4.w),d0 1.21% (3247350, 39046644, 6995)
$053f80 : addx.l d3,d4 1.21% (3247350, 8588, 1498)
$053f82 : move.w (a5,d0.w*2),(a0) 1.21% (3247350, 52008868, 0)
$053f86 : adda.l d6,a0 1.22% (3281607, 168032, 10740)
$053f88 : move.b (a2,d4.w),d0 1.22% (3281607, 39454004, 5987)
$053f8c : addx.l d3,d4 1.22% (3281607, 7820, 1582)
$053f8e : move.w (a5,d0.w*2),(a0) 1.22% (3281607, 52556112, 0)
$053f92 : dbra d2,$53f62 1.25% (3345192, 14304704, 0)
$053f96 : movea.l $ffe0(a6),a5 0.06% (164773, 1979028, 0)
Code: Select all
Used cycles:
35.38% 1683464532 command_base
28.39% 30.17% 30.17% 135076456014357997781435799778 R_DoColumnPerspCorrect
10.26% 10.26% 10.26% 488014668 488014668 488014668 VPRenderSpanQuickMip
4.72% 224793024 R_VPLoadTexture
3.91% 186283314 ALGO_P_CrossBSPNode
2.12% 100933040 R_DoColumnTextureUV
2.11% 2.11% 2.11% 100378774 100378774 100378774 extract_subvisplane
1.80% 1.80% 1.80% 85565356 85565356 85565356 VPRenderSpanWarp
1.51% 71730022 P_CrossSubsector_body
1.19% 1.36% 26.05% 56741114 647813221239476156 AddMidWall
0.94% 44577754 R_ViewTestAddLine
0.82% 39203548 R_VPRenderPlane
0.70% 0.84% 3.83% 33341938 39864486 182313884 AddLowerWall
0.69% 32842868 project_node
0.54% 0.64% 3.66% 25560078 30535764 174079676 AddUpperWall
0.52% 0.52% 0.52% 24822376 24828764 24828764 InterceptVectorsUF