Commit Graph
1026 Commits
Author SHA1 Message Date
louist103andGitHub 62f9df4f74 Update RCP and RSP (#833)
* Update RCP and RSP

* Format
2025-03-21 21:43:03 -04:00
snowboundmage2andGitHub db2da8a32b Missing namespace for some instances of (std::)static_pointer_cast. (#830)
* fixed compilation errors for linux with static_pointer_cast

* aded #include <memory> for better formatting

* clang format
2025-03-21 21:41:37 -04:00
LywxandGitHub 7e0f42e952 Implemented osSetTime to fix osGetTime not using boot time (#829)
* Implemented osSetTime to fix osGetTime not using boot time

* Fixed tidy
2025-03-21 20:45:45 -04:00
SpodiandGitHub 5d3d38e0cb Assume 60Hz if SDL reports 0Hz (#828)
This fixes a crash on MacOS, where SDL sometimes outputs 0Hz for secondary displays on startup.
2025-03-21 19:57:05 -04:00
coco875andGitHub c6bd64c5da Fix shader factory (#836)
* fix shader factory

* Update ShaderFactory.cpp

* Update gfx_pc.cpp

* fix typo

* fix typo
2025-03-16 17:27:33 -04:00
LywxandGitHub 5040e9d743 Moved shaders to prism lang (#821)
* Implemented shader load and prism

* Bump prism

* Moved shaders to prism

* Fixed some compilation issues

* Fixed windows compilation errors

* Fully ported directx to prism

* Ported metal shader to prism

* Bump prism and fixed metal

* Removed log on metal

* Bump prism and fixed some compilation errors

* Fixed tidy

* Fixed tidy again

* Bump prism

* Bump to fix linux

* Bump prism

* Fixed missing semantics on texClamp

* Bump prism to add include support

* Bump prism to fix missing include

* Fixed tidy
2025-03-13 21:56:05 -04:00
coco875andGitHub a205002a0a Move init data logic to resource loader (#790)
* basic support of png

* progress on png

* get it halfly work

* switch to stbi and get it work

* rename around

* fix format

* finish rename

* remove include of png.h

* Update PngFactory.cpp

* move initData logic in ResourceLoader

* remove image part

* Update ResourceLoader.cpp
2025-03-13 21:24:35 -04:00
MegaMechandGitHub 02bb77ef25 Remove load tile check (#816) 2025-02-20 22:08:51 -05:00
louist103andGitHub 242792dcfd delete and initialize (#782) 2025-02-20 21:34:53 -05:00
6f1461e6b7 Raw mouse input support (#798)
* mouse raw input test

* fixes

* focus fix

* input buffering fix

* remove multiplyer

* use raw input for mouse capture only & compatability fix

* fix

* clang format

* small moving around

---------

Co-authored-by: lilacLunatic <8488221+lilacLunatic@users.noreply.github.com>
2025-02-20 20:36:26 -05:00
LywxandGitHub 204c62f785 Fixed missing trace on expanded commands (#809) 2025-02-20 20:25:32 -05:00
SpodiandGitHub 7fb120b3c1 V-Sync toggle in SDL (OpenGL + Metal) (#822)
* Allow switching V-Sync in OpenGL

* V-sync Metal

* Only call SetSwapInterval when cvar changes

* Only read cvar once per frame
2025-02-20 20:16:52 -05:00
ArchezandGitHub 28bb246294 Fix cache record for file load errors in resource manager (#823) 2025-02-19 16:46:40 -05:00
ArchezandGitHub f776531abf Fix and improve the console window (#819)
* Fix and improve the console window

* drop local var
2025-02-14 11:42:57 -05:00
ArchezandGitHub 27a5023362 Remove key repeat from menu triggers (#818) 2025-02-14 11:27:42 -05:00
ArchezandGitHub 35e909ece4 Fix O2R log statement not compiling (#820) 2025-02-14 09:37:44 -05:00
Lars-Christian SellandandGitHub 5d8154e84c macOS Scaling Fix (#811) 2025-02-14 09:26:31 -05:00
MalkierianandGitHub 603b6c7da2 More Filesize 0 changes (#803)
* Make `OtrArchive` and `O2rArchive` trace on filesize 0 and return nullptr.
Make `LoadResourceProcess` return nullptr from file being nullptr before running `LoadResource`.
Change `fileToLoad == nullptr` log to TRACE in `Archive::LoadFile`.

* formatting
2025-02-11 12:00:44 -05:00
briaguyaandGitHub fff4a8ee22 fix rumble mappings not loading from config (#814) 2025-02-09 08:22:36 -05:00
SpodiandGitHub 74f1c35cd3 Default MaximumFrameLatency increased (#812)
Defaults jitter fix to be on, instead of off, if nothing is set by a port.
2025-02-08 23:45:56 -05:00
briaguyaandGitHub b7040484f1 fix: check for rumble in rumble factory not LEDs (#810) 2025-02-04 14:18:31 -05:00
ReddestDreamandGitHub 391988b0cb Correct "Fix Vanishing Paths" Options on Metal. (#808)
Options controlling "Fix Vanishing Paths" were not working correctly on Metal as "gZFightingMode" was not properly renamed to "CVAR_Z_FIGHTING_MODE" for Metal as was done for OpenGL and DirectX. Thanks to @larsy1995 (Fenrir) for help finding and testing this fix. Thanks!
2025-02-04 14:08:24 -05:00
ReddestDreamandGitHub e641b3777c Update gfx_sdl2.cpp to fix macOS Metal Slowdown. (#807)
Fixes stutter/inability to lock 60 consistently on macOS using Metal. May also provide performance benefits under OpenGL and Linux. This is the weird 57-58 fps issue noticed on Metal graphics on Macs for a long while.

Thanks to @Spodi, @Malkierian, ProxySaw, and Fenrir for their help on Discord getting this figured out! :D
2025-01-31 11:29:26 -05:00
briaguyaandGitHub 50eb906f20 let ports set default controls (#795)
* start getting stuff in place to let ports set default controls

* naming

* sdl buttons

* axis direction to button mapping

* keyboard key to axis direction

* button to axis direction

* axis direction to axis direction

* remove now unused cmake kb mapping stuff

* fix a couple little things
2025-01-28 20:29:29 -05:00
MalkierianandGitHub 5341b01725 Add check to LoadFile to check for fileToLoad == nullptr before calling ReadResourceInitDataLegacy to prevent crashes from trying to assign to a null container with files of 0 size. (#802) 2025-01-27 14:03:38 -05:00