NickolausDS / Unity-Free-Flight

A Unity Package to add gliding flight to any Unity Object.
GNU General Public License v3.0
60 stars 13 forks source link

Web build has performance issues #85

Closed NickolausDS closed 9 years ago

NickolausDS commented 9 years ago

When played on the main website, the web build has occasional stutters. It's bad enough that it breaks immersion, so it will need to be fixed before it's made public.

I'd guess the problem is with the camera, specifically the calls to iTween every frame. If this is the case, all the problems could be solved by removing these calls and using Lerp or Slurp instead. If this was the problem, it would also fix #84.

NickolausDS commented 9 years ago

I made a false assumption about iTween. The performance issues come from the unity plugin limiting cpu usage when not in full screen. They did that way so webpages don't become unresponsive while a game is being played.

The fix is to use fullscreen mode. The player needs to right click, and select it from the unity plugin.