Commit Graph

62 Commits

Author SHA1 Message Date
BearOso 79e150886a Add ability to force backdrop color for sprite extraction.
Only Gtk hotkey is hooked up so far.
2023-03-31 17:09:23 -05:00
BearOso d948ef8a19 Make SRAM and GFX.Screen dynamic again. 2023-03-23 19:02:23 -05:00
BearOso 16a45f7b92 libretro: Get rid of EndScreenRefreshCallback.
Just use S9xSyncSpeed, which was there all along.
2023-03-20 16:16:43 -05:00
BearOso 9972e2df56 Change S9xInterlaceField to an inline function. 2023-03-07 14:01:29 -06:00
BearOso daf8fba09c Remove extra variables for interlace field.
Keeping unsynchronized copies around is just asking for trouble.
Instead, use a macro to check the actual memory address.
2023-03-07 14:01:29 -06:00
BearOso 596e84af2a Start simplifying filesystem stuff. 2023-03-07 13:58:21 -06:00
BearOso d99f79bcc0 Fix more warnings. 2023-03-07 13:58:21 -06:00
BearOso a32d391483 Make S9xSetInfoString own its string. 2023-03-07 13:58:21 -06:00
BearOso 1085ed6fad Remove Settings.SupportHires
There's no point in disabling it at this point, so it's always supported.
2022-04-13 15:06:13 -05:00
Nikos Chantziaras 1ea6ef5061
libretro: Fix audio when video rendering is disabled
In commit 6628042fe3, audio upload was
moved from retro_run() to S9xDeinitUpdate(). This breaks audio when
runahead is enabled in RetroArch.

With second-instance runahead, S9xDeinitUpdate() is not called when
video rendering is disabled and thus the core instance responsible for
audio is not uploading the audio. With single-instance runahead, audio
is uploaded twice because video rendering is always enabled and thus
S9xDeinitUpdate() gets called twice per frame.

Fix this by introducing a callback that gets called at the end of every
screen refresh, regardless of whether or not rendering is active for
this frame. We can then decide in the callback whether or not audio
should be uploaded.
2022-04-12 16:08:54 +03:00
BearOso aa6abace40 Create output buffer in core.
TODO: Fix Windows.
2022-04-10 16:41:16 -05:00
jSTE0 305cafc8c8 gfx: Use simpler equality test for IPPU.FrameCount
As it's only incremented here and then reset to 0, avoids integer
division, which can be be expensive on CPUs without this instruction
such as pre-ARMv7 classic ARMs.
2022-02-04 22:48:48 +00:00
BearOso e322bbf109 Remove S9xSetPalette 2020-08-07 14:08:51 -05:00
tryal-star c064706aad add unlimited sprites (range) 2019-11-13 03:25:56 +00:00
bearoso bf4e6f8b62
Merge pull request #523 from yoffy/unmacro-tile
Unmacro tile.cpp
2019-06-26 16:46:12 -05:00
Taimoor Ahmad d16c9775a9 Only show if DisplayTime is enabled in settings 2019-05-11 23:24:17 -04:00
Taimoor Ahmad ed4804ce85 Move to bottom left corner. Fix formatting for time. 2019-05-11 23:04:57 -04:00
Taimoor Ahmad 35531f2962 DisplayTime shows in corner now 2019-05-11 22:53:16 -04:00
Kenta Yoshimura 4ec594f53a Fix syntax error. 2019-04-03 08:28:10 +09:00
Brandon Wright 76b6342ca1 Remove most of GFX_MULTI_FORMAT. 2019-03-07 17:14:51 -06:00
Brandon Wright f2b5f26a35 Move interlace flags to S9xSoftResetPPU.
Windows is calling S9xGraphicsInit on BPP changes, and this
could reset the interlace interval.
2019-02-17 15:57:23 -06:00
Brandon Wright 7c90ccbd0d Fix GCC warning about indentation. 2019-02-14 11:43:25 -06:00
Brandon Wright 5b7c329134 GFX.DoInterlace-- should occur even if we don't render frame.
Also, adjust the turbo frames label.
2019-02-13 18:20:55 -06:00
Brandon Wright 8a2cd602da Add special S9xDisplayStringType to pass additional info.
Add some arrow characters for displayed keys.
2018-12-12 16:15:56 -06:00
Brandon Wright 0bce7c6fdd Use 1 instead of 0 as first # for pressed key display. 2018-12-10 14:58:51 -06:00
Brandon Wright 7e61653051 Fix uninitialized warning and aliased pointers. 2018-12-04 16:07:01 -06:00
Brandon Wright 7bb5b00504 GTK+: Patch into S9xCustomDisplayString.
Fix issue with overlay on overscanned height.
2018-11-17 16:12:06 -06:00
Brandon Wright e307633c7d Fix pragma warning on clang. 2018-11-17 15:16:03 -06:00
Brandon Wright 68e13e9044 Remove useless 'register' storage class.
It's deprecated, and any compiler we use now ignores it.
2018-11-17 15:02:37 -06:00
Brandon Wright 5f56cadafb Use a license stub everywhere.
This points to the full license in the root directory.
2018-11-15 17:31:39 -06:00
retrotalker 1067b3d0ca
resize viewport on load state 2018-08-23 17:35:15 -05:00
Brandon Wright cf5681ad32 Add overclock and sprite limit options. 2018-08-06 15:51:35 -05:00
Brandon Wright 42a2bc6e72 Put back the stuff that broke the Mac port. 2018-07-02 17:41:52 -05:00
Brandon Wright ff1925cc0a Disable interlace mode for bg modes not 5 or 6. 2018-06-25 18:02:10 -05:00
Brandon Wright 5fd4265440 Fix wrong tile choice in mosaic mode. 2018-06-16 15:23:27 -05:00
kps501 239404d28b
add macs rifle controller (win32) 2018-06-04 01:45:53 +00:00
Brandon Wright 9151880046 Disable tree-vrp on GCC for this function. GCC miscompiles it. 2018-06-02 14:28:43 -05:00
Brandon Wright 382db4d9d4 Fix line doubling in interlaced mode. 2018-06-01 11:22:22 -05:00
Brandon Wright 37be67d9ee Use older calculation for non-mosaic offset-per-tile mode. 2018-05-28 13:09:25 -05:00
Brandon Wright 20bd60a3c6 Update copyright dates. 2018-05-25 15:44:52 -05:00
Brandon Wright eba29c569a Fix tile selection in mosaic offset-per-tile mode. Fixes first Contra 3 boss. 2018-05-22 15:58:10 -05:00
Brandon Wright eabfc07c1d Remove left edge set. 2018-05-22 15:22:12 -05:00
Brandon Wright d7492f1804 Left edge must be retested because we're not using whole tile widths. 2018-05-22 15:16:14 -05:00
Brandon Wright a42498b161 Fix a bunch of warnings. 2018-05-13 20:19:21 -05:00
Nebuleon Fumika c64bfbf614 gfx.cpp: memset less memory at once for FirstSprite+Y, accelerating sprite rendering if not all lines have sprites. 2018-05-02 18:03:56 -05:00
Brandon Wright 0d102b72ff Revamping cheats support. 2018-04-25 19:29:26 -05:00
Brandon Wright 5285ec4e9d Move color table generation out of tile renderer. 2018-04-11 12:45:06 -05:00
Brandon Wright 9641b6999e Don't break interlace syncopation on frame skip.
Unfortunately, save states with the wrong field are now broken forever.
2017-11-22 12:36:02 -06:00
Brandon Wright 7a2ca6dc2a Update copyrights. 2017-11-17 16:00:58 -06:00
Brandon Wright 1661fc838c Add copyrights. 2016-10-15 11:31:26 -05:00