Framerate not matching profiler
MOOtant
Join Date: 2010-06-25 Member: 72158Members
I know there are topics about FPS on getsatisfaction but I have something different to show. I checked profiler output and the FPS counter when looking at exactly the same spot. I get 30 FPS there (probably since like 20 builds). Render thread takes 15 ms that frame and game thread takes ~35 ms. Even added together (15+35=50) it doesn't explain 30 FPS.
Is the render queue not flashed instantly after frame (frame, barrier, frame, barrier, frame, flush)? I have maximum pre-rendered frames = 3 in NV control panel.
Hardware: Phenom X4 3.0 GHz, GTX 260, 4GB 1600MHz DDR3 (in final version I expect to be able to look at walls and 2 models and get more than 30 FPS but I digress)
Here are the screenshots:
<img src="http://dl.dropbox.com/u/6615362/ns2/2011-04-16_00001.jpg" border="0" class="linked-image" />
<img src="http://dl.dropbox.com/u/6615362/ns2/2011-04-16_00002.jpg" border="0" class="linked-image" />
<img src="http://dl.dropbox.com/u/6615362/ns2/2011-04-16_00003.jpg" border="0" class="linked-image" />
<img src="http://dl.dropbox.com/u/6615362/ns2/2011-04-16_00004.jpg" border="0" class="linked-image" />
Is the render queue not flashed instantly after frame (frame, barrier, frame, barrier, frame, flush)? I have maximum pre-rendered frames = 3 in NV control panel.
Hardware: Phenom X4 3.0 GHz, GTX 260, 4GB 1600MHz DDR3 (in final version I expect to be able to look at walls and 2 models and get more than 30 FPS but I digress)
Here are the screenshots:
<img src="http://dl.dropbox.com/u/6615362/ns2/2011-04-16_00001.jpg" border="0" class="linked-image" />
<img src="http://dl.dropbox.com/u/6615362/ns2/2011-04-16_00002.jpg" border="0" class="linked-image" />
<img src="http://dl.dropbox.com/u/6615362/ns2/2011-04-16_00003.jpg" border="0" class="linked-image" />
<img src="http://dl.dropbox.com/u/6615362/ns2/2011-04-16_00004.jpg" border="0" class="linked-image" />
Comments
That means you are slaved to the server rate, which peaks at 30 ticks.
You need to join a server to get proper client-only rendering.
32630µs is 32.630 ms
1s = 1000ms
=> 1000/32.630 = 30.64 FPS
So the number stated in your r_stats is pretty much correct given that there is probably some rounding in the code.
32630µs is 32.630 ms
1s = 1000ms
=> 1000/32.630 = 30.64 FPS
So the number stated in your r_stats is pretty much correct given that there is probably some rounding in the code.<!--QuoteEnd--></div><!--QuoteEEnd-->
^ winner.
Second weird thing was that I get 40-60 FPS with shadows off and exactly 30 with them on. It still showed 15ms render 30ms game with shadows on.