Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Unity web player and Chrome Issues

Discussion in 'Editor & General Support' started by orbitsteve, Sep 28, 2010.

  1. orbitsteve

    orbitsteve

    Joined:
    Nov 26, 2007
    Posts:
    117
    Hi Everyone

    First a great congrats to Unity for the release of version 3.0, going to upgrade my existing license very soon , seriously cant wait :)

    Well!
    I have a few issues regarding the web player on the Chrome browser for MAC. As far I know that Chrome on Mac did not allow plug-in Processes inside a browser window (http://code.google.com/p/chromium/issues/detail?id=26235) . Its been the first time I have been testing my games on chrome and it worked but with a few issues:

    - 50% drop in frame rate compared to fire fox and safari. Sometime almost unplayable.
    - controls don't respond, until you jump to full screen.

    I am able to reproduce them while playing the web demos on Unity's website.

    Need to know if anyone else has come across these issues or its only me , because I am thinking of informing users about chrome issues in my Html Page for my recent web games , There could be more underlying issues which I might not be aware of,
    If this has already been discussed , just re-direct this post.

    Thanks

    Stephen

    here is the link to the build which I have tested
    http://www.stephenrebeiro.com/Tram.html
     
  2. McKrackeN

    McKrackeN

    Joined:
    Oct 28, 2009
    Posts:
    51
    I'm having the same problem as you.

    - FPS drop
    - controls just work in fullscreen mode (but shift and control keys don't).


     
  3. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    Which version of Mac OSX are you using? We believe this issue to be fixed under 10.6 but with 10.5 there is an issue that prevents that fix from being activated. Unfortunately, there doesn't appear to be anything else we can do to sort out the problem under 10.5.
     
  4. orbitsteve

    orbitsteve

    Joined:
    Nov 26, 2007
    Posts:
    117
    Hmm, yes all my tests were done on 10.5, so this is a known issue and only way to get around it is to upgrade to 10.6 ? I dont really know what's the percentage of OS 10.5 users, but with the growing popularity of chrome, Unity should do something about it :), or we can just wait for an update/fix from either party :)
     
  5. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    There are two issues here:

    -Input not working.
    This is actually a problem of Unity not getting focus, apparently due to a bug in Chrome. We have a workaround for that, but currently, it does not catch the case of 2.6 content, which is run with the old runtime, which was release before Chrome for Mac was supported. But we will add a workaround for 2.6 content in the next web plugin release. In the meantime, 3.0 content should not show this problem (if it does, please report a bug).

    -Low frame rates.
    This, we cannot possibly do anything about. The reason is that Chrome runs plugins as separate processes, but OS X 10.5 does not yet have the ability to share an accelerated graphics context between processes, so the rendered images have to be transferred from the plugin to the browser window using a slow memory copy. Depending on how badly your content is affected (the main deciding factor here is the plugin view resolution, larger window, more image data to copy), you may want to detect this situation (Chrome + Mac OS X 10.5) in JavaScript, and display a warning to the user, or make the view smaller. Note that fullscreen mode should be unaffected.
     
    Last edited: Sep 30, 2010
  6. nXain

    nXain

    Joined:
    Dec 23, 2009
    Posts:
    5
    I've been seeing the same issues on Windows 7 with Chrome 6.0x. I've narrowed it down to Chrome (http://forum.unity3d.com/threads/62438-Webplayer-mouse-tracking-problem)

    1) This is occurring with a project that was created in Unity 2.6 and exported with Unity Pro 3.0 - I haven't tested any other way yet
    2) It's a Chrome only problem with framerate stuttering (especially when the Unity IDE is running)
    3) It's multiple camera modes / input (always mouse / keyboard) - I'm testing with FPS and orbit cameras
    4) When I use the mouse wheel to scroll, input for the mouse point location starts working again

    This is not a performance problem - I'm running on a beefy machine and getting great frame rates in every other case except with the Chrome web player (8 gigs memory / i7 CPU, 1 gig nVidia card) etc.

    Thanks!
    nXain
     
  7. Piwot

    Piwot

    Joined:
    Jun 23, 2010
    Posts:
    15
    [Fixed]
    We have the same problems when using macbooks and Google Chrome. All the users that have tested our game with Macbook + Chrome reported issues too. We had to write that currently chrome isn't supported.

    The problems reported are:

    1) Wrong Keyboard Input (W switched with Z)
    2) Very low FPS
    3) The mouse pointer don't get hidden.

    Everything work fine when using other browsers (Safari or Firefox).
     
    Last edited: Oct 25, 2010
  8. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    I've neither problem and I'm on chrome 7, osx 10.6.4, macbook pro from spring 2008 (8600M GT)

    potentially you are on an ati gpu based mac, in this case congrats, ask apple to fix its drivers :)
     
  9. Piwot

    Piwot

    Joined:
    Jun 23, 2010
    Posts:
    15
    Yes the issue was the osx version. We'll write to our users to upgrade or to change browser.
     
  10. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    This one is news to me. If you can reproduce it, please file a bug.

    If you are running MacOS X 10.5, this is expected, as described above.

    This one is also a known issue, filed as a bug with Google. There is a potential workaround we may implement, but it is not trivial, so we're hoping for that bug to be fixed.
     
  11. tool55

    tool55

    Joined:
    Jul 10, 2009
    Posts:
    334
    I'm having the same problem on a 64 bit PC running Vista. I built a small flight sim in Unity 3 and in the webplayer, the mouse orbit camera seizes up. It simply stops working after a few rotations. This only happens in Chrome. Firefox works fine.
     
  12. DNSavar

    DNSavar

    Joined:
    Jun 21, 2010
    Posts:
    16
    For the keyboard input (W switch with Z), it happen for US on a french canadian keyboard (MacOS too). Instead of QWERTY it looks like AZERTY (french keyboard).

    Also, sometime, our loading fails and a refresh was needed.
     
  13. DNSavar

    DNSavar

    Joined:
    Jun 21, 2010
    Posts:
    16
    Was also on chrome.
     
  14. montblack

    montblack

    Joined:
    Jul 21, 2010
    Posts:
    3
    I have none of thethe problems you mentioned with chrome .

    the only problem I have is that when the application is loading and I have no focus on that window then the chrome crashed and must restart the plugin unity.

    I have: Windows Vista (Spanish).
     
  15. wannabeartist

    wannabeartist

    Joined:
    Jun 20, 2009
    Posts:
    272
    Have you guys noticed a considerable lag when closing the tab on which the player is running?

    I'm just testing my demo on different browsers now and I get this problem on Chrome 8.0.552.224

    I'm running Windows 7 Home Premium x64, Finnish version.
     
  16. Amm

    Amm

    Joined:
    Nov 9, 2010
    Posts:
    8
    The mouse click lag is also happening for some of our machines.
     
  17. Neuro

    Neuro

    Joined:
    Mar 2, 2010
    Posts:
    8
    I also have the issue where the shift keys do not work when the webplayer is fullscreen (Chrome, Safari). The issue only appears to occur on Mac it doesn't appear on Windows 7 (Chrome).
     
  18. LukeTomes

    LukeTomes

    Joined:
    Mar 16, 2011
    Posts:
    13
    Hi,

    We are experiencing keyboard input not working on our web player build (Unity 3.5.0f5) running under Chrome OSX 17.0963.56 - OSX 10.7.2.

    Can select text fields and cursor stops flashing while typing, but no characters appear in text field. Using built-in Unity GUI system.

    Chrome 17.0963 Windows works fine.

    Same build functions correctly on Firefox and Safari browsers on the same computer.
     
  19. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Did you submit a bug with a repro case?
     
  20. Wahooney

    Wahooney

    Joined:
    Mar 8, 2010
    Posts:
    281
  21. robhuhn

    robhuhn

    Joined:
    Jun 21, 2009
    Posts:
    113
    I have exactly the same issue - OSX 10.6.8 and Chrome 17.0963.79
     
  22. AlexZ

    AlexZ

    Joined:
    Sep 17, 2009
    Posts:
    263
    Hi,

    I've experienced the same bug, over the past two years with no fix.

    This is only noticeable on older machines, with an integrated video card. Tried it on a 3 year old laptop, and a 4 year old pc.

    Loading boot camp demo from the unity site in chrome causes chrome to lag in response to clicks, If you clock on another tab in chrome, while the boot camp demo is running, the browser seems to stutter in and out of focus, depending on the specs of the machine, the input will be registered, and the tab will be switched after maybe 5-20 seconds.

    The frame rate inside the web player is consistent as this issue with Chrome is happening.

    It takes about 5-10 seconds for this issue to become noticeable and it is gradual over that build up time.

    I first reported this issue about two years ago. Still happening today. I'm surprised its not one of the focused issues. We have a game up on Facebook that is gfx heavy https://apps.facebook.com/dungeonfighter/ and we are getting many low ratings from I assume people who are used to playing games on their low end machines, having the browser lock up on them and getting upset.

    What can I do? Its worrying me that I just can't use Unity for high gfx games on web.

    Thanks
     
  23. ArenMook

    ArenMook

    Joined:
    Oct 20, 2010
    Posts:
    1,902
    Just ran into this issue myself on the Mac. Web player in Chrome is laggy as crap, roughly 30% of the framerate when full-screen. Unfortunately input doesn't work in full screen (i just hear error sounds every time I press a key like WASD). OSX 10.7.4, Macbook Air Summer 2012 edition (Intel HD 4000).
     
  24. LukeTomes

    LukeTomes

    Joined:
    Mar 16, 2011
    Posts:
    13
    We are now seeing this behaviour on the web player again (user unable to type text due to plugin losing focus) using latest Unity editor and web player (3.5.4f4)

    No text input on latest release of Safari (6.0) on Mountain Lion (OS X 10.8). User can input text when in full screen mode.

    Bug is also present on Windows 7 using certain versions of Internet Explorer 9, again work around is for user to enable full screen mode.

    Off to find more specific info on versions and file a bug report. Anyone else experiencing this? Any suggestions for a javascript work around?
     
  25. AlexZ

    AlexZ

    Joined:
    Sep 17, 2009
    Posts:
    263
    Since my post I have done some investigating into the issue.

    It seems that some browsers are more prone to causing this behaviour, but if you play on a more low end machine, especially with an integrated gfx card, it happens to all browsers. Even though this issue appears in all browsers, IE seems to be the least effected.

    My work around for the bug was to add an auto quality detection script in the client, from the unity wiki. This would force improve the frame rate to a point where if unity looses focus, the browser lags only about 1-2 seconds instead of the 10+ seconds I experienced before the fix.

    It is still an issue I wish there was a fix for (hoping flash build will fix this), but for now this is the best I can do. Since the fix, my ratings for my game have gone from non stop 1/5 (people getting outraged with losing browser control) to mostly 5/5's. So it has done something.
     
  26. FiveFingers

    FiveFingers

    Joined:
    Oct 15, 2009
    Posts:
    541
    We are experiencing problems on MacOSX 10.7.5 web plugin on Safari browser.
    The mouse scroll wheel doesn't seem to report (not working).

    On the same Mac, is working just fine on Chrome and Firefox.

    Any idea / fix for this issue ?
     
  27. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    This is a known bug in Safari 6, which won't send scroll events to plugins any more. We have reported this to Apple, and are hoping for a fix.
     
  28. shmomo

    shmomo

    Joined:
    Oct 11, 2011
    Posts:
    127
    I have the webplayer stuttering problem. just came across your post. Did you ever find a solution for this?

    Its a huge problem preventing me from delivering a game!

    Im really stuck on this issue at the moment unity bug report are saying it doesn't stutter when it certainly does for me.

    Many thanks for you time,

    J
     
  29. douglassophies

    douglassophies

    Joined:
    Jun 17, 2012
    Posts:
    141
    I am having an issue with it lagging on macs for Firefox and Chrome but not Safari. IE, Firefox and Chrome work fine on Windows 7.
    Update: Strangely, i built the project using Unity on my mac and it helped with the lag for Firefox (but not Chrome). The only difference between mac and PC version of Unity is that the PC version is running the free trial whereas the mac is running standard free version.
     
    Last edited: Feb 6, 2013
  30. BlackTerrorGT

    BlackTerrorGT

    Joined:
    Dec 19, 2012
    Posts:
    15
    Same problem in Chrome Version 35.0.1916.114. OSX10.9.3, 3.5Ghz i7 16GB 1600 Mhz DDR3 GTX 775M 2GB.
     
  31. Shedletsky

    Shedletsky

    Joined:
    Apr 21, 2014
    Posts:
    20
    Also seeing this issue in Chrome.

    I'm trying to run the Space Shooter demo in webplayer and I lose all input the first time I click with the mouse.

    Chrome is 40% of the web and this bug makes webplayer unusable for my project.
     
  32. AlexMtl

    AlexMtl

    Joined:
    Jul 2, 2013
    Posts:
    21
    Is this issue supposed to be fixed? I know I'm 4 years after the thread was started but I have the exact same issue with Version 36.0.1985.143 m of Chrome. My input is simply not registering with the Unity Player. As soon as I go in full screen, then input works.

    This makes the WebPlayer essentially useless.
     
  33. Hesel

    Hesel

    Joined:
    Aug 4, 2014
    Posts:
    7
    Just encountered this issue again.

    Any WebPlayer build I create and open in Chrome gets zero keyboard inputs. Mouse is working fine, and I can even see the text Caret in all InputFields if selected, but Keyboard presses does nothing.

    Unity version: 4.6.0f3
    Chrome: 38.0.2125.104

    Is there a fix?

    /Andreas
     
  34. andersemil

    andersemil

    Joined:
    Feb 2, 2015
    Posts:
    107
    Still having this problem here, Unity 4.6.3f1 and Chrome OS X Version 41.0.2272.104 (64-bit). InputFields will have focus when the page first loads, but as soon as I switch to another tab and then back, there is no keyboard input at all until I reload the page.

    Is there a plugin or javascript workaround we can use?

    UPDATE: Apparently this bug has been reported years ago in Chrome project but has never received much attention :( https://code.google.com/p/chromium/...easeBlock Cr Status Owner Summary OS Modified
     
    Last edited: Mar 30, 2015