Unity3d engine games all suffer from tearing even with vsync

Bug #1257382 reported by Paulo Narciso
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Unity
Triaged
Medium
Unassigned
unity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

All unity3d engine games suffers from tearing because they are detecting that a compositor is running. Compiz is supposed to be disabled when fullscreen apps are running but it's not clearly working on anything that makes use of unity3d engine.
The only working solution is installing openbox to my Ubuntu install and running the games from there.

description: updated
Revision history for this message
Stephen M. Webb (bregma) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately, we cannot work on this bug because your description didn't include enough information. You may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html.

Before we can properly analyze this problem, we need to know what version of the software you're running. Opening a terminal and running 'apport-collect 1257382' is a good start in that direction. In addition, an example of a Unity3D program demonstrating this behaviour on your system would be useful. Finally, because this is video-related, informationo on your video card and drivers would be helpful.

I'm setting this bug status to Incomplete pending more information.

We have instructions on debugging some types of problems at http://wiki.ubuntu.com/DebuggingProcedures

At a minimum, we need:
1. the specific steps or actions you took that caused you to encounter the problem,
2. the behavior you expected, and
3. the behavior you actually encountered (in as much detail as possible).
Thanks!

Changed in unity:
status: New → Incomplete
Revision history for this message
Paulo Narciso (p-narciso) wrote :

Ok, I've tried apport-collect 1257382 and I get the the message "no additional information collected"
I'm running Ubuntu 14.04 64bit with Nvidia Gtx680 with 331.20 driver version.
Vsync is enabled in control panel and Compiz. Unredirect full screen windows is also enabled.

For example download this unity3d game demo http://ultrarunaway.itch.io/paper-sorcerer-demo and you'll notice that vsync is not working unless a non composited environment is used like openbox.
Unity3d games are detecting a compositor and disable vsync automatically, but that shouldn't happen with Unredirect full screen windows enabled.

Revision history for this message
Stephen M. Webb (bregma) wrote :

Thanks for the additional information.

I can't seem to be able to reproduce the problem on my system. I strongly suspect a driver problem, but until I can get more concrete data I'll have to leave this as Triaged while investigation continues.

Changed in unity:
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
Paulo Narciso (p-narciso) wrote :

So, are you running Ubuntu with Nvidia hardware and 331.20 drivers and you don't get any tearing in the conditions I just mentioned above? with the game I posted?

Revision history for this message
Paulo Narciso (p-narciso) wrote :
Revision history for this message
Paulo Narciso (p-narciso) wrote :

In the file I just posted. the game log, there's this message "Compositing window manager detected - disabling vsync for performance"

Revision history for this message
Stephen M. Webb (bregma) wrote :

I'm running Ubuntu with nVidia hardware and the 304 driver -- which is why I suspect a driver problem. I am not in a position at this time to update the drivers on that machine to perform differential diagnosis.

My Player.log file has 3 lines in it ... do you need to do something special to get that massive dump?

Revision history for this message
Paulo Narciso (p-narciso) wrote :

No, I just run the game and it generates that log. Strange that you only get 3 lines.
When you have the opportunity to test another driver I will appreciate.

Revision history for this message
Paulo Narciso (p-narciso) wrote :

Here's another unity3d enfine game that you could try http://www.desura.com/games/teslagrad/download/4734
Same issue. Lot's of tearing with vsync on.

Revision history for this message
Andrzej Matuch (doomsdrzej) wrote :

The problem isn't limited to Unity3D. I switched over to GNOME 3 and though it improved the performance of one game (A Wizard's Lizard), 3D games tear on very capable hardware. I'm using Nvidia 331.xx.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.