Clownacy
f2950b085b
Fix potential NULL being passed to printf
2020-04-07 17:19:34 +01:00
Clownacy
0477b1b633
Merge branch 'accurate' into portable
2020-04-07 14:03:54 +01:00
Clownacy
409453a6a1
Note some null characters
2020-04-07 14:03:15 +01:00
Clownacy
f6377ae259
Fix SDL2 cursor
2020-04-07 13:53:45 +01:00
Clownacy
f156c2db10
More licence stuff
2020-04-06 23:25:00 +01:00
Clownacy
f5cb7bfd11
Add licences to binary folders
2020-04-06 21:09:02 +01:00
Clownacy
5395b00a95
Make some backend code safer
2020-04-06 20:05:15 +01:00
Clownacy
6456649e11
Pre-process audio in the software mixer
...
This should improve performance slightly
2020-04-06 19:52:53 +01:00
Clownacy
5daea02ac6
Change the audio backend API
...
Removes locking and unlocking: instead, samples are passed to Create.
2020-04-06 19:44:45 +01:00
Clownacy
40d0cf14f1
Remove invalid comments
...
These issues are fixed in this branch
2020-04-06 13:57:54 +01:00
Clownacy
12e4be58ac
Merge pull request #101 from GabrielRavier/fixPortableBugs2
...
Fixed a bunch of npc->cond = 0 bugs
2020-04-06 13:55:58 +01:00
Clownacy
10f389b52e
Merge branch 'accurate' into portable
2020-04-06 13:53:22 +01:00
Clownacy
ae66ede214
Merge pull request #105 from GabrielRavier/accuratePortableBugs2SisterPR
...
Noted a bunch of npc->cond = 0 bugs and gTS.data-related crashes
2020-04-06 13:51:52 +01:00
Clownacy
9fd95e720c
Whoops, remove a leftover std::
2020-04-06 13:49:57 +01:00
Clownacy
ba9ccec945
Change double to float
...
A quick test with godbolt shows this produces smaller (and presumably
faster) code.
2020-04-06 13:48:44 +01:00
Clownacy
545948584a
Different optimisation for software-mixer
...
`trunc` can resolve to a library call, while a cast-to-int doesn't
appear to. Since the mixer already does a cast-to-int when retrieving
samples, I can kill two birds with one stone.
2020-04-06 13:40:39 +01:00
Clownacy
1016411fa4
Cleanup
2020-04-06 13:37:53 +01:00
Clownacy
9b116dac59
Merge pull request #96 from GabrielRavier/improvePerformance2
...
Improve performance for portable (again)
2020-04-06 13:36:59 +01:00
Gabriel Ravier
81e3259535
Backends/Audio/SoftwareMixer: Optimized fmod(x, 1.0)
to x - trunc(x)
...
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2020-04-05 23:04:59 +02:00
Clownacy
0fe8eacb1c
Direct MSYS2 users to use PKG_CONFIG_STATIC_LIBS
2020-04-05 20:46:54 +01:00
Clownacy
b775003e94
Correct stupid typos
...
...I didn't get much sleep, last night.
2020-04-05 20:27:00 +01:00
Clownacy
09fa34cbc7
Do not link libSDL2main.a
...
Causes stupid annoying errors and CSE2 doesn't even need it anyway so
wtf
2020-04-05 20:13:24 +01:00
Gabriel Ravier
1cf4200051
Merge branch 'portable' into improvePerformance2
2020-04-05 19:33:13 +02:00
Clownacy
b41caad0b9
Update function names in devilution-comparer file
2020-04-05 18:29:46 +01:00
Clownacy
fbf9332c9a
Fix compiler error with DEBUG_SAVE enabled
2020-04-05 18:25:35 +01:00
Clownacy
bcd883e767
Fix weird buzzing in the software mixer
...
Not really sure why this causes it, but apparently it does.
2020-04-05 18:17:38 +01:00
Clownacy
0aa65f7cd3
Fix pkg-config static linking
...
For some reason, [LIB]_STATIC_LINK_LIBRARIES is blank. Thanks a lot,
CMake.
2020-04-05 16:58:52 +01:00
Clownacy
eaef25d5da
Change how backend keyboard status stuff works
2020-04-05 13:26:08 +01:00
Clownacy
aef0f81f28
Offload keyboard tracker to the engine
...
Centralising it in the backend breaks the enhanced branch's rebinding
menu.
2020-04-05 04:31:11 +01:00
Clownacy
d62ca286f6
Merge branch 'accurate' into portable
2020-04-05 04:18:02 +01:00
Clownacy
f75859b759
Change constant ordering
...
This was bugging the hell out of me
2020-04-05 03:35:43 +01:00
Clownacy
e39c46fae9
Force glad to be static
...
Pretty sure it isn't set up to generate a proper DLL, so make sure it
always produces a static library instead.
2020-04-05 03:27:50 +01:00
Clownacy
393359e63f
Add some sanity checks
2020-04-05 03:27:04 +01:00
Clownacy
80091c4be5
Simplify some logic
2020-04-05 03:25:58 +01:00
Clownacy
b6398c58b4
Disable GLFW hats in <3.3
...
Doesn't exist - causes Travis to fail
2020-04-05 03:24:55 +01:00
Clownacy
ee1e7aed11
Fix unfreed memory
2020-04-05 00:58:56 +01:00
Clownacy
67765fd0ad
Fix
2020-04-05 00:54:45 +01:00
Clownacy
26de0b6043
Improve the SDL2 controller backend too
2020-04-05 00:31:17 +01:00
Clownacy
c187660904
Hat cleanup
2020-04-05 00:20:41 +01:00
Clownacy
8fdaea5d8b
More cleanup and fixes
2020-04-05 00:16:19 +01:00
Gabriel Ravier
1d9048c8a6
Merge branch 'portable' into improvePerformance2
...
# Conflicts:
# src/Backends/Rendering/Software.cpp
2020-04-05 01:16:09 +02:00
Clownacy
6bb240d335
Fixes
2020-04-05 00:11:52 +01:00
Clownacy
e0674d8f54
Restore support for joystick axes neutrals
...
These are useful for PS3 analogue triggers, which are -1.0f by
default, and go up to 1.0f when pressed.
2020-04-05 00:08:29 +01:00
Clownacy
ac533cb35e
Add support to the GLFW3 backends as well
...
Also fix the SDL2 backend wow
2020-04-04 23:22:22 +01:00
Clownacy
08bd2e1e78
Cleanup
2020-04-04 22:57:32 +01:00
Clownacy
2aeda93aeb
SDL2 controller backend - support axes and hats
...
These are now mapped to buttons - will have more of a use in the
enhanced branch.
2020-04-04 22:54:58 +01:00
Clownacy
7c729af36f
Add a comment
2020-04-04 20:58:12 +01:00
Clownacy
6ea58290f4
Set SDL2 audio backend to 48000Hz
2020-04-04 20:57:34 +01:00
Clownacy
b3e40b0475
Fix SDL2 audio backend
2020-04-04 20:52:24 +01:00
Clownacy
1ae63bea96
Move window ownership to the window backend
2020-04-04 20:51:07 +01:00