Game crashes immediately with nVidia GPUs

Table of Contents

Our games are created using the Ren’Py Visual Novel Engine which requires access to the GPU’s performance counters. To enable the performance counters:

Windows 10 & newer #

  1. Open nVidia Control Panel
  2. Click on Manage GPU Performance Counters
  3. Click on Allow access to the GPU performance counters to all users’

If the option isn’t available, please click on Enable Developer Settings in the top Desktop menu.

MacOS #

Linux #

  1. Unload old modules, run as root or with sudo privileges:
systemctl isolate multi-user
modprobe -r nvidia_uvm nvidia_drm nvidia_modeset nvidia-vgpu-vfio nvidia

2. Insert module allowing GPU performance counter access:

modprobe nvidia NVreg_RestrictProfilingToAdminUsers=0

3. Restart window manager

systemctl isolate graphical

Please note: This setting may be reset when you reboot the computer.

Powered by BetterDocs