This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Piorjade's profile picture

Does any Linux user experience that too?

Started by Piorjade, 19 September 2016 - 08:09 PM
Piorjade #1
Posted 19 September 2016 - 10:09 PM
I'm using Ubuntu 16.04 with openjdk-8-jre-headless and experience noteable delay when switching windows (for example having CCEmuRedux opened and clicking on a piece of the firefox windows behind CCEmuRedux, but firefox only gets in the foreground after ~1-2 sec (that sounds un-noteable but it really is)) and moving windows aroung is noteable more laggy than not having any Java applications opened..

NOTE:
This happened to me basically in EVERY distro / DE I ever tried (from Ubuntu Unity, over any KDE distro, to even Manjaro XFCE)
In Manjaro I could fix that partially by opening the Java application in an extra Desktop and having other programs in the main desktop.

Did anyone experience that too and if yes, could you fix that and how?
LDDestroier #2
Posted 19 September 2016 - 11:42 PM
I'd recommend just downloading Oracle Java. Here's an article that will help you with that.
Piorjade #3
Posted 20 September 2016 - 12:33 AM
I'd recommend just downloading Oracle Java. Here's an article that will help you with that.

I think I already tried that a long time ago. I will try it when I got time l8er today, but I doubt this would work. :(/>
H4X0RZ #4
Posted 20 September 2016 - 07:03 AM
I'm on Arch (my WM is bspwm) and I get no lag at all, other than the "usual" "it takes some time to start a program" lag. I have to wait some seconds for Firefox to start, for example. But then everything runs smooth.
Piorjade #5
Posted 20 September 2016 - 11:08 AM
Huh that's strange and I can't find that problem when googling :/

EDIT:
Installed Oracle's Java 8 (with the link EldidiStroyrr provided) and I still have this problem (EDIT: in CCEmuRedux. I tested Minecraft and KWallet too and both of them don't cause lags).

To explain it ones again:
STATUS: I have no java application opened, 2 windows are opened (Firefox, SteamChatWindow)
I'm browsing with Firefox and suddenly I get a message in the chat (NOTE: both windows are opened and I can see them, obviously) and click on the chat window to be able to write.
It switches instantly to the SteamChatWindow.
I move Firefox a bit to the left, it moves smoothly


–NOW OTHER SCENARIO–


STATUS: I have any (CCEmuRedux, it looks like KWallet and Minecraft don't cause these lags) java application opened and Firefox and the Steamchat again. All windows are visible and I currently have the java window selected.

I move the java window and notice a bit of a lag
I get a message on Steam and click on the chatwindow (which was visible all the time)
It switches to the SteamChatWindow after a delay of ~2 seconds


EDIT 2:
When switching with ALT+Tab, the small window, showing all the tasks I can switch to, freezes for 2 seconds after I let go of ALT+Tab and THEN selects the window.
Using the "taskbar" to switch through windows lags too. Wtf?
Edited on 20 September 2016 - 10:53 AM
Lignum #6
Posted 20 September 2016 - 12:40 PM
Are you sure it's any Java application? I'd guess CCEmuRedux might cause trouble since it accesses the graphics hardware. If you're using the open source drivers, try installing the proprietary ones; they generally run a lot smoother.
Piorjade #7
Posted 20 September 2016 - 12:51 PM
If you mean graphics card drivers, then yeah I use the proprietary drivers.

About any application; I tried CCEmuRedux, Minecraft and KWallet right now.
Well I need to cross out "ANY" because KWallet didn't cause these lags, the others do
Ok ones I installed Oracle's Java I only tried CCEmuRedux.
With Oracle's Java:
- CCEmuRedux causes lags
- Minecraft causes lags
- KWallet does not

With openjdk:
- CCEmuRedux causes lags
- Minecraft causes lags
- KWallet not tested

Thank you Lignum, you reminded me of testing Oracle's on Minecraft too. Gonna edit my posts and cross out "ANY"

Idk maybe it's really a problem specificly in CCEmuRedux, you guys could give me a name of a free Java app to test out if it causes lags.


EDIT 2:
That's a fucking joke I installed ComputerCraft into Minecraft and now these lags started again ._.
They basically start ingame, no matter if vanilla or forge

Looks like there is a problem with ComputerCraft Java and my setup (Hardware or Software)
Going to test something out in VirtualBox…
Edited on 20 September 2016 - 11:38 AM
Lignum #8
Posted 20 September 2016 - 02:24 PM
If you mean graphics card drivers, then yeah I use the proprietary drivers.

Ok ones I installed Oracle's Java I only tried CCEmuRedux.
With Oracle's Java:
- CCEmuRedux causes lags
- Minecraft causes lags
- KWallet does not

With openjdk:
- CCEmuRedux causes lags
- Minecraft causes lags
- KWallet not tested

Yeah, that narrows it down pretty well. It seems that any application that makes use of OpenGL is causing these lags, which I'm not really surprised by.

Sadly, essentially all Linux graphics drivers suck at the moment, with the possible exception of NVIDIA's. So if you can use an NVIDIA card (if you're not already), that would be optimal. If not, you may as well just have to deal with it™ and close the affected applications when they're not in use. However, AMD's new AMDGPU driver seems to be promising, so you might wanna give that a shot if you use fglrx.

Other than that, you could give Wayland a try, which is supposed to be better at hardware acceleration than X11 is, although I do not recommend it, it's very new and unsupported.
H4X0RZ #9
Posted 20 September 2016 - 02:37 PM
But why am I not experiencing this kind of lag? I'm using Linux too (with openjdk 8 AFAIK) and it works as expected. 60 FPS in CCEmuRedux.
Edited on 20 September 2016 - 12:37 PM
Piorjade #10
Posted 20 September 2016 - 02:50 PM
CCEmuRedux is not lagging, switching through windows kind-of freezes for 2 seconds and then switches the window

UPDATE (maybe this only happens on specific distros / specific DEs):
I installed Manjaro KDE (the last time I had Manjaro XFCE I had this problem too) and now everything works just fine with openjdk8

I have no clue what specific distro / Desktop Enviroment you need to have, to get these problems.
Maybe even it has to do something with my specific Hardware-combo (look at my profile to see my main components)

As I'm a so-called ex-"Distro-Hopper" (because I couldn't decide which distro / DE was the best for me before lol I had Ubuntu 16.04 until now, but I already decided to jump over to Arch some-time, and Manjaro XFCE had this problem too, that's why I got KDE (It looks f*cking gorgeous :P/>) ) I had no problem with swapping from Ubuntu-based to Arch-based.
Case closed (for now) I think? :P/>
Piorjade #11
Posted 20 September 2016 - 02:58 PM
If you mean graphics card drivers, then yeah I use the proprietary drivers.

Ok ones I installed Oracle's Java I only tried CCEmuRedux.
With Oracle's Java:
- CCEmuRedux causes lags
- Minecraft causes lags
- KWallet does not

With openjdk:
- CCEmuRedux causes lags
- Minecraft causes lags
- KWallet not tested

Yeah, that narrows it down pretty well. It seems that any application that makes use of OpenGL is causing these lags, which I'm not really surprised by.

Sadly, essentially all Linux graphics drivers suck at the moment, with the possible exception of NVIDIA's. So if you can use an NVIDIA card (if you're not already), that would be optimal. If not, you may as well just have to deal with it™ and close the affected applications when they're not in use. However, AMD's new AMDGPU driver seems to be promising, so you might wanna give that a shot if you use fglrx.

Other than that, you could give Wayland a try, which is supposed to be better at hardware acceleration than X11 is, although I do not recommend it, it's very new and unsupported.

I got a NVIDIA GTX 960(4gb) sooooo yeah.

But anyway as I said, it works on Manjaro KDE :P/>
Lignum #12
Posted 20 September 2016 - 03:19 PM
I got a NVIDIA GTX 960(4gb) sooooo yeah.

But anyway as I said, it works on Manjaro KDE :P/>

Well, alright then. Maybe GTK was causing it, since KDE is mostly Qt (afaik). Either way, I'm glad to hear it works now :)/> .
Cross_Sans #13
Posted 26 January 2017 - 06:05 PM
I'd recommend just downloading Oracle Java. Here's an article that will help you with that.

Oracle Java for Linux is not recommended. Using openjdk is much better and faster.


I think that CCEmuRedux is always re-paiting the window, causing in a big amount of lags.
Piorjade #14
Posted 27 January 2017 - 04:45 PM
I'd recommend just downloading Oracle Java. Here's an article that will help you with that.

Oracle Java for Linux is not recommended. Using openjdk is much better and faster.


I think that CCEmuRedux is always re-paiting the window, causing in a big amount of lags.

I think I already wrote that, but just in case: Minecraft does these lags too and I think that OpenGL is causing that too.
Cross_Sans #15
Posted 27 January 2017 - 04:50 PM
I'd recommend just downloading Oracle Java. Here's an article that will help you with that.

Oracle Java for Linux is not recommended. Using openjdk is much better and faster.


I think that CCEmuRedux is always re-paiting the window, causing in a big amount of lags.

I think I already wrote that, but just in case: Minecraft does these lags too and I think that OpenGL is causing that too.

Yup.
HaddockDev #16
Posted 02 February 2017 - 08:32 PM
I've been running Plasma 5.8 on Kubuntu 16.04 and haven't been experiencing problems.
yet.
The funny thing is that I'm on a wayyyy lower end card and computer (AMD A10 with built in Radeon (Linux says its a AMD Gallium 0.4) on a laptop, sigh)
At least I think it's lower end.

tl;dr such working wow no problem much fast
Piorjade #17
Posted 02 February 2017 - 10:09 PM
I've been running Plasma 5.8 on Kubuntu 16.04 and haven't been experiencing problems.
yet.
The funny thing is that I'm on a wayyyy lower end card and computer (AMD A10 with built in Radeon (Linux says its a AMD Gallium 0.4) on a laptop, sigh)
At least I think it's lower end.

tl;dr such working wow no problem much fast

Yeah KDE worked for me too.
Now try something like XFCE or Unity and tell me if that happens like it did for me! :)/>
HaddockDev #18
Posted 02 February 2017 - 10:26 PM
I've been running Plasma 5.8 on Kubuntu 16.04 and haven't been experiencing problems.
yet.
The funny thing is that I'm on a wayyyy lower end card and computer (AMD A10 with built in Radeon (Linux says its a AMD Gallium 0.4) on a laptop, sigh)
At least I think it's lower end.

tl;dr such working wow no problem much fast

Yeah KDE worked for me too.
Now try something like XFCE or Unity and tell me if that happens like it did for me! :)/>

In past experiences when testing Unity 8 it worked fine for me.
Haven't tested XFCE yet, I'll do it later tonight.

The only thing I could think of that might be slowing it down is the rendering.
I can't recall any time I've had to wait a few seconds for a Java program to show up to be completely honest.
Piorjade #19
Posted 03 February 2017 - 04:29 PM
I've been running Plasma 5.8 on Kubuntu 16.04 and haven't been experiencing problems.
yet.
The funny thing is that I'm on a wayyyy lower end card and computer (AMD A10 with built in Radeon (Linux says its a AMD Gallium 0.4) on a laptop, sigh)
At least I think it's lower end.

tl;dr such working wow no problem much fast

Yeah KDE worked for me too.
Now try something like XFCE or Unity and tell me if that happens like it did for me! :)/>

In past experiences when testing Unity 8 it worked fine for me.
Haven't tested XFCE yet, I'll do it later tonight.

The only thing I could think of that might be slowing it down is the rendering.
I can't recall any time I've had to wait a few seconds for a Java program to show up to be completely honest.

The thing is that moving any window while having CCEmuRedux opened for example does lag.
H4X0RZ #20
Posted 03 February 2017 - 08:39 PM
This is probably not related to your type of problem but…

I were doing some light web-dev yesterday (I had a browser open, one atom window, and two nodejs based servers) and sometimes it completely locked my machine. Other times I could still move windows around but I couldn't interact with the content.
Cross_Sans #21
Posted 03 February 2017 - 09:37 PM

This is really weird, I never had that before.
CrazedProgrammer #22
Posted 03 February 2017 - 11:08 PM
CCEmuRedux doesn't have the best code, in my case it even completely resets all displays to 60hz when I close it.
I recommend you install the up-and-coming great CCEmuX emulator from the AUR, which doesn't have these problems: https://aur.archlinu...ges/ccemux-git/
Edited on 03 February 2017 - 10:12 PM
LDDestroier #23
Posted 04 February 2017 - 04:49 AM
CCEmuRedux doesn't have the best code, in my case it even completely resets all displays to 60hz when I close it.
I recommend you install the up-and-coming great CCEmuX emulator from the AUR, which doesn't have these problems: https://aur.archlinu...ges/ccemux-git/

Make an Ubuntu repository, and I'm in.
apemanzilla #24
Posted 04 February 2017 - 05:01 AM
CCEmuRedux doesn't have the best code, in my case it even completely resets all displays to 60hz when I close it.
I recommend you install the up-and-coming great CCEmuX emulator from the AUR, which doesn't have these problems: https://aur.archlinu...ges/ccemux-git/
Make an Ubuntu repository, and I'm in.

Just download the source and build it yourself with gradle.

./gradlew build
It doesn't get any easier than that.
Edited on 04 February 2017 - 04:04 AM
Piorjade #25
Posted 04 February 2017 - 01:30 PM
CCEmuRedux doesn't have the best code, in my case it even completely resets all displays to 60hz when I close it.
I recommend you install the up-and-coming great CCEmuX emulator from the AUR, which doesn't have these problems: https://aur.archlinu...ges/ccemux-git/

Aah I didn't know about that one, gonna try it out now ! :)/>