Skip to content
This repository

SharDX.Toolkit.Game draws old frames if IsFixedTimeStep is true #160

emiswelt opened this Issue September 13, 2013 · 6 comments

3 participants

emiswelt Artiom Ciumac xoofx

This issue was already reported once ( and is reproduceable on a windows phone device, even with a very, simple application, like a single, rotating image drawn on a plane.

If IsFixedTimeStep is set to true, old frames are drawn whenever a draw call is surpressed.

I am not familiar enough with DirectX to identify the bug in the SharpDX code, but I an provide a sample project where the error occours, if needed.

Note that this issue DOES NOT occour with the SharpDX samples, since they do not make use of the Game class.

Artiom Ciumac

Please attach the test project where the issue can be reproduced so that I can test is right away.
Btw, there are plenty of Toolkit samples that are using the Game class - take a look at the SharpDXToolkitSamples.sln solution.


It is likely that this issue only regards Windows Phone 8 devices.

You can download the sample project here:

The issue can be seen if the program runs for a few moments. If you look closely, you can see the rotating arrow jumping back and forth. It can be seen best on a device.
It is also much more observable if bigger or more objects are rendered.

If IsFixedTimeStep is set to false, the issue disappears.

I reproduced the issue on a Lumia 620 and on the WVGA 512MB Emulator.

Artiom Ciumac

The issue reproduces both on emulator and on a device (Lumia 920).
I've tried to implement a copy of of previous frame if the current one is suppressed but this didn't help - looks like the WP8 runtime requires to draw a frame every time the callback is invoked.
Curretly, the only workaround is not to use a fixed timestep (set the property to false).


Thank you for your efforts.

I am aware of this workaround, however, it took me a few work days to identify the problem (I first thought my code was faulty).
I would suggest to change the default value of IsFixedTimeStep to false when compiling for Windows Phone, to avoid this problem.


I guess we can set isFixedTimeStep by default to false for all platforms. This is not a huge break, most of the time, people are more annoyed by a fixed time step than the opposite (as you can be called several times on the Update method, unlike when using no fixed time step)

Artiom Ciumac

Now, the default value is false for fixed timestep on all platforms.

Artiom Ciumac ArtiomCiumac closed this October 09, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.