Commit Graph
25 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 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
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 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 4baae8de0b port: add extra sleep calls to busy loops; separate sleep into system.c 2024-03-09 17:39:41 +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 6f55843f30 port: backport better SDL framepacing from LUS 2023-11-15 13:53:18 +01:00
fgsfds 6f0cb752aa port: gl: allow user to override context version 2023-10-19 13:36:40 +02:00
fgsfds ed3bd97dd7 port: when loading GL try 3.0 and 3.2 core as well 2023-10-05 18:20:37 +02:00
fgsfds bd113a5b44 port: nicer GL debug output
now only enabled if you pass --debug-gl
2023-09-24 00:41:57 +02:00
fgsfds b6a3aef345 port: add logging and some command line args
--log: logs messages to pd.log

--boot-stage N: sets initial stage number to N (MP stages will crash or hang if booted like this)

--no-sound: disable sound

--rom-file S: set ROM filename
2023-08-31 12:54:18 +02:00
fgsfds 0c01ab76cf port: add simple config file
includes an option to disable vsync and enable cpu-side frame limiter
2023-08-15 21:45:23 +02:00
fgsfds 20fd3a8f67 port: make alt-enter go into fullscreen 2023-08-15 01:06:14 +02:00
fgsfds ea8e49c870 port: linux support; horrible hack to avoid segmented address funny moments
linux support only tested a little bit in a VM
2023-08-04 23:44:20 +02:00
fgsfds a542e93fe7 port: temporarily disable sleep timer 2023-08-02 19:45:49 +02:00
fgsfds 9508b136ff port: replace old fast3d with libultraship-fast3d 2023-08-01 23:37:49 +02:00