Commit graph

1910 commits

Author SHA1 Message Date
8d840d89ea Make a constant for the park signal in case we want to change it 2025-04-06 23:48:40 +02:00
e3ce9ae828 Park the main thread while getting audio frames from the game
The main justification for this is that normal behaviour from a
backend is to have the main thread be interrupted by the audio system
and to then stay within the audio system while getting audio
frames. Parking the main thread simulates this by ensuring nothing
else happens in the game's logical flow at the same time.
2025-04-06 23:44:27 +02:00
faa808e238 Remove a little more 3DS gunk 2025-04-06 22:57:11 +02:00
c7dd1520c6 Skip copying unnecessary byte during blitting 2025-04-06 22:56:12 +02:00
6ab4984350 Adjust rendering code to 4-byte pixel format with unused byte 2025-04-06 22:48:08 +02:00
33b59f8219 Remove some 3DS stuff 2025-04-06 22:41:13 +02:00
01e0787473 Use the correct header file for Solaris audio 2025-04-06 21:18:39 +02:00
b99fe37522 Don't use thread locals in stb_image (doesn't work on Solaris) 2025-04-06 21:18:13 +02:00
31d16e714f Add untested preliminary audio backend for Solaris 2025-04-06 12:25:30 +02:00
98b2b4c64d Make compatible with the Sun's pixel format 2025-04-05 19:51:34 +02:00
e01863b80c Add initial code for raw X11 backend 2025-04-04 22:03:22 +02:00
Artemis Everfree
f06884b2a3 track dkp changes - update _3DS to __3DS__ & update README 2023-04-10 23:27:11 -07:00
Clownacy
af837edda4 Remove an unneeded font variable 2020-11-05 19:42:04 +00:00
Clownacy
cec5fdb231 3DS: Add vsync
Fixes screen-tearing in CSE2EX

...I should really figure out whether to enable vsync on other
platforms or not. I'm not even sure if the original DirectDraw
renderer used vsync - I swear I've never seen tearing in it before.
2020-11-04 22:17:18 +00:00
Clownacy
17911753a6 3DS: Fix 'Studio Pixel presents' text
It must have something to do with BeginRendering and EndRendering
being spammed multiple times in a frame.
2020-11-03 21:47:07 +00:00
Clownacy
6c1eb23fe1 Simplify some pointer logic 2020-11-03 20:22:51 +00:00
Clownacy
f1fd371db7 Update 3DS-Software threading priority code
This matches the 3DS-Hardware backend
2020-11-03 20:19:21 +00:00
Clownacy
9e9b8942a5 Don't upload glyphs with no width or height
The SDLTexture renderer gives annoying errors otherwise
2020-11-03 13:33:32 +00:00
Clownacy
5395196b52 Disable SDL1 OpenGL window resizing
Seems to be broken. I'll address it in the future.
2020-11-03 13:16:30 +00:00
Clownacy
84df1a427b Explicitly disable vsync in OpenGL
It seems to be enabled by default (it was on my Raspberry Pi, anyway)
2020-11-03 13:14:51 +00:00
Clownacy
4a6b04d306 Fix a typo 2020-11-03 12:03:59 +00:00
Clownacy
cded38dad8 Remove some trailing whitespace 2020-11-02 14:34:37 +00:00
Clownacy
744ddcaacf Fix use of uninitialised memory in Font.cpp
This can cause random text corruption
2020-10-25 23:37:58 +00:00
Clownacy
98f78716f7 Update portable branch with licence boilerplates
Also added Cameron Cawley to the licence
2020-10-23 19:18:13 +01:00
Clownacy
afb2b22e58 Merge branch 'accurate' into portable 2020-10-23 19:10:36 +01:00
Clownacy
d81c46a79c Release custom code under the MIT licence
Of course, Pixel's code is still proprietary.
2020-10-23 19:09:55 +01:00
Clownacy
f9e96e2608 3DS: Fix text transparency
RenderBackend_UploadGlyph calls EndRendering, and BeginRendering
isn't called before RenderBackend_DrawGlyph runs.
2020-10-21 19:09:20 +01:00
Clownacy
a14aa30bde Avoid a const violation 2020-10-21 00:00:35 +01:00
Cameron Cawley
44544a65d2 RISC OS port 2020-10-20 17:33:36 +01:00
Cameron Cawley
131a8decc0 Update SDL 1.2 backend to reflect recent changes 2020-10-20 14:22:31 +01:00
Cameron Cawley
11fb3911a6 Update SDL 1.2 backend to reflect recent changes 2020-10-20 13:44:24 +01:00
Cameron Cawley
5328426b4b Support using the OpenGL3 renderer with SDL 1.2 2020-10-20 13:44:23 +01:00
Cameron Cawley
9b81f45381 Add an SDL 1.2 audio backend 2020-10-20 13:44:23 +01:00
Cameron Cawley
72a5f36654 Always use the first available joystick with SDL 1.2 2020-10-20 13:43:17 +01:00
Cameron Cawley
d5f12b2f2b Add a fallback for when 24bpp screen modes are unsupported 2020-10-20 13:43:17 +01:00
Cameron Cawley
cf8789f887 Initial SDL 1.2 backend 2020-10-20 13:43:17 +01:00
Clownacy
79ec91c851 3DS: Make the DSP error message more clear
End-users will probably wind up seeing it
2020-10-20 01:23:41 +01:00
Clownacy
52affb4ac5 3DS: Tiny cleanup 2020-10-20 00:54:52 +01:00
Clownacy
c60303e1c7 3DS: More error handling 2020-10-20 00:49:46 +01:00
Clownacy
ccd436bce7 3DS: More error detection for audio 2020-10-20 00:47:38 +01:00
Clownacy
8a560eb873 Shut up a GCC warning 2020-10-18 14:25:44 +01:00
Clownacy
2e6c291400 3DS: Move save data to different directory
There seems to be an unofficial standard between 3DS homebrew devs,
where data goes in `3ds/data`.
2020-10-18 13:19:07 +01:00
Clownacy
48926f32c2 3DS: Detect more errors 2020-10-17 22:48:18 +01:00
Clownacy
dd0d453709 3DS: Disable depth test 2020-10-17 22:46:12 +01:00
Clownacy
5d970e860c Cleanup 2020-10-15 14:28:46 +01:00
Clownacy
35d3d20d44 Even better way 2020-10-15 14:27:16 +01:00
Clownacy
977a5eb49d Add better 3DS audio thread priority 2020-10-15 14:25:48 +01:00
Clownacy
497adce14b Add mutexes to 3DS audio backend 2020-10-15 14:22:49 +01:00
Clownacy
2f8e771333 Fix a typo 2020-10-15 14:00:55 +01:00
Clownacy
cbef077ff7 3DS - Save some RAM 2020-10-15 13:46:56 +01:00