Hi, I am currently testing my game in various build formats. For PC/Android the game runs at the same speed on my desktop and phone and I am using DT for all time related events. However, for HTML5, the game runs at hyper speed. Also, both Android and HTML5 the performance is super smooth however for desktop there is some noticeable input latency when large amounts of things are happening in the game logic. Anyone seen this or know why there’s such a disparity between platforms?
It’s because for whatever reason the update rate is not being constrained. What’s your current Display settings in game.project? Unfortunately it just seems like with these issues there is currently no one best solution that will work with all platforms that will work perfectly on all devices.
Try this on your device, does it seem like the animations run super fast or normal? https://www.solitaire.io/faerie-solitaire-remastered/ (the FPS in that build is busted and I’ve not updated it so don’t trust it just look and see if things run a little too instantly)
Tried it. It’s hard to tell but the animations for the UI seem like they’re running fast. Not sure since I have nothing to compare to. It doesn’t seem bad though. It’s weird that I’d have to cap the update rate since dt should be the delta time between frames. Right now I’m fighting a weird bug where my GUI menu doesn’t even show up in HTML5/Android builds, but it appears just fine for desktop builds. Not sure what’s going on there
dt in the engine is NOT to be trusted for FPS
Use this to see the real FPS/ms of frames GitHub - britzl/defold-metrics: Calculate and display performance metrics in Defold games
GUI menu doesn’t even show up in HTML5/Android builds
Check the developer console /logcat and see if it mentions any errors
Thanks for all the help
I’ll have to figure out how to add that to the game. I checked the console. I was looking at the javascript output for errors which was too cluttered to see the game related messages. After using web developer console I spotted the problem: WARNING:RESOURCE: Resource not found: /main/main_menu.collectionc
This doesn’t happen on the PC builds, I’ll have to experiment and see if I can figure out why this is happening.
EDIT: I figured it out! I had accidentally clicked “Exclude” in the main menu proxy loader. After unchecking this the menu displays fine.