-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a GUI and basically rewrite half of the code (#33)
* WIP migrate UI to ImGui * OpenVR -> OVR * cleanups, minimize, no resize and set resolution to Custom * fix .ini categories and improve regions * move some nvml stuff * fix autostart and error handling * Add saveSettings method and can write defaults + icon * properly quit and cleanup with OpenVR * add screenshot in readme, add lodepng license and clarify build steps * Update icon.png * display VRAM as GB and optimize getting it * use openvr buffer * settings wip * Add tray icon * reorder settings * fix FPS going wild because of division by 0 * use int instead of float for configs * code clarity + better nvml init * prevent errors with config * fix vram, fps and reprojection * add missing configs in GUI * Refactor settings finish them! * Add Traypp license * fix res change scales and defaults * tray show instead of open * Update screenshot.png * fix resolution capitalization * Apply most suggestions from Daniel Co-Authored-By: Daniel Lemire <daniel@lemire.me> * Simplify dependencies by only using CPM Co-Authored-By: Daniel Lemire <daniel@lemire.me> * Delete FindOpenVR.cmake Co-Authored-By: Daniel Lemire <daniel@lemire.me> * use another way to copy files so that it may not error * Don't copy binary because CI doesn't like it screw you CI * Update .gitignore * More portable!!! (#34) * saving * tweak * various fixes * various safety tricks * trimming * ok * having fun * cleanup regardless of tray * check arguments * formatting --------- Co-authored-by: Daniel Lemire <dlemire@lemire.me> Co-authored-by: Erimel <marioluigivideo@gmail.com> * give printLine window a name * silently restore settings * Remove auto-start confirmation (non-error) message * Update README.md * improve default config * update manifest * add buttons to pause adjustment and disable current app --------- Co-authored-by: Daniel Lemire <daniel@lemire.me>
- Loading branch information
Showing
17 changed files
with
1,187 additions
and
565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Ubuntu 22.04 | ||
|
||
on: [push, pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ubuntu-build: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
matrix: | ||
shared: [OFF] | ||
cxx: [g++-12] | ||
steps: | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
- name: Setup deps | ||
run: sudo apt-get install ninja-build libwayland-dev libxrandr-dev libxkbcommon-x11-dev libxinerama-dev libxcursor-dev libxi-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev libopenvr-dev | ||
- name: Prepare | ||
run: cmake -DBUILD_SHARED_LIBS=${{matrix.shared}} -G Ninja -B build | ||
env: | ||
CXX: ${{matrix.cxx}} | ||
- name: Build | ||
run: cmake --build build -j=4 | ||
- name: Test | ||
run: ctest --output-on-failure --test-dir build |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SPDX-License-Identifier: MIT | ||
# | ||
# SPDX-FileCopyrightText: Copyright (c) 2019-2023 Lars Melchior and contributors | ||
|
||
set(CPM_DOWNLOAD_VERSION 0.40.2) | ||
set(CPM_HASH_SUM "c8cdc32c03816538ce22781ed72964dc864b2a34a310d3b7104812a5ca2d835d") | ||
|
||
if(CPM_SOURCE_CACHE) | ||
set(CPM_DOWNLOAD_LOCATION "${CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake") | ||
elseif(DEFINED ENV{CPM_SOURCE_CACHE}) | ||
set(CPM_DOWNLOAD_LOCATION "$ENV{CPM_SOURCE_CACHE}/cpm/CPM_${CPM_DOWNLOAD_VERSION}.cmake") | ||
else() | ||
set(CPM_DOWNLOAD_LOCATION "${CMAKE_BINARY_DIR}/cmake/CPM_${CPM_DOWNLOAD_VERSION}.cmake") | ||
endif() | ||
|
||
# Expand relative path. This is important if the provided path contains a tilde (~) | ||
get_filename_component(CPM_DOWNLOAD_LOCATION ${CPM_DOWNLOAD_LOCATION} ABSOLUTE) | ||
|
||
file(DOWNLOAD | ||
https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION}/CPM.cmake | ||
${CPM_DOWNLOAD_LOCATION} EXPECTED_HASH SHA256=${CPM_HASH_SUM} | ||
) | ||
|
||
include(${CPM_DOWNLOAD_LOCATION}) |
Oops, something went wrong.