mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[xna][monogame] Fixed examples using incorrect time update, leading to jittery playback. Closes #1868.
This commit is contained in:
parent
fdd3a663ef
commit
1057889c21
@ -294,7 +294,7 @@ namespace Spine {
|
||||
}
|
||||
|
||||
protected override void Draw(GameTime gameTime) {
|
||||
currentScreen.Render(gameTime.ElapsedGameTime.Milliseconds / 1000.0f);
|
||||
currentScreen.Render((float)(gameTime.ElapsedGameTime.TotalMilliseconds / 1000.0));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -192,7 +192,7 @@ namespace Spine {
|
||||
protected override void Draw (GameTime gameTime) {
|
||||
GraphicsDevice.Clear(Color.Black);
|
||||
|
||||
state.Update(gameTime.ElapsedGameTime.Milliseconds / 1000f);
|
||||
state.Update((float)(gameTime.ElapsedGameTime.TotalMilliseconds / 1000.0));
|
||||
state.Apply(skeleton);
|
||||
skeleton.UpdateWorldTransform();
|
||||
if (skeletonRenderer.Effect is BasicEffect) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user