-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compton is incompatible with Savage 2 when using Nvidia #159
Comments
Do you need a link to our VSync guide? https://github.com/chjj/compton/wiki/vsync-guide The thing that probably is going to help the most is |
Oh no, the glx backend does not fit my purposes because of multiple reasons:
As such, only the xrender backend is suitable. |
And I want to say that this game works with standard driver's vsync without bugs, but with compton the picture is MUCH more smooth. It seems that with standard vsync it looses some half of the frames. The only problem with compton is that the tearing line is in the middle of the screen, otherwise the picture is MUCH better than with standard vsync. |
Upon starting the game, compton gives the following message: [ 25.98 ] error 3 (BadWindow) request 2 minor 0 serial 35965 ("BadWindow (invalid Window parameter)") |
Note that similar symptoms appear in standard vsync as well when the vsync polarity is set wrongly. Changing the polarity in the modeline moves the tear line in a different position, but does not move it where it should be - on the edge of the screen. |
By the way, the same problem in other games as well, for example, in Enemy Territory. |
Except the single word "nVidia", seemingly I haven't acquired much info about your system, hardware, version of driver, version of compton, compton configuration, WM, etc. I'm afraid it isn't going to be beneficial if you want us to assist you. Freenode/#compton is our semi-official support channel. I believe assistance through IRC is probably going to be helpful in this case. I will get onto the IRC channel later.
Basically, perfect X Render is not very possible to achieve with X Render backend. It's a limitation of X, as far as I know. See #7 for more info. And, I mentioned
Newer nvidia-settings provides an "Application profiles" feature that could be useful for the problem.
Ignore it. See #52. By the way, you don't have a multi-head setup, do you? |
Driver version is 304.88. Compton is 0.1. Compton configuration is default. The bug happens under any WM.
This does not affect anything.
I experience omly this bug mentioned in the issue.
I do not mix vsync. All opengl compositors slow down windows resizing and movement. Opengl backend is thus not an option.
No, I use a desktop computer with only one video card and only one monitor. |
Heh, I always find it depressing when I have to try so hard to get necessary information, and repeat my words again and again just for people to notice them.
The hardware, specifically, the CPU and GPU, is important for us. We wish to know if your system is under heavy load of some sort when VSync-related issues occur: Do you think your CPU/GPU is too weak for the game? Is your CPU completely occupied? Is your CPU/GPU fan running terribly fast (and noisy)? Are you running out of memory? Does it occur as terribly on OpenGL programs that uses less resources? "Compton is 0.1" is not the accurate description we are expecting. Default configuration is not entirely clear to us, either. Defaults built into the program,
If you are playing your game in full-screen mode, compton should unredirect the screen with
Just to clarify this: This is most likely not a bug in compton, because X Render backend typically doesn't play with VSync very well, and this is not something we could change. And, have you tried
By mixing VSync I mean enabling both at the same time, like, enabling "Sync to VBlank" in nvidia-settings and use And, does your CPU get to 100% when it occurs? |
GeForce 9500GT
No. One can see the bug even when in start menu of Savage2. It has a monster in in 3D shown. His sword seems to be broken in the place of the tear line, like if it was refraction in the boundary of water.
compton (0.1.0%)
No.
The tear line appears both in fullscreen and windowed mode of Savage 2.
I have just tried this option and first time there was no tear line, but the picture was slowed, as is usually with driver anti-tearing. I run the game for the second time, and the bug seems not to appear! I see no tear line and the screen update is very fast, like it was previously when the line was present. I will try the thing further.
Yes.
Yes, I understood. I meant I do not use conflicting settings. |
That version is not correct. We have never released anything like 0.1.0, yet. The latest version is
Does it happen when you have all VSync stuffs disabled, with GLX backend? |
Well it seems the option --unredir-if-possible completely solves the problem for fullscreen mode! In windowed mode there is still the tear line.
With GLX backend there is no tear line, but the performance is so bad, that it is impractical. I think it gives like 15 frames per second, all things move unsmoothly. |
Even worse - when I start compton --backend glx --vsync opengl with sync disabled in nvidia settings, there is just huge tearing, no tear line, but just plain tearing everywhere AND terrible performance. When sync is enabled in nvidia, there is no tearing but terrible frame rate. |
Vsync with xrendr backend in Compton is so much faster than the standard nvidia vsync (which I considered accptable) that it is like I just upgraded my computer hugely! Everything on the screen looks like real and solid! |
Good to hear. :)
That's... Interesting. If you still have any interest in playing with the GLX backend -- I would truly doubt so :-D : |
I tried compton --backend glx --vsync opengl-swc --glx-no-stencil --glx-no-rebind-pixmap --glx-swap-method 3 and it is similarly terrible.
No. You even cannot smoothly move windows (not to say, resize). |
That's weird. GeForce 9500GT should be enough for compton's operations. I suppose that it's likely a driver bug instead of a performance issue. Could you please disable all VSync options in your driver and run compton with |
After running this command there is no difference from what was without compton - I see a huge tearing. No difference at all. |
Huh, I'm primarily talking about the performance issue. Is it slow when you have VSync off everywhere? If it becomes as fast as when no compositor is running in the case, the slowness is caused by a bug in your driver, presumably. |
I start Compton with the following line:
compton --vsync opengl
Everything works well except the Savage 2 game. In this game the tearing line appears in the middle of the screen, so any moving object appears to be teared apart. The top half shows the next frame while the bottom half still shows the previous frame.
Note that this also happens when using pure xcompmgr without vertical sync at all, when the vertical sync is enabled in the game or in the driver settings.
This does not happen in ATI video cards.
The text was updated successfully, but these errors were encountered: