Page 1 of 3

3D effects lag in Ubuntu 9.04 guest

Posted: 3. Aug 2009, 15:51
by alant
I have searched and have not found any posts with an issue resembling mine. After installing the guest additions and upon reboot, the 3d effects in 9.04 work, however there is a lag where the menus will give a ghost image after closing it. The fading is not fading out I guess you could say. When going into preferences there is a delay when clicking on different tabs. If I disable effects everything works fine. Is this familiar to anyone?

Specs: Guest OS - Ubuntu 9.04 32bit
CPU: 2-cores of a quad core dedicated to machine
RAM: 3GB out of 8GB dedicated to virtual
Video: 100MB video memory- not 128 due to the login screen issue- but using 128 did not help my described problem
HDD: virtual is using one expanding 40 GB hdd

HOST OS: Windows 7 RC 64-bit

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 3. Aug 2009, 19:55
by Sasquatch
Your problem is the Host. Windows 7, especially the 64 bit version, doesn't have full OpenGL features that are fast enough for the Guest to use. All that you see as 'ghosting', is the effects after-image because of the slowness of the whole system. SMP is also a possible cause, change the amount of cores back to 1, it might solve it for you. There are quite a few users who reported slower VM responses after they enabled SMP.

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 3. Aug 2009, 20:47
by alant
Thanks,

As I was typing my post I told myself I should try that since it is new and I never had the problem in 7 before. That will be the first thing I try and will post a result.

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 5. Aug 2009, 19:39
by alant
I set the machine back to use 1 CPU and left all of the other settings to alone and still has a delay on the effects. I didn't mention the GPU eariler. I am using a GTS 250 with 512MB of RAM.

Are any other Windows 7 RC x64 users experiencing the same delay?

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 5. Aug 2009, 19:49
by alant
I saw the below fix in the 3.0.4 Changelog.
"3D support: fix memory leaks when terminating OpenGL guest applications "

I will update later and see if that fixes the issue.

Any thoughts?

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 10. Aug 2009, 18:09
by alant
After updating to 3.04 I did notice a slight decrease in 3d effects lag. I did a clean install of of Ubuntu 9.04 to a new virtual. There is still some delay on the menus which seems to be continuous. The windows effects seem to be a little bit better. I guess we will just need to wait a little bit longer and leave 3d effects off for now if we are going to use Windows 7 as a host. I didn't notice any issues in a Vista host a couple of months back.

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 12. Aug 2009, 16:52
by dawnh
I've got exactly the same problem. Host OS is Win7 X64 Ultimate RTM, GPU is ATI HD36650, guest OS Ubuntu 9.04, virtualbox version 3.04.
Turn off or on SMP does no help.
So this issue must be fixed by MS?

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 12. Aug 2009, 20:32
by TheBigBabou
I don't know whether MS is to blame. I am having the same lag or ghosting and I am running on a Windows XP 64bit host. The Problem occurs with an Ubuntu 9.04 64bit as well as an Ubuntu 9.10 alpha 64bit as guest. My System with a Core2 Quad and an nvidia 8800 GTS shouldn't be a limitation here.

The reason this problem didn't occur some month ago might be, that Virtualbox 2 didn't have this strange behaviour. Or at least I don't recall having problems with the same setup, except of the virtualbox version. I'm using the latest 3.0.4 version of virtualbox now.

So I didn't find any working solution, maybe someone else has?

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 13. Aug 2009, 03:12
by Cypher100
It also ghosts on the menu on my Nvidia 9800GTX+ Super clocked Edition. I am using windows 7 64bit and I updated the GPU drivers and it still does that ghost thing.

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 13. Aug 2009, 12:00
by killerclems
Same problem with XP SP2 Host and Ubuntu 9.04 guest (last version of VBox), on a Core Duo 8500 + Nvidia 8800 GT (drivers up to date). Menus and windows are ghosting for a very short time (1-2 seconds) after being closed. And it happens randomly. But so far, it doesnt really prevent me to use my Ubuntu VM ;)

PS : This problem wasn't there a few version ago (before VBox 3)

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 13. Aug 2009, 18:38
by speed8500
Same issue. Windows 7 RC x64 host with Ubuntu 9.04 x86 guest. Lots of noticeable lag in graphical effects.

I was very surprised when the Ubuntu guest had more graphical lag than my Vista x86 guest.

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 13. Aug 2009, 20:33
by Sasquatch
speed8500 wrote:Same issue. Windows 7 RC x64 host with Ubuntu 9.04 x86 guest. Lots of noticeable lag in graphical effects.

I was very surprised when the Ubuntu guest had more graphical lag than my Vista x86 guest.
That's not so strange, because the Linux Guest used advanced 3D graphics to display them, while your Vista VM isn't even capable of Aero.


Just a note for those with issues, I fired up my Linux VM and enabled Compiz again and no lag or ghosting. This is on a Linux (Ubuntu 9.04) Host, nVidia 7800 GTX and the 185.18 nVidia driver. Along with that, I have Compiz-Fusion on my Host too. So it seems it's a Windows Host problem, either MS is at fault, or VB.

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 14. Aug 2009, 11:33
by windsok
Hi,

Just chiming in to say that I have the exact same problem with Windows 7 64bit Host and Ubuntu 9.04 Guest.

I get the same ghosting as described above, and there is noticable lag, even when simply typing into a terminal.

Turning off 3D support in VirtualBox made it very snappy again.

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 15. Aug 2009, 03:17
by silvaran
If I can offer a slightly different perspective on this. It almost seems like VirtualBox is being too premature on deciding when to stop video updates.

So I'm running Windows 7 RC 64-bit on an Asus M50Sv (4gb RAM, NVIDIA 9500M w/512MB discrete), VirtualBox 3.0.4. While creating the guest, here are the options I enabled that weren't enabled by default that may be relevant to this:

- Set 128MB video RAM available to guest.
- Enabled 3D support
- Enabled nested page tables (or whatever it's called).

Everything else is supported and enabled by default (like Intel VT instructions, ACPI support IO-APIC, and only 1 processor). I installed Ubuntu 9.04 64-bit, then installed the guest tools, rebooted, and the Compiz 3D effects were enabled as soon as I logged in. I noticed the lag that everyone else is describing, but I'd explain it differently.

So I go to load the appearance preferences window, and it fades into view. Is almost like it gets 95% of the way into view (visible, but a few colors are still off because the window hasn't fully drawn itself yet) and VirtualBox prematurely decides, that's enough, I don't need to track any more display changes for now, and it accepts that mostly-drawn window as the final thing it needs to track and display before it can just sit there waiting for more display changes. After a few seconds of idling, the display gets updated to what it should look like, without actually having used any significant amount of system resources during that waiting period. Or, the display could get updated immediately simply by moving the window (and presumably forcing a display update).

I disabled all the 3D effects and everything looks fine visually. No idea whose bug it is, just thought I'd offer this.

Re: 3D effects lag in Ubuntu 9.04 guest

Posted: 25. Aug 2009, 15:13
by gregory
I have exactly the same problem using Vista Home 64 as host and Ubuntu 9.04 as guest. The problem appeared in VB 3.04. I updated VB yesterday from 2.2.x to 3.0.4. The 3D effects worked perfectly with VB 2.2.x.
I tend to agree with silvaran. The artifact occurs only when I close a window or close a menu. The ghost window/menu stays 1 or two seconds, but if I click on the desktop or move a window during this period of two seconds, the screen is updated and the problem disappears.