Commit Graph

56 Commits

Author SHA1 Message Date
Kai Blaschke
cd23817bf1
Fixed remaining compiler warnings
Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed.
2024-02-28 18:30:27 +01:00
Kai Blaschke
431a9c00a5
Fixed a huge amount of Clang warnings
On Linux and macOS, using Clang to compile OpenStarbound produces about 400 MB worth of warnings during the build, making the compiler output unreadable and slowing the build down considerably.

99% of the warnings were unqualified uses of std::move and std::forward, which are now all properly qualified.

Fixed a few other minor warnings about non-virtual destructors and some uses of std::move preventing copy elision on temporary objects.

Most remaining warnings are now unused parameters.
2024-02-19 16:55:19 +01:00
Kae
8181cff72e Hopefully fix the rare lightmap flicker 2023-11-25 23:36:36 +11:00
Kae
994b0fe3cf Fix TestUniverse 2023-11-24 20:35:45 +11:00
Kae
508e8f4304 Use invis material to fix constant re-placement of falling blocks 2023-10-31 08:32:20 +11:00
Kae
7d948f8839 Don't tile predict falling blocks for now
causes too many mispredictions due to not simulating falling blocks locally (and it might still be an issue even if we did simulate it due to slight timing differences between client/server)
2023-10-31 08:10:05 +11:00
Kae
6f7f3800d3 Don't forget to dirty collision on tile modification failure 2023-08-31 01:12:17 +10:00
Kae
a7ae034278 Objects can now be placed under tiles that have non-block collision 2023-08-21 00:59:02 +10:00
Kae
ecadfa7e44 Bump up prediction expiry time
Also added a new font
2023-08-20 20:48:18 +10:00
Kae
572b492b93 Fix collision not refreshing on expired predictions and slight placement issue 2023-08-19 22:49:05 +10:00
Kae
3805db7722 oops: Fix sub-step material placement 2023-08-19 21:35:56 +10:00
Kae
2fb2616384 More accurate liquid collection prediction 2023-08-19 21:08:44 +10:00
Kae
d2ec7f37c1 Predict MiningTool liquid collection 2023-08-19 20:57:55 +10:00
Kae
ec4f70340e Allow overriding placed collision kind ("""overground""") from world.placeMaterial 2023-08-19 18:26:52 +10:00
Kae
0c74c70475 Predict placed tile collision 2023-08-19 12:55:32 +10:00
Kae
156c243360 improve applyTileModifications to be more aggressive 2023-08-19 00:18:51 +10:00
Kae
f6f91b18e8 Various improvements
You can now right click empty slots to insert one from swap.
Added unique sounds for the swap slot count incrementing/decrementing.
Material placement now plays sounds.
2023-08-18 23:14:53 +10:00
Kae
cd36a269fd Account for latency predicting item drop pickup 2023-08-18 21:48:09 +10:00
Kae
aa0ef06ac6 Predict item drop animation client-side 2023-08-18 16:54:47 +10:00
Kae
af74a2f491 Rename global WorldTimestep var to more appropriate name 2023-08-15 13:38:40 +10:00
Kae
32e6eab069 Player: Make interaction radius scriptable 2023-08-02 21:59:07 +10:00
Kae
c80b2d2dbc Add loading icon when swapping character 2023-08-02 21:28:37 +10:00
Kae
856e93be3f Skip packet compression on Voice packets
cause 99% of the data is already compressed by Opus
2023-08-02 14:43:49 +10:00
Kae
2dc10fa5ad Tile Prediction improvements
each tile modification is now validated and then added to prediction one-by-one
2023-07-31 17:31:02 +10:00
Kae
830d4deb7b Tile placement improvements
Placing materials is now done in a line to fix gaps at low framerates
2023-07-31 16:00:19 +10:00
Kae
f575bad5e1 fix broken LiquidItem preview (LOL) 2023-07-31 15:00:17 +10:00
Kae
f4ff9dcc49 better debug logMapping for predicted tiles 2023-07-31 14:59:38 +10:00
Kae
610dc72c6d Tile Prediction 2023-07-31 02:40:06 +10:00
Kae
35fc2679de Allow desired entity ID to be specified in addEntity 2023-07-29 00:52:56 +10:00
Kae
cb19eef701 Add character swapping (no GUI yet) 2023-07-22 22:31:04 +10:00
Kae
643e8b15a1 Fixes for other compilers 2023-07-21 12:22:26 +10:00
Kae
4b0bc220e4 Support for changing the game's timescale
Context-specific (like per-world) timescales can also be added later
2023-07-21 00:58:49 +10:00
Kae
848b11399f Get SE-compatible voice transmission working 2023-07-16 23:04:09 +10:00
Kae
da098c7b48 Support receiving SE voice data, resample per-speaker again because of positional delay 2023-07-16 20:44:15 +10:00
Kae
4e44a4ed75 Get transmission working 2023-07-15 14:01:44 +10:00
Kae
c3bf7a3c87 Add vanilla-compatible raw broadcasts 2023-07-13 17:58:35 +10:00
Kae
87f0e49341 Fix asynchronous lighting crash
This somehow only occurred on Linux
2023-07-10 19:01:39 +10:00
Kae
fe4cc19618 Change pure string format calls to use fmt::to_string 2023-07-06 19:26:28 +10:00
Kae
e3461e9053 Start of Interface callbacks, starting with a bindCanvas function for the whole screen 2023-07-04 19:27:16 +10:00
Kae
deb96742e0 Prevent particle copy, tweak debugging some more
probably not too time-saving
2023-07-03 18:31:12 +10:00
Kae
7f65913762 Use more portable encoding for Unicode character in debug strfs 2023-07-03 16:26:42 +10:00
Kae
11e00a8ded Change debug render time logging to use microseconds 2023-07-03 16:04:17 +10:00
Kae
7d847fcd6a Fix rare world lighting thread race 2023-06-30 06:35:46 +10:00
Kae
d5fbd2001b RenderPrimitive micro-optimizations 2023-06-30 04:34:10 +10:00
Kae
dc134e168b Move lightmap wait into WorldPainter to fix single-frame lightmap lag-behind
unfortunate
2023-06-29 10:31:59 +10:00
Kae
624c7aaaf1 Move lighting calculation to separate thread 2023-06-29 10:11:19 +10:00
Kae
152af87655 Fix broken regex, make game timestep non-const 2023-06-28 00:20:22 +10:00
Kae
332983c97b The Formatting String Catastrophe 2023-06-27 20:23:44 +10:00
LDA
c9e889723b resolved most of the compiler warnings/errors under gcc
also update xxhash and tinyformat
2023-06-26 11:58:35 -07:00
Kae
d5d474c673 Fix particles finally 2023-06-26 16:09:40 +10:00