Commit Graph
122 Commits
Author SHA1 Message Date
fgsfds e3104b7043 Merge pull request #538 from ZenithMDC/revamp-video-options
Allow changing video resolution at runtime + more
2025-02-22 11:26:43 +01:00
fgsfds a14e9ed97e port: retry creating SDL window when trying different GL versions 2024-12-11 14:06:44 +01:00
Matthew Coppola 1d14877bec Allow changing vsync and framerate limit at runtime
Also implements a new menu item flag: MENUITEMFLAG_SLIDER_DEFERRED,
which only calls the MENUOP_GETSLIDER callback on entering dimmed mode,
storing its value for later ticks, and only calls the MENUOP_SET
callback on leaving dimmed mode. This was necessary to prevent the
framerate limit slider from immediately affecting the framerate, leading
to an annoying slow down as the value was decremented to 0.
2024-12-06 17:20:22 -05:00
Matthew Coppola 5aa1cc6117 Cache ints instead of strings for video modes 2024-12-06 17:20:22 -05:00
Matthew Coppola 1be0e3680b Add video option to center the window 2024-12-06 17:20:22 -05:00
Matthew Coppola 09b0a12b0a Allow changing video resolution at runtime + more
Fullscreen exclusive mode is togglable at runtime, as well, as a
dropdown menu with "borderless" and "exclusive" options. All variables
pertaining to video resolution, exclusive mode, and maximized state are
now synchronized. For instance, Alt+Enter will affect the state of the
fullscreen video option and maximizing the window via the title bar will
update the maximize window option accordingly.
2024-12-06 17:20:15 -05:00
fgsfds f75a569075 Merge pull request #522 from ZenithMDC/centered-crosshairs
Center-align crosshairs, zoom range, and radar
2024-11-23 09:20:48 +01:00
fgsfds ba1b6c3232 port: turns out depth_clamp is in core GL since 3.2 2024-11-20 12:51:35 +01:00
fgsfds 3c020cad84 port: detect gl core and GLES3 at runtime; add hacks to make it work properly 2024-11-20 12:07:18 +01:00
fgsfds efda5a5f44 port: also try GL4.1 core; a little bit of cleanup 2024-11-19 17:37:19 +01:00
Matthew Coppola fb18da239f Move subpixel offset code & fix radar UV map
The subpixel offset code has been moved into the draw_rectangle
function, so it can be applied to more than just the fill_rectangle
function.

The radar texture was displaced along its V component and has
been corrected. It has also been subpixel-adjusted to align with the
player's radar dot.
2024-11-15 03:16:33 -05:00
Matthew Coppola 942c966bf2 Replace centered rects with subpixel offsets 2024-11-15 03:16:32 -05:00
Matthew Coppola e0d59345c7 Center-align crosshairs and zoom range 2024-11-15 03:16:32 -05:00
fgsfds 2cb29e91c6 port: only run the menu blur filter once 2024-11-13 14:04:36 +01:00
fgsfds 55cc2d8e72 port: nswitch: basic Nintendo Switch port 2024-11-13 12:50:42 +01:00
MaikelChan 9cd978a7a9 Removed more APPLE checks. 2024-08-05 19:11:33 +02:00
MaikelChan a60880ef80 Three point and shader improvements
- Fixed blurry menu background being unfiltered when three point is enabled.
- Some shader code refactor to reduce the amount of __APPLE__ defines: use the SAMPLE_TEX macro to sample textures.
- Detach shaders before deleting them.
2024-08-05 17:09:00 +02:00
fgsfds 897020b3fd port: clean up depth_zfar remnants 2024-08-05 11:42:21 +02:00
fgsfds e85fdb3b9b port: exclude threepoint-related shader code when it's not enabled 2024-08-05 11:41:45 +02:00
fgsfds e3e72617a1 Merge pull request #483 from MaikelChan/three_point
Improvements to three point filtering
2024-08-05 10:38:15 +02:00
MaikelChan 6fa78556f4 Implemented texture filtering setting with a dropdown showing all three options, and three point can be changed in real time. 2024-08-05 04:15:30 +02:00
MaikelChan 5fdeff6a82 Disabled depth range functionality. Doesn't seem needed anymore. 2024-08-04 22:10:46 +02:00
MaikelChan 0ea8872471 Perform a depth only clear right before rendering the gun. 2024-08-04 13:14:03 +02:00
MaikelChan 29d6392514 Forgot some extra checks. 2024-08-04 06:11:50 +02:00
MaikelChan b9f6961931 Depth compare improvements based on GlideN64. 2024-08-04 05:28:10 +02:00
fgsfds de3b8ff548 port: revert multithreaded audio experiments
until I can figure out how to fix all the funny concurrency issues that cropped up
2024-05-19 19:44:34 +02:00
fgsfds 4c552a42f2 port: experimental multithreaded audio 2024-05-18 18:53:12 +02:00
fgsfds 197208b951 port: add detail textures toggle 2024-05-14 10:13:50 +02:00
fgsfds 4bd314f60b port: add exclusive fullscreen and hidpi settings
for now config only

exclusive fullscreen uses DefaultWidth/DefaultHeight for resolution

hidpi defaults to off
2024-05-13 22:23:04 +02:00
fgsfds f3c1242858 port: more detail texture adjustment 2024-05-13 12:15:42 +02:00
fgsfds ef3d53b9f7 port: make detail textures less intense 2024-05-13 01:15:30 +02:00
fgsfds 1d040b1ccc port: hackfix detail textures
this might have broken something else
2024-05-13 00:30:21 +02:00
fgsfds 9755f3ab41 port: even more gfx_pc cleanup 2024-05-13 00:28:19 +02:00
fgsfds 536c766793 port: more gfx_pc cleanup 2024-05-12 17:09:50 +02:00
fgsfds dca1e1752b port: remove remnants of masked/blended texture support 2024-05-12 16:48:33 +02:00
fgsfds 4baae8de0b port: add extra sleep calls to busy loops; separate sleep into system.c 2024-03-09 17:39:41 +01:00
fgsfds fe0d9b3cfd port: fix blur shader on some older cards 2024-02-10 16:56:54 +01:00
fgsfds 935cd1faa9 port: gl: dump shader source when compilation fails 2024-02-10 14:07:20 +01:00
fgsfds c487e423b1 port: fix blur-related crash on Intel GPUs 2024-01-03 21:55:07 +01:00
Dominic Della Valle 0221839699 port: add maximize window option to extended menu 2023-12-16 11:56:39 -05:00
Dominic Della Valle 8c509db888 port: add start window maximized flag to config 2023-12-16 07:04:52 -05:00
fgsfds 7647062619 port: hard cap FPS to 200 for now 2023-12-06 17:11:21 +01:00
fgsfds f96e7da00f port: use proper aspect for 2D elements
this means that now scaling at most 4:3 resolutions will be a bit mangled, since the real base resolution is 320x220
2023-12-03 21:10:41 +01:00
fgsfds 2c20a0487e port: better menu blur
TODO: make it render the blurred texture to the fb once instead of rendering it blurred every frame
2023-12-02 19:18:47 +01:00
fgsfds 7cd3dafaa4 port: add wide HUD centering option for ultrawide displays 2023-11-27 11:52:53 +01:00
fgsfds 3328e147eb port: hackfix some more RGBA32 textures 2023-11-22 22:19:54 +01:00
fgsfds 305e64a263 port: restore glReadBuffer value after changing it
this might fix reshade
2023-11-18 00:43:22 +01:00
fgsfds 6f55843f30 port: backport better SDL framepacing from LUS 2023-11-15 13:53:18 +01:00
fgsfds 81a5e971ef port: finish drawing before copying the backbuffer 2023-10-21 14:24:36 +02:00
fgsfds 6f0cb752aa port: gl: allow user to override context version 2023-10-19 13:36:40 +02:00