Well, after a lot more test, I discovered that there is the bug when I launch KSP from the command line (directly or through primusrun/optirun). But when I launch KSP from my file manager (thunar), it is OK. I tested with a .desktop file and launching it whith my file manager and it is also OK, both directly or with primusrun. I didn't tested to launch the desktop file from the command line because I didn't find how. Apparently the bug can be bypassed with the desktop file. But I don't know why there is this bug from the command line. A problem of environment variable ?