Jittery sprites when using Orthographic

I have a minimal project with one collection that holds a GO with a sprite and a script implementing 8-direction movement and the camera.go provided by Orthographic. I’ve tried the following to get rid of the jitter, none of which worked.

  • Following/Unfollowing the first GO (jitters regardless)
  • Setting “Follow Immediately” property on and off
  • Various lerp values

Another minimal project with one collection that only has a GO with a sprite and the same script, but doesn’t use Orthographic or the accompanying render script, shows no jitter, so I’m thinking the issue is with Ortho. If anyone has experienced something similar, please let me know!

Please create a ticket on GitHub in the defold-orthographic repo and I’ll take a look.

For what it’s worth, I’ve created another project to match the project with the jitter problems file-for-file, (same extensions, same settings, same entities), and this one has no issues!

The only thing I can remember is using the Vulkan extension and reverting back to OpenGL because minimizing the game would crash it every time with Vulkan (fixed when using OpenGL). Maybe that has something to do with the stuttering, or the project is just cursed. Other than that, Ortho works great – a real time saver for a first-time developer.

1 Like

Hm if it’s jittering with vulkan, would you mind sharing the project with me so I can profile it?

The sprite jitters on both opengl and vulkan. My issue with vulkan is that minimizing the game causes it to immediately crash with the error message “VK_ERROR_OUT_OF_HOST_MEMORY”.

I should have been clearer about vulkan in this context – it was just a guess on what could be making two projects that are identical except for one having reverted back from vulkan perform differently. Having said that, I can’t replicate the jitters (strange goal) on a different project so maybe that wasn’t it either.

Ah hm. Well it shouldn’t crash when resizing, so I’d still wouldn’t mind taking a look at your project to see if there’s anything I can do to fix it on our end since I’m the one who wrote the vulkan layer so I feel a bit responsible for that part :slight_smile:

2 Likes

I appreciate the support. There are two collections under the “Screens” folder. When using vulkan, it only crashes when the window is minimized. The movement code is a copypaste from the astronauts tutorial. In case this is useful – my machine is on the lower end of things for developing.

1 Like

Thanks! I think the vulkan resizing is an issue not related to this. Seems like a regression issue on our part, so you can ignore that for now.

1 Like