Clownacy
9a79041c6c
Optimise the Lanczos resampler a little
...
Apprently floating-point divisions are slower than multiplications
2020-08-31 17:28:35 +01:00
Clownacy
48386d443b
Add optional Lanczos filter to the audio mixer
...
Should be higher-quality than the linear-interpolator, but also much
slower, so it's disabled by default.
2020-08-31 16:07:25 +01:00
Clownacy
39067057c1
Fix some code formatting
2020-08-29 18:10:59 +01:00
Clownacy
845ee1b96f
Don't store subsample offset as long
...
Only a short is needed.
2020-08-25 02:44:54 +01:00
Clownacy
da5d7982c6
Improve SDL2 event handling accuracy
...
Now the event loop doesn't run constantly when the window isn't
focussed. This should match the original WinAPI code's behaviour.
2020-07-13 17:31:30 +01:00
Clownacy
a392034fd6
Fix input lag in SDL2 backend
...
If you spam keyboard inputs, they'll eventually lag behind. This was
caused by improperly porting the WinAPI logic to SDL2 and CSE2's
fancy backend-abstraction system.
2020-07-13 00:19:27 +01:00
Clownacy
1582af91cf
Replace more float logic with integer-only
...
I hate floats >:(
2020-07-09 01:09:19 +01:00
Clownacy
6e486d9226
Er, actually remove those dead includes
2020-07-08 20:00:49 +01:00
Clownacy
ab82f014ae
Avoid some float logic
...
Also shuts up some VS2019 warnings
2020-07-08 19:33:53 +01:00
Clownacy
565c79a4ce
Fix GLFW3 software renderer in VS2019
...
GLFW will include these headers for us properly
2020-07-08 19:33:49 +01:00
Gabriel Ravier
ca8b5ccaa1
Merge branch 'portable' into portableMinimizeHeaders
...
# Conflicts:
# src/BulHit.cpp
2020-07-02 15:26:33 +02:00
Gabriel Ravier
81edd4db52
src: Restored SDL.h includes to conform to project style of including SDL2
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-07-02 14:59:55 +02:00
Gabriel Ravier
187847fbcc
src: Fixed not including headers that are included for detection of conflicting definitions
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-07-02 14:43:47 +02:00
Clownacy
6cc976d4d6
Wii U audio tweaks
...
Clean-up better, and neaten-up some code
2020-07-02 02:31:55 +01:00
Gabriel Ravier
3620e31bf8
src/BackendS/Platform/WiiU.cpp: Add explicit include of <stddef.h>
for NULL
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-07-01 18:33:25 +02:00
Gabriel Ravier
32c8795ead
src: Cleaned up includes to only (and always) include what we use
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-07-01 18:26:22 +02:00
Clownacy
1d76e25c35
Better Wii U audio cleanup
2020-06-30 20:39:20 +01:00
Clownacy
e0c67b421a
Add constant to control number of Wii U buffers
2020-06-30 20:38:28 +01:00
Clownacy
371d66255b
Fix popping in the Wii U audio backend
2020-06-30 20:37:16 +01:00
Clownacy
78da025796
Merge pull request #130 from GabrielRavier/portableSupportPathsAboveFilenameMax
...
Support paths above PATH_MAX (for portable)
2020-06-30 14:09:57 +01:00
Clownacy
47367614a3
More accuracy improvements
...
That one comment should go in the accurate branch, not here
2020-06-30 14:04:53 +01:00
Clownacy
27a1fd900f
Revert more unnecessary edits
2020-06-30 13:48:46 +01:00
Clownacy
a5c09b67f7
Wii U renderer cleanup
2020-06-29 22:13:03 +01:00
Clownacy
f6fe0537ed
Add vertex-batching to Wii U port
...
Should remove the last bit of lag that port has (like the Labyrinth
fight where you team-up with Curly)
2020-06-29 21:37:05 +01:00
Clownacy
9925c16b29
Minor cleanup
2020-06-29 19:19:50 +01:00
Clownacy
93535c5501
Sync OpenGL3 renderer with Wii U renderer
2020-06-29 18:36:38 +01:00
Gabriel Ravier
771b944d17
src: Some cleanup for the MAX_PATH std::string PR
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-29 19:02:25 +02:00
Gabriel Ravier
564d42dbd2
src: Change from using asprintf-based code to using std::string-based code
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-29 18:33:22 +02:00
Clownacy
1523f1d3a6
Unified the Wii U vertex buffers
2020-06-29 16:40:32 +01:00
Clownacy
c7bd79e13f
Comment style tweaks
2020-06-29 15:25:01 +01:00
Gabriel Ravier
32a879ca58
src: Removed MAX_PATH and made the path/string handling better in general (ported over from supportPathsAboveFilenameMax)
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-06-29 00:14:30 +02:00
Clownacy
1fbdbf6015
Audio backend notes
2020-06-28 22:18:00 +01:00
Clownacy
48935eb10d
Fix Windows builds when path contains accent char
2020-06-27 19:34:09 +01:00
Clownacy
27a621f923
Update miniaudio to v0.10.9
...
Had to add a small bugfix to get it to work
2020-06-24 17:40:08 +01:00
Clownacy
dae87c6106
Update Wii U audio backend
2020-06-24 17:34:25 +01:00
Clownacy
f64f924b54
Update miniaudio backend
2020-06-24 17:24:41 +01:00
Clownacy
3fa4a91dc1
Reword audio backend logic
...
This will make it easier to integrate into the enhanced branch, and
also improved audio quality slightly (samples are mixed as 16-bit
instead of 8-bit).
2020-06-24 17:03:13 +01:00
Clownacy
70e431d35d
Add missing(?) header
2020-06-24 16:02:28 +01:00
Clownacy
1ff5772843
Fix typo
2020-06-24 12:12:28 +01:00
Clownacy
2ee1bf131e
Update miniaudio backend to new mixer
2020-06-24 01:15:21 +01:00
Clownacy
479fff2ccf
New mostly-integer-only sound mixer
...
The mixer itself is integer-only, but the millibel stuff is still
float-based (I don't know if it's worth adding a 10001-value-long
lookup table to replace it).
Anyway, according to a quick test, this new mixer is significantly
faster than the old floating-point one - rarely going above 100
clock() ticks per callback, with the old one almost always running
above that.
For now, only the SDL2 backend supports it - I'll add the others in
upcoming commits.
This will no-doubt cause problems with the enhanced (lite) branch,
where clownaudio always outputs float samples.
2020-06-24 01:11:02 +01:00
Clownacy
29f7c19a02
Fixed Null backend
2020-05-06 23:15:02 +01:00
Clownacy
5596c33b38
Fix stuff
...
Looks like the Null backend's been broken for a while though
2020-05-06 23:10:40 +01:00
Clownacy
e93ee47728
More backend rearranging
...
The Window stuff isn't meant for the user, so hide it a bit more
2020-05-06 23:02:08 +01:00
Clownacy
dacd34072a
Fix everything after the last commit
2020-05-06 22:52:11 +01:00
Clownacy
616b9cda9e
Rearrange shader files
...
The old way just kind of mashed two approaches together.
2020-05-06 22:40:10 +01:00
Clownacy
4895880682
WiiU: Use different folder depending on language
2020-05-02 23:54:38 +01:00
Clownacy
1e63788c61
Use safe printf functions for Wii U code
2020-04-26 00:55:33 +01:00
Clownacy
aa18cccef5
Ditch the Nintendo-style controls
...
After asking around, people really seem to prefer Xbox-style
controllers. Admittedly, when I was playtesting with Nintendo
controls, I wound up using my fingers to press A/B because of how
awkward it was.
2020-04-26 00:50:43 +01:00
Clownacy
c5691d7570
Fix Wii U port when TV is set to 1080p
...
WUT's bugged. See here:
https://github.com/devkitPro/wut/issues/119
It apparently got this bug from the Decaf emulator. Maybe I should
tell those guys too.
2020-04-25 00:22:24 +01:00