Physics and Phonegap


#1

Hello everyone!

I am running into a sad issue as I try to wrap my app (Finally finished!!) in Phonegap. I am hoping I may be able to get some help with this one last issue.

My app has a scene where I am using physics to move 10 balls around the screen. When I run this in the browser everything works perfectly. However when I wrap it in phonegap, the animations of the moving balls becomes VERY choppy.

Would anyone happen to have any suggestions on how to resolve this final issue?

Thanks everyone!

L

Fix Project.zip (2.6 MB)


(π•„π•šπ•”π•™π•’π•–π• 𝔾𝕒𝕣𝕠𝕗𝕒𝕝𝕠) #2

I’m not that familiar with Phonegap. Yet, I’m thinking this problem might be related to WKWebView. Does Phonegap support that? If not, then maybe use Xcode to wrap the Hype project.

I think Hype should export to app.


#3

Hi Michael,

I believe that Phonegap does use WKWebView in Xcode. It’s really a wonderful tool, well as long as everything works :smile:

Any ideas on how to remedy this?

Thanks!

L


(π•„π•šπ•”π•™π•’π•–π• 𝔾𝕒𝕣𝕠𝕗𝕒𝕝𝕠) #4

Unfortunately, I don’t know. I don’t use phonegap. I use Xcode.

Maybe check if β€œWebkit graphics acceleration” (in Hype) is on. If it is, turn it off. If it’s off, turn it on. HA!


#5

Hi Michael,

No worries! Gave that a try and am still having the same issue.

Thanks for the suggestion, though!

L


#6

This plugin might help you out? https://github.com/Telerik-Verified-Plugins/WKWebView


#7

Daniel with the save yet again!!! Thank you so much man!