how can I prove triple buffering isnt being enabled in DX games?

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

taltamir

Lifer
Mar 21, 2004
13,576
6
76
then maybe it is him who is misinterpreting the FRAPS results...
Would you mind looking at the fraps data dump and see the time to render frames and see if they are exactly 16.667ms (60 FPS) or 33.33ms (30 FPS) as I predicted and not values between the two? (values greater than 33.33 are possible and consistent with theory as well, those would be the 20FPS etc I mentioned)
 

cusideabelincoln

Diamond Member
Aug 3, 2008
3,275
46
91
Or he could have triple buffering enforced via drivers or external utility. I've seen V-sync with no triple buffering break my performance in Chaos Theory. It would jump from 60 to 30. With triple buffering it never got below 48 or so.
 

taltamir

Lifer
Mar 21, 2004
13,576
6
76
with latest version 3.2.7

in the 99 FPS tab you will see "Benchmark Settings" with the options of:
FPS
Frametimes
MinMaxAvg

Checkmark the Frametimes, when you get a benchmark it will also create a file with frametimes in the name.
Column 1 is frame number, Column 2 is amount of ms since the start of the test.
To get time to render each frame go to cell C3 and input:
Code:
=B3-B2
Then drag it down across column 3 all the way. This will give you the time to render each frame on column 3.

I apologize for the simplistic explanation, I know you are computer savvy enough to not need it, but I figured that other people are also reading.

Or he could have triple buffering enforced via drivers or external utility. I've seen V-sync with no triple buffering break my performance in Chaos Theory. It would jump from 60 to 30. With triple buffering it never got below 48 or so.

we will know once he examines the numbers.
 

busydude

Diamond Member
Feb 5, 2010
8,793
5
76
where is this info?

You can find 3 files generated by FRAPS; fps, minmaxave and frametimes.

FPS -> shows the FPS(Calculated every second, obviously.)
frametimes -> Time(ms) taken to render a particular frame.
 

toyota

Lifer
Apr 15, 2001
12,957
1
0
well I had to go back and re run two benchmarks since all I originally checked was min/max/avg.

taltamir, I see the frametimes but I have no idea what you are telling me to do. :oops:
 

BFG10K

Lifer
Aug 14, 2000
22,709
3,002
126
There’s nothing wrong with Fraps except when trying to take a screenshot or video with the framerate overlay, and then it screws up. With the regular overlay it accurately displays what I’m seeing.

Here are photos of a similar section of the game showing Fraps FPS on a GTX480 with vsync forced from nVidia’s control panel. This is exactly what I see in-game:

http://img692.imageshack.us/i/20576169.jpg/
http://img703.imageshack.us/i/29879222.jpg/

I’ve tested the entire plateau section up until you slide towards Johns’ cabin, and all areas will settle on 60 FPS or 30 FPS no matter where you look, if you stand still long enough.

So Toyota’s system is either not running vsync, or triple buffering is being forced externally.
 

taltamir

Lifer
Mar 21, 2004
13,576
6
76
I am saying that the frametimes listed are "time since test started" not "time since last frame"
I am saying to calculate time per frame rendered by subtracting one from the other.
 

busydude

Diamond Member
Feb 5, 2010
8,793
5
76
taltamir, I see the frametimes but I have no idea what you are telling me to do.

Taltamir is asking you to calculate the delta time between successive frames.

deltav.png
 

toyota

Lifer
Apr 15, 2001
12,957
1
0
There’s nothing wrong with Fraps except when trying to take a screenshot or video with the framerate overlay, and then it screws up. With the regular overlay it accurately displays what I’m seeing.

Here are photos of a similar section of the game showing Fraps FPS on a GTX480 with vsync forced from nVidia’s control panel. This is exactly what I see in-game:

http://img692.imageshack.us/i/20576169.jpg/
http://img703.imageshack.us/i/29879222.jpg/

I’ve tested the entire plateau section up until you slide towards Johns’ cabin, and all areas will settle on 60 FPS or 30 FPS no matter where you look, if you stand still long enough.

So Toyota’s system is either not running vsync, or triple buffering is being forced externally.
it was running vsync and I looked directly at the ground in that video so you could see it not go over 60fps and use that for an excuse. I also have NEVER forced triple buffering in any game.
 

taltamir

Lifer
Mar 21, 2004
13,576
6
76
thanks, I processed them and here are the results:

https://spreadsheets.google.com/ccc?key=0ApcEvOA-L4zcdDJpZV9JNTgwc2V2UHZqZU9wRnI1M1E&hl=en
https://spreadsheets.google.com/ccc?key=0ApcEvOA-L4zcdEdldzhmbFdVbi1yam1FTjVjUW5UcWc&hl=en

You can see clearly on your vysnc off example the FPS hovers near 48... while with the vsync on, triple buffer off example the FPS jumps from ~60 to ~30 multiple times per second. (except for a few outliers). This matches theory, which says that should be the case unless triple buffering is turned on (in which case it should again hover around 48).

I am surprised at how far it can deviate though. occasionally you see a frame do 45FPS or 110FPS or something weird. And most frames deviate by up to +/-3 give or take from their supposed FPS.
I performed some tests on my computer and the same can be seen there. I don't know if its due to the driver implementation or FRAPS itself interfering / having measurement errors.
If it is the way vsync works then it seems to be loosely implemented in a "good enough" fashion.
 
Last edited:

Voo

Golden Member
Feb 27, 2009
1,684
0
76
I think it'll be much easier if anyone just understands how Vsync, double and triple buffering work and for me, this here explained it quite well..
 

toyota

Lifer
Apr 15, 2001
12,957
1
0
I think it'll be much easier if anyone just understands how Vsync, double and triple buffering work and for me, this here explained it quite well..
well that was the anandtech article I was referring to in the op.
 

BFG10K

Lifer
Aug 14, 2000
22,709
3,002
126
well that was the anandtech article I was referring to in the op.
Then why didn't you read it?

This can hurt performance even if the game doesn't run at 60 frames per second as there will still be artificial delays added to effect synchronization. Performance can be cut nearly in half cases where every frame takes just a little longer than 16.67 ms (1/60th of a second). In such a case, frame rate would drop to 30 FPS despite the fact that the game should run at just under 60 FPS.
Hell, an analysis of your own numbers shows I'm right because the vsync frametimes show they jump between 30 FPS and 60 FPS. If I had a video camera I'd upload a video of showing the exact same thing in-game with the Fraps counter.

But you still won't admit you're wrong, huh?
 

toyota

Lifer
Apr 15, 2001
12,957
1
0
Then why didn't you read it?


Hell, an analysis of your own numbers shows I'm right because the vsync frametimes show they jump between 30 FPS and 60 FPS. If I had a video camera I'd upload a video of showing the exact same thing in-game with the Fraps counter.

But you still won't admit you're wrong, huh?
I am not arguing about how its technically supposed to work. you still have not gotten through your thick head that I am saying I have NEVER seen it do that in an actual game. you even gave me a specific game to try out and I showed you that it did not happen. please give me some more examples of games and I will show you that the framerate doesn't go straight to 30fps in those either.
 

BFG10K

Lifer
Aug 14, 2000
22,709
3,002
126
you still have not gotten through your thick head that I am saying I have NEVER seen it do that in an actual game.
Uh, yes you have. Your Fraps runs were from an actual game, were they not?

Do you not understand the significance of the frametime calculations and what they show?

As for your video, I don’t think you were actually using vsync. Heck, your own Fraps benchmark with vsync proves the video isn’t accurate.
 

toyota

Lifer
Apr 15, 2001
12,957
1
0
Uh, yes you have. Your Fraps runs were from an actual game, were they not?

Do you not understand the significance of the frametime calculations and what they show?

As for your video, I don’t think you were actually using vsync. Heck, your own Fraps benchmark with vsync proves the video isn’t accurate.
I am NOT denying or arguing about how it is supposed to work. if those files show it doing what it is supposed to then great. please get through your head that I am saying I have never seen the framerates drop straight to 30 fps in an actual game. you seem to use fraps as a tool when making your claims and so do I. using fraps you claimed in CoJ that it went straight from 60 to 30fps which it did NOT when I tested it. for the second time you have now said that I must not have had vsync on in that video. well I am uploading a video right now and would love to see you say that after you watch it. :rolleyes:
 
Last edited:

BFG10K

Lifer
Aug 14, 2000
22,709
3,002
126
Here are my Fraps FPS results with an in-game benchmark from a later game level in CoJ:

Code:
VSYNC
On Off
61 97
60 90
57 101
60 96
58 83
60 83
60 90
60 115
60 109
60 121
60 115
58 95
60 78
60 70
49 59
31 51
30 52
30 53
29 50
31 50
29 50
30 48
30 48
30 48
30 47
30 47
29 39
30 39
30 43
47 61
30 45
29 36
30 39
30 40
30 42
30 41
30 41
30 37
30 39
30 45
51 70
31 46
30 47
30 43
48 66
33 59
38 59
38 53
33 61
43 54
30 44
30 49
29 47
31 42
29 38
30 37
30 38
30 37
30 36
30 38

You can see the left column's results (vsync on) are overwhelmingly ~30 FPS or ~60 FPS, and those that aren't are just Fraps noise since we know it's not 100% accurate. Also in every case where the left column is ~30 FPS, the right column has an in-between value (i.e. between 30 FPS and 60 FPS).

Again, these are in-game results and exactly mirror what I see in every game level I've played in CoJ. So either Toyota's video wasn't using vsync, or he has a magic version of vsync that is quite special. :rolleyes:

I am NOT denying or arguing about how it is supposed to work. if those files show it doing what it is supposed to then great.
You're flat-out trolling now, so stop it. Your own benchmark results show the framerate alternates between 30 FPS and 60 FPS with vsync, but you're still claiming it doesn't happen in game. If it's not happening in-game then what is Fraps measuring?

To put it perfectly bluntly, I don't believe you had vsync enabled in your video. More than likely you're genuinely confused, like you were when you mixed up the labels on the two benchmark results.

I also think you're genuinely confused as to what I mean when I say "it's either 30 FPS or 60 FPS". You also don't appear to understand what benchmarking noise is, nor do you understand how it relates to averages.
 

toyota

Lifer
Apr 15, 2001
12,957
1
0
so for the THIRD time you are accusing me of having vsync off in that video? and you have the nerve to call me a troll? I am really sick of your little passive aggressive comments. I have said from the beginning that it does not show the framerate dropping straight to 30fps when watching the framerate in a game. you even said it will go to 30 fps on the screen after a few seconds and again that does NOT happen.


here is a video proving I had vsync on.

http://www.youtube.com/watch?v=T44vUa3vOsI
 
Last edited:

BFG10K

Lifer
Aug 14, 2000
22,709
3,002
126
here is video proving I had vsync on.
Then explain to us how I can replicate the vsync phenomenon without fail in the same game, but you can't?

Explain to us how my Fraps results back what I’m seeing in-game, but yours don’t?

In-game with vsync Fraps either shows 60 FPS or 30 FPS in every level I’ve tested, excluding the in-between noise of course.

The only conclusion I can reach is that your system is not applying vsync properly when you enable it from nVidia’s control panel.
 

toyota

Lifer
Apr 15, 2001
12,957
1
0
Then explain to us how I can replicate the vsync phenomenon without fail in the same game, but you can't?

Explain to us how my Fraps results back what I’m seeing in-game, but yours don’t?

In-game with vsync Fraps either shows 60 FPS or 30 FPS in every level I’ve tested, excluding the in-between noise of course.

The only conclusion I can reach is that your system is not applying vsync properly when you enable it from nVidia’s control panel.
I don't know how to explain it but vsync is clearly being applied. I am not playing around here and I am simply showing you what I have always witnessed when visually monitoring the framerate in a game.

you keep acting like I want to argue with you about how it works when again all I am telling you is what I have always seen in actual games is different.
 

toyota

Lifer
Apr 15, 2001
12,957
1
0
you can post all the links you want but I am telling you what I have seen for 8 years of gaming if I watched the framerate.
 
Last edited:

BFG10K

Lifer
Aug 14, 2000
22,709
3,002
126
you can post all the links you want but I am telling you what I have seen for 8 years of gaming while watching the framerate.
Then your system has never been applying vsync properly, or you've been running games that have triple buffering.