You are not logged in.

#1 2016-10-22 15:52:43

anark10n
Member
Registered: 2012-10-13
Posts: 211

[Solved]Freezing when rendering games both 2D and 3D

Hey, there

Got this weird issue, where if I run any game that render in 3D, it will render fine four about 4-5 seconds, and then freeze. To get it moving again, I have to alt-tab (in the case of Steam games) or switch to ctrl+alt+Fn and then back (in the case of standalone games, e.g. Xonotic) to get the game moving again. The game will then run for 4-5 seconds, and then freeze again. Most times I can kill the game and get back to the desktop, there unlucky times, I have to hard reset my computer, and the one really unlucky time, it ruined my grub.

Is there anyway of finding out why this happens? I have a Nvidia GTX 960 OC with the latest propietary drivers installed.

Edit: Not just 3D games, also happening to 2D games as well.

Last edited by anark10n (2016-11-02 20:16:10)

Offline

#2 2016-10-22 17:42:23

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: [Solved]Freezing when rendering games both 2D and 3D

The very first thing to check is if you have direct rendering enabled by using the command: glxinfo | grep "direct rendering". I have limited knowledge of nvidia and intel However, if you are using primus or bumblebee or simillar, make sure thats correctly configured. If you are using a hybrid graphics, this may cause issues. Ensuring you have the latest microcode may help in this case. Finally, make sure you have the correct libgl files and that the proprietary driver is actually running.

All of this is in the wiki; so there is no need for me to continue guessing what's wrong. Again, I have limited knowledge of nvidia and intel. But I wish you well in getting your games working!

Links:
https://wiki.archlinux.org/index.php/NV … er_version
https://wiki.archlinux.org/index.php/Microcode


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#3 2016-10-23 00:42:24

anark10n
Member
Registered: 2012-10-13
Posts: 211

Re: [Solved]Freezing when rendering games both 2D and 3D

Thanks for the pointers.

Direct rendering is turned on. Not using primus, or bumblebee, or hybrid graphics. Installed and configured microcode as per the wiki. Got the correct libgl libs. And I'm still getting the same performance issues.

How does one check if the proprietary drivers are running, isn't it enough that Xorg runs that indicates the driver is running?

Offline

#4 2016-10-23 09:24:21

alex.theoto
Member
From: Athens Greece
Registered: 2014-11-30
Posts: 307

Re: [Solved]Freezing when rendering games both 2D and 3D

lspci -v |grep VGA
uname -a
pacman -Qs nvidia

Does this problem happens only on steam client? Desktop environment?
What is the steam's output when you run from terminal? Any error message?

Last edited by alex.theoto (2016-10-23 09:26:56)

Offline

#5 2016-10-23 11:54:04

anark10n
Member
Registered: 2012-10-13
Posts: 211

Re: [Solved]Freezing when rendering games both 2D and 3D

lspci -v | grep VGA output

01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 960] (rev a1) (prog-if 00 [VGA controller])

uname -a output:

Linux AnarkPrime 4.8.3-1-ARCH #1 SMP PREEMPT Thu Oct 20 19:53:59 CEST 2016 x86_64 GNU/Linux

pacman -Qs nvidia output

local/cuda 8.0.44-1
    NVIDIA's GPU programming toolkit
local/lib32-nvidia-libgl 370.28-1
    NVIDIA drivers libraries symlinks (32-bit)
local/lib32-nvidia-utils 370.28-1
    NVIDIA drivers utilities (32-bit)
local/libvdpau 1.1.1-2
    Nvidia VDPAU library
local/libxnvctrl 370.28-1
    NVIDIA NV-CONTROL X extension
local/nvidia 370.28-2
    NVIDIA drivers for linux
local/nvidia-libgl 370.28-1
    NVIDIA drivers libraries symlinks
local/nvidia-settings 370.28-1
    Tool for configuring the NVIDIA graphics driver
local/nvidia-utils 370.28-1
    NVIDIA drivers utilities
local/opencl-nvidia 370.28-1
    OpenCL implemention for NVIDIA

Doesn't happen with just steam games. Happens with other games as well, e.g Xonotic, Warzone 2100. Can't post any steam errors right now, steam install is acting up again, will post output once I get it running.

Offline

#6 2016-10-23 16:01:09

alex.theoto
Member
From: Athens Greece
Registered: 2014-11-30
Posts: 307

Re: [Solved]Freezing when rendering games both 2D and 3D

lspci -s 01:00.0 -v

Also, which Destop?

Offline

#7 2016-10-23 16:19:26

anark10n
Member
Registered: 2012-10-13
Posts: 211

Re: [Solved]Freezing when rendering games both 2D and 3D

lspci -s 01:00.0 -v output:

01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 960] (rev a1) (prog-if 00 [VGA controller])
	Subsystem: Gigabyte Technology Co., Ltd Device 36be
	Flags: bus master, fast devsel, latency 0, IRQ 126
	Memory at de000000 (32-bit, non-prefetchable) [size=16M]
	Memory at c0000000 (64-bit, prefetchable) [size=256M]
	Memory at d0000000 (64-bit, prefetchable) [size=32M]
	I/O ports at e000 [size=128]
	[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
	Capabilities: <access denied>
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia

Running openbox 3.6.1-3

Offline

#8 2016-11-02 20:15:54

anark10n
Member
Registered: 2012-10-13
Posts: 211

Re: [Solved]Freezing when rendering games both 2D and 3D

This, too, was caused by my incorrect RAM config. Games run fine now.

Offline

Board footer

Powered by FluxBB