galakt / slimdx

Automatically exported from code.google.com/p/slimdx
0 stars 0 forks source link

VSync is totally ignored in Sampleframework #391

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
One can change the value of VSync as much as they want, you will ignore 
this setting anyway.

public static Direct3D10Settings BuildValidSettings(SettingsCombo10 combo, 
Direct3D10Settings input)
...

        int bestSyncInterval = 1;
        if(combo.DriverType == DriverType.Reference)
            bestSyncInterval = 0;  

        mode.Width = bestDisplayMode.Width;
        mode.Height = bestDisplayMode.Height;
...
        settings.SyncInterval = bestSyncInterval;

Since the SyncInterval will always be 1 the framerate is always limited to 
60 fps. 

kind regards

Original issue reported on code.google.com by amuylaer...@gmail.com on 4 Jan 2009 at 7:07

GoogleCodeExporter commented 8 years ago
Oh, hah, that's amusing. I hooked it up for D3D9, but no D3D10.

Original comment by Mike.Popoloski on 5 Jan 2009 at 12:02

GoogleCodeExporter commented 8 years ago
Fixed as of r861.

Original comment by Mike.Popoloski on 14 Jan 2009 at 7:56