Emil Velikov
1e840f286b
mangohud: initialize the window_size
...
This one seems janky - other frontends (glx/egl LD_PRELOAD, Vulkan)
init their own global window_size.
Although in reality we use the initial data solely to set the imgui
"window" position and we immediatelly overwrite it, with the follow-up
call render_imgui().
Odds are this won't fix the glitchy (re)sizes but it's a step in the
right direction.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:17:45 +03:00
Emil Velikov
74e83c0bba
mangoapp: iconify/restore the window, don't destroy it
...
Currently we're destroying the window, from under the glfw's framework
feet.
Basically we do a use-after-free, as glfwWindowShouldClose() is called
and due to some miracle we don't crash out.
Since we suspend all rendering, there's no need to actually destroy the
window - just iconify/restore it. A simple show/hide was attempted but
empirically did not work.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:17:45 +03:00
Emil Velikov
40a1758518
mangoapp: reuse shutdown() helper
...
Use the helper across the board, instead of open-coding it.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:17:45 +03:00
Emil Velikov
fc7a426d67
mangoapp: explicitly handle 0 over the protocol
...
Receiving 0 indicates no-op/keep as-is. Add a trivial self-describing
two-liner.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:17:45 +03:00
Emil Velikov
f2b991cccd
mangoapp: make internal function static
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:17:45 +03:00
Emil Velikov
8482ca00fa
mangoapp: make mangoapp_paused, msgid static
...
Both variables are used within the app alone - make them static to that
unit.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:17:45 +03:00
Emil Velikov
5400332d5a
mangoapp: whitespace fixes
...
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
2022-03-30 10:17:45 +03:00
FlightlessMango
3f92e10c14
mangoapp: fix broken fsr sharpness
2022-03-20 08:00:11 +01:00
FlightlessMango
e6adae8489
mangoapp: fixing some warnings
2022-03-19 22:23:59 +01:00
FlightlessMango
b064f47d66
mangoapp: vulkan layer
2022-03-14 19:49:20 +01:00
FlightlessMango
0402fa4ab5
mangoapp: fsr_steam_sharpness
2022-03-08 17:51:06 +01:00
FlightlessMango
5c984e7b80
mangoapp: fsr_steam_sharpness
2022-03-08 17:36:13 +01:00
FlightlessMango
cf8ba8fd63
mangoapp: clean up msg_size
2022-02-18 16:08:14 +01:00
FlightlessMango
d82738b03c
mangoapp: use GAMESCOPE_FOCUSED_APP_GFX instead
2022-02-18 16:08:14 +01:00
jackun
e555a942fb
Use single IO stats instance
2022-02-18 16:44:10 +02:00
FlightlessMango
e12042ca3d
mangoapp: adjust for changed msg size in gamescope
2022-02-17 15:27:17 +01:00
FlightlessMango
e289a55c6f
mangoapp: make sure steam_focused is false when mangoapp_steam
2022-02-16 11:26:39 +01:00
FlightlessMango
316914da8d
mangoapp: fixed mangoapp not respecting no_display
2022-02-15 19:16:45 +01:00
FlightlessMango
5cdedc4671
mangoapp: gamescope debug graphs
2022-02-15 10:23:33 +01:00
FlightlessMango
7740e8430f
mangoapp: clean up unused variable
2022-02-14 11:01:20 +01:00
FlightlessMango
44a335a809
mangoapp: mangoapp_steam bool
2022-02-14 11:01:03 +01:00
FlightlessMango
339f5c0d11
mangoapp: hide when steam is focused
2022-02-13 14:57:48 +01:00
FlightlessMango
4556caf6d3
mangoapp: remove some debug
2022-02-11 05:52:32 +01:00
FlightlessMango
b598d22543
mangoapp: don't write imgui.ini
2022-02-11 03:05:44 +01:00
FlightlessMango
61fb9267a0
mangoapp: don't use fsr if msg doesn't contain fsr
2022-02-09 05:33:08 +01:00
FlightlessMango
a9f811a207
mangoapp: gamescope fsr
2022-02-09 01:20:24 +01:00
Joshua Ashton
8bc979b53c
mangoapp: Fix janky window size transitions
...
GL apps that use non-normalized coordinates for stuff that will probably do stuff like this a lot in ways that make it hard to precompute the values beforehand make me very upset.
2022-02-01 02:34:36 +00:00
Joshua Ashton
b99817fd2b
mangoapp: Don't redraw if we don't have new frames
2022-02-01 01:34:08 +00:00
Joshua Ashton
da8b0cbad4
mangoapp: Fix usage of notify_one in condition variable
...
This should be outside of the lock_guard scope to avoid a deadlock.
2022-02-01 01:27:45 +00:00
FlightlessMango
15a5edeb51
mangoapp: fixing up ctl switch statements
2022-01-22 05:17:55 +01:00
FlightlessMango
97f6a00171
mangohudctl and interface
2022-01-21 10:35:55 +01:00
FlightlessMango
3e2023a4a2
mangoapp: control socket
2022-01-20 01:24:01 +01:00
FlightlessMango
d734fa1b66
mangoapp: set static height to include benchmark
2022-01-19 05:29:50 +01:00
FlightlessMango
8ee7dc0d7b
mangoapp: increase window size when rendering benchmark
2022-01-19 01:35:46 +01:00
FlightlessMango
5d3c0ff686
mangoapp: make sure logger is inited
2022-01-15 20:05:32 +01:00
FlightlessMango
498687c33d
mangoapp: let gamescope decide when to send updates
2022-01-07 18:42:06 +01:00
FlightlessMango
f7dffb03a1
mangoapp: bump width
2022-01-07 11:00:49 +01:00
FlightlessMango
496fa0babc
mangoapp: shutdown and reinit based on no_display
2022-01-06 10:57:18 +01:00
flightlessmango
01cdc6cdc2
Merge pull request #664 from Joshua-Ashton/gamescope-external
...
mangoapp: Use GAMESCOPE_EXTERNAL_OVERLAY
2022-01-05 05:16:31 +00:00
FlightlessMango
941d5e6977
mangoapp: close if no_display
2022-01-05 06:14:19 +01:00
FlightlessMango
b0fc3d348a
mangoapp: notifier
2022-01-05 06:14:19 +01:00
FlightlessMango
4cd2ba539f
mangoapp: cleaning up
2022-01-05 06:14:19 +01:00
Joshua Ashton
80042e00a3
mangoapp: Rename to "mangoapp overlay window"
2022-01-04 12:17:36 +00:00
Joshua Ashton
0be5e9a72f
mangoapp: Use GAMESCOPE_EXTERNAL_OVERLAY
...
Don't replace the STEAM_OVERLAY
2022-01-04 06:56:56 +00:00
FlightlessMango
ee7f3fbfd2
Mangoapp: frametime message queue
2021-12-13 14:38:50 +01:00
FlightlessMango
23ed317536
mangoapp: shm struct + gamescope engine
2021-11-18 08:25:30 +01:00
FlightlessMango
cb3682633e
Mangoapp: include unistd for sleep
2021-10-18 17:50:58 +02:00
Joshua Ashton
fb619147e4
Set overlay atom to tell gamescope to render over
2021-10-18 17:50:58 +02:00
FlightlessMango
4e3a40c6ef
mangoapp + gamescope shm
2021-10-18 17:50:58 +02:00