Erimelowo / OpenVR-Dynamic-Resolution

Lightweight OpenVR app to dynamically adjust your HMD's resolution depending on your GPU frametime, CPU frametime and VRAM.
https://store.steampowered.com/app/3243840/OVR_Dynamic_Resolution/
BSD 3-Clause "New" or "Revised" License
102 stars 6 forks source link

Support Linux #8

Open Erimelowo opened 1 year ago

Erimelowo commented 1 year ago

Support building from Linux, and using the program on Linux.

Erimelowo commented 1 year ago

Can now build, but I don't know if it actually works.

kruemmelbande commented 1 year ago

Implementing the hiding on startup broke linux support, so it does not compile anymore.

Erimelowo commented 1 year ago

Implementing the hiding on startup broke linux support, so it does not compile anymore.

Should be fixed by https://github.com/Louka3000/OpenVR-Dynamic-Resolution/commit/5caba053fb7fcb11302d3df6ca64b6658b829ced

Erimelowo commented 1 year ago

Tried VR on Linux... can't even get into a VR game ._.

myghi63 commented 10 months ago

@Louka3000 I have a very strong interest of making this software working on linux. I'm willing to spend time to test, debug and help since I'm currently running all my vr games under Arch Linux + Plasma Wayland here.

About the problem of not getting into any vr game, it's probably because you have to go to SteamVR settings and set itself to the default OpenXR Runtime, so games like beat saber will launch.

Should I use the same instructions of the readme to compile your software here? Do you want me to test some specific stuff? let me know, please!

kruemmelbande commented 10 months ago

@Louka3000 I have a very strong interest of making this software working on linux. I'm willing to spend time to test, debug and help since I'm currently running all my vr games under Arch Linux + Plasma Wayland here.

About the problem of not getting into any vr game, it's probably because you have to go to SteamVR settings and set itself to the default OpenXR Runtime, so games like beat saber will launch.

Should I use the same instructions of the readme to compile your software here? Do you want me to test some specific stuff? let me know, please!

I actually managed to build it on linux with some small tweaks. You just have to follow the instructions, and make sure that you have the dependencies for vcpkg installed, which are curl zip unzip tar cmake ninja. I havent tested the build yet, as i dont have much time rn, but feel free to look if my fork works for you. https://github.com/kruemmelbande/OpenVR-Dynamic-Resolution/tree/main It actually runs, but i have not tested any games or anything

myghi63 commented 10 months ago

@Louka3000 I have a very strong interest of making this software working on linux. I'm willing to spend time to test, debug and help since I'm currently running all my vr games under Arch Linux + Plasma Wayland here. About the problem of not getting into any vr game, it's probably because you have to go to SteamVR settings and set itself to the default OpenXR Runtime, so games like beat saber will launch. Should I use the same instructions of the readme to compile your software here? Do you want me to test some specific stuff? let me know, please!

I actually managed to build it on linux with some small tweaks. You just have to follow the instructions, and make sure that you have the dependencies for vcpkg installed, which are curl zip unzip tar cmake ninja. I havent tested the build yet, as i dont have much time rn, but feel free to look if my fork works for you. https://github.com/kruemmelbande/OpenVR-Dynamic-Resolution/tree/main It actually runs, but i have not tested any games or anything

Thank you! I will let you know if this actually works as soon as possible :3 I really want to use it on VRChat since my gpu is kinda slow for this game (RX 5500XT 8GB).

myghi63 commented 10 months ago

@Louka3000 I have a very strong interest of making this software working on linux. I'm willing to spend time to test, debug and help since I'm currently running all my vr games under Arch Linux + Plasma Wayland here. About the problem of not getting into any vr game, it's probably because you have to go to SteamVR settings and set itself to the default OpenXR Runtime, so games like beat saber will launch. Should I use the same instructions of the readme to compile your software here? Do you want me to test some specific stuff? let me know, please!

I actually managed to build it on linux with some small tweaks. You just have to follow the instructions, and make sure that you have the dependencies for vcpkg installed, which are curl zip unzip tar cmake ninja. I havent tested the build yet, as i dont have much time rn, but feel free to look if my fork works for you. https://github.com/kruemmelbande/OpenVR-Dynamic-Resolution/tree/main It actually runs, but i have not tested any games or anything

This actually works here! although the vram monitoring says "disabled" and it isn't able to set itself on autostart, it's working perfectly fine ^^

I also had to install the openvr package on my package manager (arch linux)

I set maxRes=100 to avoid image corruptions at very high resolutions and resChangeDelayMs=5000 to avoid glitching SteamVR

kruemmelbande commented 10 months ago

Afaik, the vram monitoring only works on nvidia, so thats probably why it wont show up. Ill try later with my gtx1080, if it shows up

kruemmelbande commented 10 months ago

Okay, so, i did some testing, and it doesnt show vram usage on nvidia either, however, the rest works perfectly fine, besides autostart. Ill see if it compiles on windows, and then maybe make a pr (hopefully with 100% less memory leaks than my last one)

kruemmelbande commented 10 months ago

Ok, so, as it turns out, this doesnt compile on windows. To me, it looks like there is some difference in the default libraries, but im just guessing here.

Erimelowo commented 1 month ago

https://github.com/Erimelowo/OpenVR-Dynamic-Resolution/commit/b797e5a391d118e9c31e212698c71fe661138346 is a big step towards this.
We now have CI that successfully builds on Ubuntu.