alufolie91
80da0fc538
fix G_GetDemoDate
...
forgor to change this back oopsie
2026-11-07 13:52:29 +01:00
alufolie91
014126b57d
Merge branch 'origin/polyholes' into Saturn-Next
2026-11-06 17:21:19 +01:00
alufolie91
d7b150a04f
(hopefully) make replay date stuff more thread safe
...
dont do locale stuff from thread, use localtime_r && localtime_r as localtime is not threadsafe either
G_GetDemoDate returns malloc´d buffer again, tho not strictly necessary
also, fix dates not always being initialized in all cases and type issue with G_GetCreationTime
2026-11-06 16:14:39 +01:00
alufolie91
5751f9b29b
fix windoze compile
...
windoze does not have threads.h and thread_local is only a keyword per c23....
thanks michealslop....
2026-11-05 15:55:22 +01:00
alufolie91
1a29bd1e63
Merge branch 'Saturn-Next' into polyholes
2026-11-05 15:38:42 +01:00
alufolie91
e54b6a780d
"fix" skywalls on hadal trench and candy lake
...
this whole sky handling is just incredibly stupid and wouldve been such an easy fix, but here we go
this is just more stupid hacks but i really dont feel bad here since the code already hacked around a bunch of shit
just hoping this wont cause any issues on some maps and needs testing
sigh
2026-11-05 15:38:11 +01:00
alufolie91
c1a0b97c54
add checks for missing bsp lumps
...
not sure why there werent any, the other map lumps have those, and a corrupted file may have those missing also which would just crash instead of telling you wtf is wrong
2026-11-05 15:38:07 +01:00
alufolie91
b8aaf63b20
use "rawlinedef" when checking for seg issues
...
smth smth byte order or whatever but is consistent with the rest of the code anyways
2026-11-05 15:38:04 +01:00
alufolie91
d43b60ad83
fix blendmodes and line translucency on polyobject sides in gl
...
this is also how vanilla kart handled this code eitherways
2026-11-05 15:38:00 +01:00
alufolie91
cb5d3ab4e1
add compile flag for building with thread sanitizer
...
indev noticed thats a thing that exists
wouldve been quite useful a bunch of times before lol
also some fixes for the other sanitizer flags
2026-11-04 01:42:11 +01:00
alufolie91
eba1cfb94d
remove "flatcheck" from HWR_PrecacheLevelFlats
...
in practice this did nothing really
would be more useful for encore but that aint working for us so whatever
2026-11-04 01:38:30 +01:00
alufolie91
f5030e6a3c
fix some holes and cracks in the gl renderer on some maps
...
hopefully...
this is adapted from the large refactor but that was slow as shit
needs testing to see if this messes with something
2026-11-04 00:27:22 +01:00
indev
3adcf608c3
(Hopefully) fix race condition in replay hut
...
It was probably caused by menupath being modified when replay load
thread is in the middle of checking it, now the check for "valid"
replay load thread is simpler. Also as comment says, there still are
few reported data races for replaynamesloaded but i THINK it should be
fine, since the only "data race" that could be harmful here is
replaynamesloaded switching from true to false, which would mean
demolist_all is suddenly invalidated, and that shouldn't be possible
because we only switch replaynamesloaded from true to false inside main
thread while also locking the "search mutex"
(this is so wordy lol)
2026-11-04 01:06:18 +03:00
indev
9682ab59c9
Make M_CheckParm thread-safe, it is called from different thread in http-mserv.c for example
2026-11-03 23:56:22 +03:00
alufolie91
51adf8869c
HWR_PrecacheLevelTextures should also skip texture number 0
...
whoopsie
2026-11-02 14:58:55 +01:00
alufolie91
5183baed44
make HWR_ApplyDispoffset a little less ugly lol
2026-11-02 14:41:09 +01:00
alufolie91
e5c6cb635d
make teleporter handling in P_ProcessLineSpecial a little less ugly lulul
2026-11-02 14:41:06 +01:00
alufolie91
1ba4fe99a7
fix fof noencore ceiling checks being flipped in opengl renderer
...
matches software now
even if most custom maps were made with opengl in mind, stuff did not work anyways for years so this shouldnt hopefully cause any issues
2026-11-02 14:38:56 +01:00
alufolie91
c44d6f6aeb
update HWR precache stuff
...
not much but matches stuff i did for blan
2026-11-02 14:32:12 +01:00
alufolie91
07427b391e
dont run horizonline code on fofs in opengl
...
this currently does NOT work anyways and just wastes time for nothing on some maps
2026-11-02 00:15:38 +01:00
alufolie91
2210bd4e2d
opengl: fix opaque fof planes checking the wrong sector for encore remap
...
it should check its own "master" sector for remap behavior NOT the sector it resides in
note: i did not change the ceiling/floor behavior here as i noticed there might be more issues than this with fofs
2026-10-31 12:51:01 +01:00
alufolie91
f4ac08d09f
some smaller mobj related things
...
mostly cleanup and correctness fixes for phobos build
2026-10-31 12:50:18 +01:00
alufolie91
090580badf
replace number with COM_SPLITSCREEN
2026-10-31 12:50:14 +01:00
SteelT
0eacda7494
discord.c: Fix joinSecret memory leak
2026-10-17 16:26:33 +02:00
alufolie91
14df9c01fa
send over less mobj stuff in savegame on mobjscaled maps in some cases for phobos build
...
none of this ever accounted for mapobjectscale
sadly not vanilla compatible but oh well
from https://gitlab.com/kart-krew-dev/ring-racers/-/commit/c4cca8c8b703b4bb23e27be4c3bfd37b9d092215
2026-10-15 16:25:51 +02:00
alufolie91
a69fc07dcf
fix smoldering smoke not accounting for mapobject scale (but vanilla compatible)
...
:chaosleep:
2026-10-15 16:17:33 +02:00
alufolie91
cea97226d5
fix driftdust and respawn lasers not accounting for mapobjectscale (but vanilla compatible)
...
super annoying, but at least it looks right like that
2026-10-15 14:52:49 +02:00
alufolie91
19a7a4c5c1
remove duped copyright
2026-10-15 10:15:51 +02:00
alufolie91
98d4ab3e9d
do not attempt to netsync locally spawned mobjs
...
it is generally not really advised to locally load addons as a host as that might cause issues
2026-10-15 10:15:48 +02:00
alufolie91
1700db48b4
make player gravstretch and squish properly account for mapobjscale
2026-10-15 09:30:13 +02:00
alufolie91
ba3429f497
software: add helper for getting "wall lights"
...
slightly less ugly
2026-10-15 09:28:10 +02:00
Alug
3b98d6c44f
addfilelocal/autoload: fix showing wrong error when file was not found
...
W_CheckFileContains returns -1 if file was not found which still triggered those conditions
so just handle if file was not found to skip doing other stuff in those cases
2026-10-14 13:56:31 +02:00
alufolie91
3183ec58ab
simpler fix for localskin minimap angle display crash
2026-10-12 15:13:38 +02:00
alufolie91
46a72bda8e
fix crash when applying localskin midgame
2026-10-08 09:24:30 +02:00
alufolie91
156400ffc2
fix arithmetic on NULL pointer when drawing 3d models
...
caused by localskin code.... sigh......
noticed this while messing with dynamic allocated (local)skins
2026-10-07 20:25:56 +02:00
alufolie91
116fbd93d0
cleanup squishdance stuff a bit
...
we dont need all those things saved per player really lol
2026-10-07 09:58:20 +02:00
alufolie91
30affaf451
cleanup saltyhop a little, move it to player struct
2026-10-07 09:58:20 +02:00
alufolie91
d66020e3a9
fix localskin menu not showing localskin 3d models
...
this should use the skins localnumber not the "actual" skinnumber
yeah localskin code still sucks....
fixes https://github.com/Indev450/SRB2Kart-Saturn/issues/230
2026-10-04 00:56:25 +02:00
alufolie91
4749d1a108
OpenGL: prefer GL_RGBA for fbo texture
...
as recommended per https://wikis.khronos.org/opengl/Common_Mistakes
2026-10-01 19:30:09 +02:00
alufolie91
36d13734f6
v10.1
2026-09-27 17:53:52 +02:00
alufolie91
3fc5f572bb
fix CMake again............
2026-09-27 17:35:05 +02:00
alufolie91
d65319a9fc
fix "Modulative" blendmode in software
...
forgot to account it when the gamma correction stuff was ported
2026-09-27 17:15:42 +02:00
alufolie91
1d8b066a64
fix desynchs with vanilla on Sewer System
...
read the sectornode list stuff
this means we reuse old stale data in some cases, which also causes strange bugs with orbiting items in some cases, but thats what vanilla does and we HAVE to keep vanilla compat after all
i really hope this does not cause any fun impossible to debug crashes, but what can you do
2026-09-26 15:12:28 +02:00
alufolie91
e6033322c6
disable phobos in cmake
...
stupid copy paste error
2026-09-26 12:03:05 +02:00
alufolie91
d988876bca
change version number for phobos
...
phobos is NOT vanilla compatible and is not meant to be
this should prevent the game be able to connect to vanilla servers hopefully
2026-09-26 11:57:33 +02:00
alufolie91
7e92482ced
add orbit mobj check into K_MoveHeldObjects
2026-09-25 22:07:09 +02:00
alufolie91
fa753c3694
Revert "cleanup and make safer, orbit item handling in K_MoveHeldObjects"
...
This reverts commit 5e1ae2155f .
2026-09-25 22:03:03 +02:00
indev
58403cf4a5
Revert "Prevent orbit from being freed by using P_SetTarget in K_RepairOrbitChain"
...
This reverts commit 13241d1880 .
2026-09-25 22:04:15 +03:00
indev
13241d1880
Prevent orbit from being freed by using P_SetTarget in K_RepairOrbitChain
2026-09-25 21:54:49 +03:00
alufolie91
91f016fd0c
remove inline from P_TagDamage
...
not only this is basically unused its also quite huge
so no need to inline this at all
2026-09-25 20:34:49 +02:00
alufolie91
5e1ae2155f
cleanup and make safer, orbit item handling in K_MoveHeldObjects
...
based on https://gitlab.com/kart-krew-dev/ring-racers/-/commit/4e9d2295c9da30888fea77825c276bac831aecb3
2026-09-25 20:32:31 +02:00
alufolie91
dd2a227529
mobj hnext/hprev list fixes for phobos build
...
too lazy to cherry pick so
https://gitlab.com/kart-krew-dev/ring-racers/-/commit/a392996a5437742d5b7a91d0fce9da49c3a8bd76
and
https://gitlab.com/kart-krew-dev/ring-racers/-/commit/8b5bd645ca5d8ef9269aa6ccf4375337bd0c1672
both of which might change behavior so phobos only
2026-09-25 19:03:46 +02:00
alufolie91
9521183eb3
cast this to boolean
...
no effective change just wanna be more explicit there
2026-09-23 19:17:13 +02:00
alufolie91
56bb20f4e1
cleanup controller menu stuff a little more
2026-09-23 18:31:49 +02:00
alufolie91
604fa7281b
dont reset JoyInfo in I_InitJoystick
...
seems to fix wonky behavior when changing controllers per player
2026-09-23 18:24:44 +02:00
indev
2c9a82e2d3
20
2026-09-21 22:36:41 +03:00
alufolie91
4f7e296885
fun times with M_DoAssignJoystick
...
my tired ass forgor cv_usejoystick gets reassinged within this, so the cvar string also changes
2026-09-21 20:41:01 +02:00
indev
c917708184
Actually change command name to useprefcolor, so its a bit more intuitive
2026-09-21 20:57:18 +03:00
indev
110e93f4ed
Add command to change skin color to prefcolor
2026-09-21 20:53:44 +03:00
orbitalviolet
a0d6d452a0
Fix regression #1507
2026-09-21 18:41:10 +02:00
alufolie91
7fb3f7a1aa
YES THANKS MICHEALSOFT VERY COOL
2026-09-21 17:32:08 +02:00
Roberto Ierusalimschy
7e906074ec
keep memory-error message in the global state, so that its use
...
does not depend on Lua internalizing strings to avoid a string
creation on memory errors
2026-09-21 17:14:21 +02:00
alufolie91
de35e086d3
use strnlen in W_CheckNumForNamePwad
...
we clamped this to a length of 8 eitherways
so might aswell just use strnlen which is safer in any case
2026-09-21 16:44:56 +02:00
alufolie91
295b35b23a
cleanup p_mobj + more safety
...
big cleanups and more mobj checks
needs to be rechecked since its quite a lot
2026-09-21 16:38:54 +02:00
alufolie91
a5b6dad8f3
cleanup p_enemy + more safety
...
add a crapton of checks for removed mobjs
copy pasted from srb2 mainly
2026-09-21 16:37:40 +02:00
alufolie91
d024992144
clean up Command_connect
2026-09-21 16:34:33 +02:00
alufolie91
3df604e8b6
expand sector flags
...
include gravflip, heatwave, noclipcam and invertencore
is a bit cleaner
may also add the special flags at some point to clean things up a bit more
2026-09-21 16:33:21 +02:00
alufolie91
080f586c19
simplify W_CheckNumForNamePwad
...
pretty much what blankart does
avoids doing a bunch of string work
2026-09-21 16:31:18 +02:00
indev
0e62afd348
Count lua memory for total usage in memfree command
2026-09-21 17:24:43 +03:00
indev
648d3c439b
Change lua to not use z_zone allocator
2026-09-21 17:24:43 +03:00
NepDisk
1dd3e90363
Make memdump show block tags
2026-09-21 16:22:22 +02:00
NepDisk
c78c0d1657
Fix memory block not being moved to correct taglist with Z_ChangeTag
...
I didn't even notice this one at first, whoops! Also added proper checking to prevent this from happening again.
2026-09-21 16:22:01 +02:00
NepDisk
838d05eef7
Convert Z_Zone head into a list similar to thinkerlists
...
I was thinking to myself about how 2.1 and before did thinkers and how 2.2 made it into thinker lists and thought "wait isn't memory allocated similar to that?" and well here we are.
2026-09-21 16:21:40 +02:00
alufolie91
3c3e8dd986
use Z_TotalUsage for memory debug display
2026-09-19 21:09:20 +02:00
alufolie91
2d79ff9606
few more smoler style cleanups
2026-09-17 11:44:15 +02:00
alufolie91
70f4207e02
smol fix for pm´s in DoSayCommand
...
sending a pm might change the length of the string which we need to reconsider when sending the cmd
2026-09-17 11:40:52 +02:00
alufolie91
242754f811
disable flat precaching in opengl in encoremode
...
this appears to mess up remapping behavior in certain cases (ex. sneaker/spring panels)
since i cba looking into properly fixing this, ill just disable this for now
2026-09-12 16:53:26 +02:00
alufolie91
521544f6ba
raise skinlimit to 1024 for phobos build
...
not thoroughly tested by me, so might still be incomplete
2026-09-03 19:34:56 +02:00
alufolie91
efc0681e01
make PHOBOS_BUILD a compile flag
...
pass PHOBOS_BUILD=1 to build
2026-09-03 19:30:55 +02:00
alufolie91
4c3fa7d826
raise numlap limit to 255 for phobos client
...
idk but this was wanted
2026-09-03 19:21:18 +02:00
alufolie91
ac87678708
rename COMPAT_VANILLA to PHOBOS_BUILD
...
have a distinct name for that build "Phobos", as a nod to Doom
also invert the flag, as it should make adding stuff less headachey
will make this a compiler flag later but too lazy atm
2026-09-03 18:47:45 +02:00
alufolie91
a6e5edabd2
fix M_TextInputSetString not null terminating in some cases
...
if input string is longer than the buffer this may never be null terminated properly
2026-09-02 15:05:43 +02:00
alufolie91
24e5b1d84b
fix buffer overflow when opening "Advanced Color Options"
...
idk if this is the intended thing, but works fine
2026-09-02 14:40:49 +02:00
alufolie91
ade7db9004
fix replayhut exploding due to sega fishe
...
"sega_bass_fishin" is exactly 16 characters which caused stuff to not be terminated
2026-09-02 14:09:33 +02:00
indev
819b171d90
Do a full garbage collection after LUA_InvalidateLevel
2026-08-28 00:44:49 +03:00
GenericHeroGuy
882716e911
Make Valgrind builds usable when not running with Valgrind + cleanup
2026-08-24 11:34:55 +02:00
alufolie91
5644036d25
macrofy Z_CheckHeap errors
...
stuff was slightly ugly and unwieldy.
making it a macro also makes adding new errors less messy
2026-08-24 10:30:28 +02:00
alufolie91
de74c9251f
make HWR_AddPolyObjectPlanes a little less ugly
2026-08-23 16:40:31 +02:00
alufolie91
1552b1808f
"about"
2026-08-21 16:51:04 +02:00
alufolie91
fd349e2b37
netsync mobj pmomz in non vanilla compat builds
...
may help with some join desynchs
2026-08-18 17:39:19 +02:00
alufolie91
0cf1cabcc2
basic 32 player support
...
can just be enabled per MAXPLAYERS define in doomdef
this will also auto undefine COMPAT_VANILLA
no support for tab rankings or intermission rankings at all yet
will port those over eventually from saturn 32p or blankart and clean stuff up
please note this may have bugs since not everything is ported over yet
2026-08-18 17:39:19 +02:00
alufolie91
bcbe765b9d
fix potential buffer underflow in portal handling
...
P_FindSpecialLineFromTag may return -1 in some cases
2026-08-17 19:19:51 +02:00
alufolie91
eca3effb3b
raise version to v10
...
was originally be 9.3 but this update is too massive to be a minor version update
2026-08-17 18:47:42 +02:00
Gustaf Alhäll
f1380a276e
Fix buffer overflow when running map scripts
2026-08-17 18:43:08 +02:00
James R
8ffeab1646
Reset wait period for COM_BufInsertText
2026-08-17 16:39:27 +02:00
alufolie91
2eb175c356
few more smaller code cleanups
2026-08-17 16:39:23 +02:00
alufolie91
4e606fc7de
fix indentation
2026-08-10 15:50:35 +02:00
Gustaf Alhäll
c5116dea1a
Add support for OpenBSD
2026-08-10 15:50:32 +02:00
alufolie91
924f9c2151
put directory changing and getting stuff into functions
...
from https://gitlab.com/kart-krew-dev/ring-racers/-/commit/7ef40f5d743bf6bf251e2edc89cda23e8fb36ee5
changed a bit so windows also can print the "warning" on failure
2026-08-10 15:38:31 +02:00
alufolie91
e0fa53e4df
demonames apparently should write one less character
...
better keep it like this
2026-08-10 15:33:40 +02:00
alufolie91
eeb7d48a6f
one more snprintf replacement for next branch
2026-08-09 17:51:39 +02:00
alufolie91
df291710d8
replace a few more length magic numbers with sizeof
...
just to be sure really
2026-08-09 17:49:34 +02:00
alufolie91
16577877d3
replace all sprintf with snprintf
...
some of this was taken from https://gitlab.com/kart-krew-dev/ring-racers/-/commit/59f23dfa181327ed5c00f55688840d39e3583569 so thx!
should fix apple clang warnings and is alot safer to have all this crap be bounded
theres prob alot more other stuff, and id love to eventually replace all the strcpy family functions with snprintf and equivalent
2026-08-09 17:49:31 +02:00
alufolie91
309d459a70
fix apple clang warning for music test
...
define this as constant otherwise compiler may treat the array as being variable in size for some reason
2026-08-09 15:00:52 +02:00
alufolie91
e1430f7bc7
replace magic number with sizeof
2026-08-08 19:07:56 +02:00
alufolie91
bf70beb88a
cleanup SV_SendServerInfo a little
...
mostly just make it more readable by using ptr
2026-08-08 19:03:31 +02:00
alufolie91
a951622f6a
ensure serverinfo "application" is null terminated
...
not strictly needed but better be safe than sorry
2026-08-08 19:00:13 +02:00
alufolie91
d7db0d68dc
ensure serverinfo mapname is null terminated
...
forgor back then
2026-08-08 18:53:55 +02:00
alufolie91
2b9224cc3f
forgor to update player names comment
2026-08-08 18:09:45 +02:00
alufolie91
0a750cd3bc
cleanup gl shadow checks
...
just move em into the function to be less ugly
2026-08-08 17:38:20 +02:00
alufolie91
0e8a32612f
move player_name init to D_RegisterServerCommands
...
runs before registering client commands and is for everything server + client needs
2026-08-08 17:31:27 +02:00
Monster Iestyn
3c6882203b
Initialise player_names[] in D_RegisterClientCommands such that we don't need to have to manually update it if MAXPLAYERS ever changed
2026-08-08 17:31:23 +02:00
alufolie91
0464a8b0c7
attempt to mitigate "palette" cvar allowing random lumps to be used as palette
...
if theres a proper way to check for actual palettes pls tell me thx
2026-08-07 20:14:48 +02:00
alufolie91
599eda96aa
fix M_ScrollString not null terminating its output
...
this caused music test to have non terminated strings
2026-08-07 19:36:51 +02:00
alufolie91
421d735052
fix compiler complains when compiling with valgrind support
2026-08-06 22:16:50 +02:00
alufolie91
73bc64f9da
fix clamp assert in HWR_SplitWall
...
idk man it really hates if lo > hi apparently lol
2026-08-06 22:16:48 +02:00
alufolie91
5d807d65e5
smol style fix
...
less confusing
2026-08-06 17:43:15 +02:00
alufolie91
88d86a6e60
fix NOMUMBLE compile
...
idk how and why this breaks, but I_OutputMsg is in doomdef anyways for god knows why
2026-08-06 17:05:09 +02:00
alufolie91
b2cdbaae60
fix protocol register thingie
2026-08-06 16:58:07 +02:00
alufolie91
9160431556
fix compile for android bionic c lib
2026-08-06 16:58:01 +02:00
alufolie91
2f9a400cf3
cmake flag for mumble
...
stimky
2026-08-06 16:51:51 +02:00
alufolie91
c39073dd9e
fix arm compile
...
idk why i added this, if this is ever needed for whatever pls yell at me
2026-08-06 15:09:48 +02:00
alufolie91
f03692b840
delet duped MobjThinker check
2026-08-05 22:50:11 +02:00
MIDIMan
617e8fdd55
Manually set NetVars's hook_type
...
Also adds a 2.3 TODO comment for MF_AMBIENT
2026-08-05 22:49:53 +02:00
alufolie91
d5252bd3b3
fix an oopsie in p_mobj.c
...
prob did that while sleep deprived, P_WeaponOrPanel includes a few more things than intended to be there
doubt we even use any of those, but i dont want to cause any potential issues agaion
2026-07-28 20:49:23 +02:00
alufolie91
94f46c3ce6
also prevent "local" pushable mobjs from executing linedef actions
...
missed when i did the other, pushables have a seperate executor special
2026-07-25 09:24:59 +02:00
alufolie91
c3e709231d
Merge branch 'luaprofile' into Saturn-Next
2026-07-24 16:18:59 +02:00
alufolie91
7878e01e3f
update copyrights for "core" folder
2026-07-24 16:15:56 +02:00
alufolie91
4631844c9f
revert removing the slopelanding dupe
...
dont think this would cause any issues at all, but i dont feel like maybe causing some dumbass edge cases anywhere really
can test this further after v10 release since its already taking ages
2026-07-24 16:07:28 +02:00
alufolie91
0c440d240c
can pass char to this now
...
no need to reconvert this stuff from const char to std::string and back to const char really lol
2026-07-24 15:54:50 +02:00
alufolie91
5c7be85977
fix cmake
...
.ch..........
2026-07-24 15:50:35 +02:00
alufolie91
c401926c0b
fix lua hook profiler drawing out of screen bounds in some cases
...
this omits alot of hooks in the profiler, tho not sure if anyone should even care about those back in the list
maybe just have it have multiple pages like perfstats, or better just integrate it into perfstats......
2026-07-24 15:48:57 +02:00
alufolie91
e0e8be8d46
perfstats thinkframe maxpage fix from blan
...
+ also yoink the ps types to get rid of magic numbers
just prevents the cvar being set to a page that does not exist
2026-07-24 15:47:44 +02:00
alufolie91
957d3f7229
delet fmt for lua hook profiler
...
i dont want another stinky library
this would just be an arsepain to include in windoze builds
TODO: make this drawer less of a mess, maybe integrate into perfstats instead?
2026-07-24 15:31:16 +02:00
alufolie91
7e47b9b6ba
fix crash in K_drawKartMinimapHead if player mobj was removed
2026-07-24 07:36:47 +02:00
romoney5
6e91e00289
Ignore scenery thinker for player objects
...
Prevents Lua from being able to remove player objects using MF_SCENERY
and causing potential crashes
2026-07-24 07:36:43 +02:00
alufolie91
a539f38e72
add more safety checks to some maploading stuff
...
+ rename things to make more sense
2026-07-21 20:33:46 +02:00
alufolie91
4f21d8f983
dont apply lua rumble during replay playback
...
same as non lua rumble
2026-07-21 16:05:11 +02:00
alufolie91
31517ebebe
smol fbo stuff cleanup
...
was from the water branch
2026-07-21 15:54:18 +02:00
alufolie91
3a2e009d01
have the musiccredit "box" style be colourized
2026-07-21 15:52:02 +02:00
alufolie91
38e50a3cfb
bit more p_mobj cleanup
...
more unnesting stuffs
2026-07-21 15:31:33 +02:00
alufolie91
97555bc263
remove trailing whitespaces from musicdef fields
...
mostly just to prevent the warning popping from those, but also why not lol
2026-07-21 15:03:38 +02:00
alufolie91
848115d105
print the unedited musicdef field for whitespace warning
...
otherwise this may just show whitespaces where they arent ones originally
2026-07-21 15:03:27 +02:00
alufolie91
3668c2c4f3
more code cleanups
...
+ remove duped slopelanding stuff
mostly just unnesting stuffs, some mobj checks, etc
2026-07-21 14:44:56 +02:00
alufolie91
d5f68bf2aa
fix compiler warning for sound stuff.....
...
:chaosleep:
2026-07-20 16:33:51 +02:00
alufolie91
3ae968f060
smol random cleanups
2026-07-20 16:08:55 +02:00
alufolie91
d73f79509e
actually reduce pointinsubsector in P_SpawnMapThings in some cases lol
...
bunch of vanilla maps have rings and stuff present lul
2026-07-20 16:05:04 +02:00
MIDIMan
19e9eedce3
Fix NiGHTS hoops crashing the game for mid-level netgame joiners
2026-07-20 15:50:16 +02:00
alufolie91
8880057ff2
fix and cleanup P_SpawnMapThings
...
-split emeraldhunt handling into its own function
-merge hoop spawn loop into the main mapthing spawnloop
-continue early for things like rings and coins
- reduce the amount of R_PointInSubsector on maps with nights hoops
hopefully reduces levelload time slightly
2026-07-20 15:50:13 +02:00
alufolie91
9692484d2e
fix issues with sound freeslotting
...
this "works" with a skinlimit of 255
but would cause hard to debug crashes with raised skinlimits and was generally really unsafe and could cause soundnames to not be null terminated aswell as buffer overflows from blind strcpy
the sprintf fix is from Indev originally for neptune
NOTE: if the skinlimit is ever raised above 1024 then freeslotnames NEEDS to be atleast one byte bigger to not truncuate stuff
NOTE2: pretty sure localskins are fucked if any are loaded in servers with 255 skins loaded, but i dont care atm
2026-07-20 11:29:19 +02:00
alufolie91
df3a64339c
fix skin search command overflow
...
when using localskins and going over the skinlimit
this should use numskins not numallskins there
no i dont feel like supporting localskins here the other skin commands also dont care
2026-07-20 01:01:09 +02:00
indev
5a966aa317
Re-add playernode check
2026-07-20 01:54:47 +03:00
indev
a132db9e6e
Attempt to fix server locking up when trying to kick player that has left already
2026-07-19 23:41:19 +03:00
alufolie91
0acfc96812
attempt to fix kick/ban commands causing dedicated servers to self destruct
...
if a player was specified which was not being in game
this is what caused dedis to sometimes go to the main menu
2026-07-19 06:16:50 +02:00
alufolie91
f09c61cee9
only play stairjank sound if we have its visuals enabled
2026-07-19 02:42:18 +02:00
alufolie91
735c4b67dc
move stairjank particles into K_MoveKartPlayer
...
to where we also rotate the player
also means we now use K_AltFlip :p
also means the visual toggle now actually does prevent spawning them
2026-07-19 02:40:17 +02:00
alufolie91
267a758447
fix up dedi i_system
2026-07-19 02:36:16 +02:00
indev
6892c212d1
Comment out stairjank particles for now, since spawning mobjs during P_TryMove may mess up some global variables
2026-07-19 03:31:09 +03:00
alufolie91
a1127068df
fix wireframe potentially not disabling on toggle
...
netupdate sucks ass
2026-07-17 22:43:23 +02:00
alufolie91
7ee93d889e
remove this from polyvertex_t
...
was used for optimization but not used anymore
2026-07-16 20:16:42 +02:00
alufolie91
ee9c9e2839
hack: fix paletterender stuff not applying to screenshots/gifs when using downsampling fbo
...
this sucks
but the final screen texture with the palette render postprocess step will not be in the downsample fbo
so we have to redraw it there with the postprocess step......
this is still better than drawing another screen texture when using paletterender which costs perf
2026-07-14 11:28:49 +02:00
alufolie91
28c4061a26
remove viewsky which doesent exist lol
2026-07-14 09:40:37 +02:00
alufolie91
d0f02f1530
remove pointless skybox check here
...
if skybox then newview->sky will be false there which R_DrawSkyPlanes will check for
2026-07-14 09:40:35 +02:00
alufolie91
53fbbecbcd
fix incrementing garbage in Portal_AddSkyboxPortals
2026-07-14 03:00:42 +02:00
indev
587f24ae85
Add empty I_OpenURL into dedicated server build
2026-07-13 23:56:53 +03:00
alufolie91
ba0b414062
fix paletterender toggle calling setpalette during startup
2026-07-13 20:31:30 +02:00
alufolie91
b27b4bfd7a
software: fix cv_spriteclip
...
scaled sprites should be excluded from the simple viewwindow checks
also R_CheckSpriteVisible should be done AFTER portal adjustments
2026-07-13 07:47:51 +02:00
alufolie91
7971f76885
software: cleanup sky hacks
...
still horrid, but atleast this wont give me braindamage each time i have to look at it
this also read stale data from the previous frames and was just insanely messy
this still sucks ass but oh well
2026-07-13 07:47:48 +02:00
alufolie91
7048eeacc3
Portal_AddSkybox can be static
...
its unused anyways
also adds plane bounds check which was missing
2026-07-13 07:44:47 +02:00
alufolie91
8a62f4e978
software: move hom removal to R_RenderPlayerView
...
gl also has it there so why not
2026-07-13 07:44:38 +02:00
Eidolon
f5fdf917bd
Support >4GB sys mem in memfree for linux, win32, macOS sys mem counts
...
Also includes memory counts for the extended allocation functionality
2026-07-13 07:44:33 +02:00
alufolie91
b9ac91c74f
fix eggbox crap
...
:chaosleep:
2026-07-09 23:49:16 +02:00
indev
b408a098bd
Fix netxcmdnames missing one name
2026-07-09 13:01:13 +03:00
alufolie91
90ab1f4994
cleanup opengl wipe stuff a little
...
split it like srb2.2
2026-07-09 06:47:26 +02:00
alufolie91
96484c94db
fix & cleanup hw_bsp
...
this basically brings it to the latest state from Doom-Legacy before the big refactor (which i had previously ported and tested as well) + some extra stuff from it
sadly this does not seem to fix plane holes, but its a bit cleaner and more accurate in some places
while the big refactor did fix issues with plane holes, it also introduced a few new issues, like z-fighting sneaker panels and significantly longer loading times
may as well just wait at this point for what (or rather if) RR will be doing
2026-07-09 06:47:26 +02:00
alufolie91
c805fa9f33
remove a bunch of unused crap
2026-07-09 06:46:27 +02:00
alufolie91
29159ca5cd
whoopsie
...
sleeby....
2026-07-08 20:37:16 +02:00
alufolie91
b6b70ae8f0
Add "Report an Issue" button in the Saturn Menu
...
yoinked from SRB2-Legacy
2026-07-08 20:33:24 +02:00
alufolie91
2b0e4b7468
have fallback if SDL_OpenURL fails or does not exist on the Error box
2026-07-08 20:33:20 +02:00
alufolie91
c374bd75fc
menu for controller rumble stuff
2026-07-07 13:10:05 +02:00
alufolie91
ec70e8aa29
only apply LUA controller rumble and led color to local players
...
what my dumb ass was meaning to do with 2ae1e0f56e
displayplayer[0] does not necessarily map to a local player!
2026-07-06 04:59:33 +02:00
alufolie91
3ad6159e85
make controller rumble types toggable separately
...
needs a proper menu, but too lazy for that currently
2026-07-05 22:51:29 +02:00
alufolie91
2ae1e0f56e
only rumble controllers for local players
...
also not in replays
2026-07-05 22:25:39 +02:00
alufolie91
2302d4efbd
mark R_ThingIsFullBrightT as static
2026-07-05 21:36:51 +02:00
alufolie91
be08c9cd1f
changes to some saturn specific visual effects
...
most of those were added cause they´re cool to look at, but without much thought about potentially giving players that enable such features an "unfair" advantage over others.
- eggboxes wont be rotated while stationary and on the ground anymore (they are meant to deceive players, being rotated makes them stand out alot!)
- players that are about to explode due to eggboxes wont spawn extra red speedlines anymore
- option to show driftlevel per speedlines has been removed
2026-07-05 21:36:48 +02:00
alufolie91
7b91666db9
clean up some frameflags stuff
...
mfw no FF_VERTICALFLIP
2026-07-04 20:17:03 +02:00
alufolie91
ba5c85ba8a
:chaosleep:
2026-07-04 06:21:06 +02:00
alufolie91
05e8771fbc
Revert "add warning if theres no music lump for musicdef"
...
This reverts commit 59b7b0529f .
very fun if the music lumps were split into some other file!
2026-07-03 19:08:54 +02:00
alufolie91
59b7b0529f
add warning if theres no music lump for musicdef
...
if theyre left over or typo´d (which prevents them from showing up)
2026-07-03 19:01:10 +02:00
alufolie91
3fa8ab442a
print warning if whitespaces are encountered in musicdef fields
...
technically that is a non issue for saturn but vanilla will completely explode from this
2026-07-03 18:27:49 +02:00
indev
fdd8381258
Fix 'attack or protect' text being offcentered on certain resolutions
2026-07-03 15:10:08 +03:00
alufolie91
41cbce3ed3
hack for kartdebugcheckpoint display
...
see comment
2026-07-02 19:43:06 +02:00
alufolie91
63e4c5a63d
use viewsin and viewcos for spherefrustum checks in gl
...
dont need all those yaw vars, since they effectively map to gl_viewsin and -gl_viewcos respectively
while those are less accurate due to being fixed point, there appears to be no visual issues from this and seems to even slightly improve performance in some cases
2026-07-02 18:34:32 +02:00
alufolie91
bba86fe4af
fix DRAWONLYFORX sprite visability handling
...
this effectively didnt do anything and had a typo for the player 3 case anyways
2026-07-02 18:34:29 +02:00
alufolie91
1dee3060dd
add some more mobj checks to p_map
...
cross-checked against srb2 next branch
2026-07-02 18:34:22 +02:00
alufolie91
56c2178bde
cleanup COMPAT_VANILLA mobj checks
...
move stuff into a helper func, which just returns if mo != NULL in vanilla compat mode, otherwise returns P_MobjWasRemoved
reasoning for this crap is in the comment above said helper
2026-07-02 18:34:19 +02:00
alufolie91
e445669521
cleanup stuff a bit for unused gametypes
...
wish could just remove all of this but gotta keep it for compat reasons ig
2026-07-02 18:34:06 +02:00
alufolie91
7a309bc0b8
make this less messy
2026-07-01 22:45:37 +02:00
alufolie91
8b6ebfbad4
promote those null checks again.....
...
sigh......
atleast this should be right this time
2026-07-01 22:26:50 +02:00
indev
5775c12b16
Disable writing to replay query while replays are loading
2026-07-01 23:23:04 +03:00
alufolie91
78ebc14d88
print performance warning for lua scripts using mobj hooks without specific mobjtype
...
thx indev for help <3
these may trash performance quite hard at times
and are not visible from just perfstats most of the time
2026-07-01 19:21:41 +02:00
alufolie91
38a248193e
make lua hook profiler kinda work
...
very scuffed up since we dont have the srb2::Draw lib
so it may display stuff out of screen bounds
i also rather not use fmt here but va since i dont want another dependency
needs to be fixed up sometime
2026-07-01 18:15:38 +02:00
James R
934f2d347c
Add basic profiling for Lua hooks (except HUD hooks)
...
- Add lua_profile cheat: calculate average time spent in
hooks over a period
- Show hook times in a sorted table, along with lump name,
script line number and hook type
- Show cumulative time spent in game logic hooks and
percentage of overhead to game logic
2026-07-01 18:13:51 +02:00
alufolie91
551d7d4d89
add V_DrawRightAlignedSmallStringAtFixed
...
idk but might be useful
2026-07-01 18:08:56 +02:00
alufolie91
a2184d2bef
move cv_audbuffersize register
...
this stuff kinda grouped some cvars together, makes more sense there
2026-07-01 18:08:53 +02:00
alufolie91
d638baeda6
change mobj hook detection again
...
so we can restore the actual correct behavior for the HurtMsg hook, which nothing even uses lol
2026-07-01 18:08:50 +02:00
alufolie91
4a06e8a6d1
fix map replacement checks for pwads added on startup
...
stuff added per -file or whatever
this incorrectly rechecked the iwads again instead of the pwads themselves, which let to the game flagging vanilla maps as replaced, setting the game to be modified
2026-06-30 18:37:04 +02:00
alufolie91
e2a3992787
make online hud / chat menu scrollable
...
yes i checked green res....
it barely fits like this........
2026-06-29 22:02:18 +02:00
indev
ec06150432
This todo is done :3
2026-06-29 20:45:45 +03:00
indev
2413a3503c
Add stairjank particle effect using drift dust
2026-06-29 20:44:30 +03:00
alufolie91
d9e339cb56
toggable sound effect for stair jank
...
not the biggest fan of it but idk how to make this better on stairs with lots of steps
so this will do for now
2026-06-29 18:13:30 +02:00
alufolie91
408db7a2eb
use G_KeynumToString for local addon menu key info
...
just in case we change them dont have to change them everywhere
2026-06-29 15:46:11 +02:00
alufolie91
e12ecabcf0
revert some P_IsObjectOnGround
...
pretty sure none of those cause issues currently, but rather not risk stuff as that condition might change from smth else in those cases
its not an expensive call anyways really
2026-06-29 15:35:45 +02:00
alufolie91
65c2d2733d
clear deathmatch and ctf spawnpoints aswell
...
prob wont matter much for us but still better to not leave those dangling after map change
2026-06-29 14:43:04 +02:00
alufolie91
00aa023e9e
cleanup p_setup a bit again
2026-06-29 14:42:58 +02:00
alufolie91
f43a4a2eb6
have gametype i_error actually print the invalid gametype
...
bit more informative ig?
2026-06-29 02:14:53 +02:00
alufolie91
4eb108e0a6
add sound thing for reference
...
does nothing cause it sucks
maybe someone else has a better idea what to do here
2026-06-29 02:13:59 +02:00
alufolie91
ea76af5a81
seenames is stupid
...
keep that ashnal utils breaks without this crap
2026-06-29 01:46:39 +02:00
alufolie91
4b8f998c85
cast this crap
2026-06-28 22:58:20 +02:00
alufolie91
d687be4997
change K_GetSpeedometerStyle to unsinged
...
does not need be signed
most other things will cache this into an uint8 eitherway
2026-06-28 22:34:09 +02:00
alufolie91
1bcadf3c46
fix the lap emblem animation thingie
2026-06-28 22:23:32 +02:00
alufolie91
80e4d02c51
dont skip intro sounds if music is disabled
2026-06-28 21:13:28 +02:00
alufolie91
352d1faacf
forgor cv_chat_showlimit :chaosleep:
2026-06-28 18:59:28 +02:00
alufolie91
7f9d70285d
add new chat stuff to menus + show chat box when hovering over some things
...
very ugly but i dont care, the hud stuff is done similar
just hoping this doesent explode or whatever
2026-06-28 18:53:28 +02:00
alufolie91
496477fa9a
chatbgtint does actually not apply to the chatbox
...
but only to the also confusingly named "mini chat"
2026-06-28 18:37:11 +02:00
alufolie91
530bb50709
ig "style" is the better word here
...
lulul
2026-06-28 17:53:57 +02:00
alufolie91
8bb04a68a8
ass well
2026-06-28 17:52:53 +02:00
alufolie91
820ab4b2bc
block "addfilelocal" from adding files that contains maps
...
now we have a more accessible menu for addfile local
i really dont want to risk stuff
2026-06-28 16:25:31 +02:00
alufolie91
af6abb5458
better check for map data within autoloaded files
...
before this flagged every file with lumps that contained the MAP as string somewhere, like palettes and such
this is kinda messy but i really do not want to dupe this huge block of code, neither do i want to convert this to ceepeepee again to mess about with templates
oh well
2026-06-28 16:23:24 +02:00
alufolie91
5c373b6251
demote those to asserts
...
never seen srb2, saturn, RR or blan or anything else have this return null
there is a possibility but whatever
just continuing in such cases was wrong eitherways as it wouldve just corrupted the vres thing
2026-06-28 16:05:14 +02:00
alufolie91
24bac9c133
actually print a different message for localskins with lua
...
tell ppl that this may cause issues
2026-06-28 16:05:11 +02:00
alufolie91
73c7a5a0c4
add better description for skip intro music stuff
2026-06-28 00:40:54 +02:00
alufolie91
49d6374505
have local skin message account for "KCL" prefix
...
for skins with lua
2026-06-28 00:27:02 +02:00
GLide KS
2ba4757c6a
Hopefully a cleaner implementation of Local Addon switch
2026-06-28 00:26:59 +02:00
romoney5
3606b0ae66
Don't disable console on resync
2026-06-28 00:26:56 +02:00
romoney5
ba75523d48
Print a warning when archiving an invalid Lua value
2026-06-28 00:26:54 +02:00
alufolie91
71640202ed
better polyobj count error for savegame
...
from Banpyura
gonna look into their return to menu instead of i_error stuff sometime
2026-06-27 23:42:16 +02:00
alufolie91
5fb5af05be
this is P_NetUnArchiveThinkers lululul
2026-06-27 23:39:32 +02:00
indev
4f036c9312
Fix setupm_ip going out of textbox when its not being edited
2026-06-28 00:14:56 +03:00
alufolie91
d99c272a79
have textboxes "reserve" space for cursor
...
so it wont draw outside the textbox but rather scrolls
2026-06-27 23:14:40 +02:00
alufolie91
c4ed75fbc6
port over some chat stuff from SRB2-Banpyura
...
per https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2784
chat offsets and character count
offsets are added to the base offset like we do for hud stuff, the og pr will directly use the cvar values for this, but wanna keep consistent with our rest
needs to be added in the menu somewhere but idk where
2026-06-27 22:43:57 +02:00
alufolie91
91927e324b
,
...
this menu been broken since 4 months lol
2026-06-27 20:40:33 +02:00
alufolie91
13dc0db9a9
add stairjank and skydome stuff to menu
...
pls someone gib a better description for skydome idk ingles
2026-06-27 20:29:19 +02:00
alufolie91
8aafde4c9d
"less"
2026-06-27 20:05:51 +02:00
alufolie91
266a4effb7
fix fogblock not accounting for fake contrast
...
super old oopsie lulul
2026-06-27 14:18:13 +02:00
alufolie91
948c9399de
fix HWR_SplitWall again..
...
theres guards just above this which should just skip shit but for some reason the clamps still do stuff, idk man
fixes the weird grass fof in green hill
2026-06-27 14:18:10 +02:00
alufolie91
db4aedf498
readd missing setblend for sky bg
...
oopsie forgor to copy this back
2026-06-27 14:18:04 +02:00
alufolie91
f12d5a246d
just dont set shader for this ig
...
otherwise this breaks when you disable the hud for whatever reason
looks the same so whatever
2026-06-26 19:54:20 +02:00
alufolie91
6efe56808a
make sky "dome/barreling" toggable
...
per "skydome" cvar
using karts old sky code for gl since it appears to differ a bit from srb2 and id want to keep this "authentic" to old kart
2026-06-26 17:44:40 +02:00
alufolie91
ec047151e3
toggable stair "jank" visuals
...
akin to RR, just toned down for smaller kart chars
also toggable ofc
theres not that many stairs in kart but this looks cute with smol bumps in the road
wish this would work on slopes but theyre kinda messed up lol
2026-06-26 17:44:37 +02:00
alufolie91
b1100d6215
add mobj "temprollangle" field
...
same as rollangle but resets at beginning on each tic
i dont feel like exposing this to lua atm, so if someone wants to or if even needed at all
2026-06-23 18:24:27 +02:00
alufolie91
cb8df4c3d0
change how banana rotation throw stuff works
...
noticed sloperoll does not properly work from certain angles
so just reset rollangle if needed in K_RollMobjBySlopes since couldnt find a better place tbh
2026-06-23 18:21:04 +02:00
alufolie91
fbae43f61a
move spinoutroll to k_hud
...
hud thing for minimap so should be in there
2026-06-23 00:11:47 +02:00
mazmazz
7ea95b4495
Fix OSX null-pointer-arithmetic error
2026-06-22 23:14:51 +02:00
alufolie91
07c780dc9c
add missing null terminator for player name on server info screen
2026-06-22 23:10:36 +02:00
alufolie91
f6d3ab1f3a
more random style cleanup
...
had those lying around in lugstuff branch
2026-06-22 21:05:10 +02:00
alufolie91
2c8099e228
make builds with more than 16 players undefine COMPAT_VANILLA
2026-06-22 20:57:24 +02:00
alufolie91
7c84dd5661
raise NUMMOBJFREESLOTS to 4096 on non vanilla compat build
2026-06-22 20:57:21 +02:00
alufolie91
cabd8baae5
some P_MobjWasRemoved for non COMPAT_VANILLA builds
2026-06-22 20:57:10 +02:00
alufolie91
593540a3f9
add flag "COMPAT_VANILLA"
...
undefine to enable features that are not vanilla compatible
2026-06-22 20:56:53 +02:00
alufolie91
407af1d25c
Merge branch 'maperrors2' into Saturn-Next
2026-06-22 20:54:53 +02:00
alufolie91
029c21eae8
correct map issues clientside
...
but be loud about it instead of I_Error´ing
most of those would be fatal anyways, so screw vanilla desyncing if they crash eitherways
2026-06-22 20:53:49 +02:00
entryway
568f29ed1c
Check for blockmap overflow in P_BlockLinesIterator. Under RANGECHECK define.
2026-06-22 20:52:49 +02:00
alufolie91
2dacc333b5
just set backsector to NULL
...
if not in vanilla doom compat mode/overflow emulation GetSectorAtNullAddress will just return NULL, so we can do so aswell
2026-06-22 20:52:42 +02:00
alufolie91
363612c488
port more checks from dsda-doom for invalid map data
...
decided to have it i_error for now, not sure what exactly is the best approach here
should we just "correct" some of those instead?
vanilla probably just crashes anyways
2026-06-22 20:52:19 +02:00
alufolie91
d8ffffd86e
replace non valid sidenum magic number
...
with what dsda-doom uses
2026-06-22 20:52:11 +02:00
alufolie91
4b2a13defb
cleanup K_DropItems a bit
...
move "paperitem" spawn to its separate function like RR
2026-06-21 23:30:20 +02:00
alufolie91
9cc74d8b17
use P_MobjWasRemoved for P_MoveChaseCamera
...
dont need to care about synch safety here....
2026-06-21 23:07:20 +02:00
alufolie91
066adb972e
add some more mobj null checks to P_MobjThinker
...
from srb2 ig
2026-06-21 23:07:17 +02:00
alufolie91
0f1ad8a086
few more smaller cleanups
2026-06-21 23:07:12 +02:00
alufolie91
40537eca81
cleanup P_KillMobj a little
2026-06-21 23:03:45 +02:00
AJ Martinez
0cff3c23f3
Don't attempt itemamount correction after orbitals self-destruct
2026-06-21 22:35:20 +02:00
alufolie91
9bdda66a0c
rename this to D_CheckMapReplacements
2026-06-21 19:14:22 +02:00
alufolie91
3b6a09da9b
oops
2026-06-21 19:04:48 +02:00
Zwip-Zwap Zapony
c275555678
Draw the input prompt while the console is moving
2026-06-21 19:00:10 +02:00
Zwip-Zwap Zapony
fc588f8046
Make con_height adjustable on the fly
2026-06-21 19:00:07 +02:00
alufolie91
17093e8022
add command to list unused map slots
...
less pain for server owners
hope this is sufficient
2026-06-21 18:03:50 +02:00
alufolie91
b575c288fa
allow page up/down to scroll through chat
...
like in console
2026-06-18 17:31:36 +02:00
indev
f9a6702219
Fix player node staying muted when player leaves
2026-06-18 17:28:27 +03:00
indev
cfda853e6f
Add console variant for mute command, also fix it applying mute for players that are not in game
2026-06-18 16:35:48 +03:00
alufolie91
14ac3ca9b0
;;...
2026-06-16 20:05:12 +02:00
alufolie91
e94fecf56d
cleanup even more style issues
...
also should fix R_InitSprites printing the wrong spritename in some cases
2026-06-16 19:08:04 +02:00
alufolie91
51d9aa6197
add credit to bayer dither shader sources
...
completely forgot about this (sry!)
the original implementation was mostly based on hughsk´s 8x8 bayer shader while the current is mostly adapted from the libretro 4x4 bayer shader
2026-06-16 12:32:02 +02:00
alufolie91
96a29abc62
move this back
...
might change behavior of this, which may desynch in rare cases
2026-06-15 14:53:59 +02:00
alufolie91
fa1b797a44
handle interrupt signals during CONS_Error
...
also move stuff into smol inline function
2026-06-15 14:51:35 +02:00
alufolie91
e1061ab4b4
add PARANOIA cases for reject and blockmap stuff
...
also see comment
2026-06-13 15:11:41 +02:00
alufolie91
ab0d071d35
use sizeu1 instead of %lu
...
windoze.......
2026-06-13 13:41:06 +02:00
alufolie91
8129b89034
port P_VerifyBlockMap from dsda-doom
...
to check for blockmap issues that might cause crashes
2026-06-13 13:37:21 +02:00
alufolie91
14aaba7a87
make reject matrix print an error instead of warning
...
better on 2nd thought as this may crash vanilla clients that use nametags
2026-06-13 13:20:54 +02:00
alufolie91
2c1bb6c268
smol optimize fof checks in P_CheckSight
...
check if fof is solid before height comparisons, also split initial height comparisons to save on some height checks in some cases
2026-06-13 13:20:51 +02:00
alufolie91
cc6437285f
check for missized rejectmatrix´s on load, pad them if needed
...
this is what dsda-doom/prboom does
ensures we wont crash from oob reads and makes us print a warning
2026-06-13 13:00:00 +02:00
indev
b24f6683b7
Use SKINCOLOR_NONE for ROULETTECOLOR_NONE instead of TC_DEFAULT
2026-06-13 02:25:43 +03:00
indev
5f559af29c
Add more options to roulettecolor
2026-06-13 02:12:23 +03:00
indev
eef1c55549
Add option for item roulette to use 'local' colors instead of player color
2026-06-13 01:40:14 +03:00
alufolie91
3c227ec532
P_CheckSight: fix rare overflow in rejectmatrix check
...
didnt think this could overflow here but well it does
wish there was a better way to bounds check heap arrays in C
2026-06-12 22:06:57 +02:00
indev
50f839e1ad
Fix JoyAxis and InputDown inputs being off by one, this fixes lookback only working for p1 (ty lug <3)
2026-06-12 16:47:55 +03:00
indev
8db399be9b
Allow lookback in replays (currently only works for player 1)
2026-06-12 16:38:32 +03:00
alufolie91
8cb321993e
restore functionality to set zipper/speed pad sounds
...
set using the front side upper texture field like the play sound special per "DSXXXX"
the parsing part already was there but not the actual code to make it use the specified sound for some reason lul
shouldnt break anything and is vanilla compatible!
2026-06-08 10:04:14 +02:00
alufolie91
b4cad08ad3
cleanup p_spec/p_setup a bit
2026-06-08 09:44:36 +02:00
alufolie91
fa899d3970
fix a few more style issues
2026-06-07 07:07:56 +02:00
alufolie91
b955fdb47d
cleanup s_sound a little
2026-06-05 23:07:29 +02:00
James R
4686e8e112
Do not play invalid sfx
2026-06-05 23:07:26 +02:00
alufolie91
667c67a61a
also avoid strcpy for PutFileNeeded
2026-06-05 20:43:37 +02:00
alufolie91
df9a23a6c7
CL_CheckFiles: avoid using strcpy
...
wadfile->filename has not a fixed size, so it theoretically might be bigger than wadfilename buffer
this probably wont ever happen but better be safe than sorry honestly
2026-06-05 20:20:38 +02:00
alufolie91
a3f557f4df
SV_SendFile: check if I_GetNodeAddress is set before use
2026-06-05 20:07:43 +02:00
alufolie91
1ac029edc6
optimize CL_CheckFiles a bit
...
the "already loaded" check will not first compare the md5sum, which is a very simple memcmp, and only then it will do string copies, nameonly mutation and name compare should the md5sum match
this should save quite a few unnecessary string operations since the md5 match case will rarely ever hit
2026-06-05 20:07:43 +02:00
alufolie91
761766d353
whitespace fix
2026-06-05 16:19:02 +02:00
alufolie91
72d3360711
delet this
...
this doesent exist anymore lol
2026-06-05 15:59:55 +02:00
alufolie91
ac52ec2c48
print netcmd name for SendNetXCmdForPlayer warnings
...
makes those prints a little more useful for debug
2026-06-05 14:50:46 +02:00
alufolie91
956bc3f7df
hw renderer cleanups from lugstuff branch
...
mostly just code dedupe with ceepeepee lambdas
had checked in the past those didnt cause any real noticeable perf changes
2026-06-05 13:07:57 +02:00
alufolie91
746a8cec8b
hw_main: make HWR_SkyWallList_Add realloc check a little safer
...
stuff like that should always be checked per equals/greater than just equals
in practice this shouldnt have caused any issues but its just better practice to check for greater
2026-06-05 12:21:27 +02:00
alufolie91
f7a32b5f85
init "savegamename"
...
global that was missed
2026-06-04 09:21:38 +02:00
alufolie91
bd30ab8fb7
delet JoyType_t
...
palyer[sic]......
2026-06-04 09:21:36 +02:00
alufolie91
4140f93e41
update pingdisplay only once per second
...
this will make sense later......
2026-06-04 09:21:33 +02:00
alufolie91
8ae6f71578
bunch of smaller optimizations and cleanups
...
mostly avoiding needless work as per usual
2026-06-02 11:31:56 +02:00
alufolie91
d5083ac66c
cleanup and split K_MoveKartPlayer
...
item stuff split into K_PlayerItemThink
2026-06-02 11:24:49 +02:00
alufolie91
62be792a0d
cleanup K_KartDrift a bit
2026-06-02 11:23:47 +02:00
alufolie91
c34346cb9a
Saturn Icon for mac
2026-05-30 07:29:30 +02:00
alufolie91
d7803ecdcf
fix cmake build
2026-05-30 06:05:52 +02:00
alufolie91
1a2a487a93
change cmake title to "Saturn"
2026-05-30 05:42:54 +02:00
alufolie91
bed6306cdf
p_sight: let P_CrossSubsecPolyObj also use "fast" P_DivlineCrossed
...
for P_CheckSight on polyobjects
2026-05-30 05:42:51 +02:00
alufolie91
7521b3abd2
tiny optimize PIT_RadiusAttack in some cases
...
by checking simpler things before distance checks which may avoid two P_AproxDistance/FixedHypot calls
2026-05-30 05:42:48 +02:00
alufolie91
58d5bab181
tiny optimization K_SpawnKartMissile
...
by avoiding "min/max" reevaluation
2026-05-30 05:42:46 +02:00
alufolie91
2bffe443ed
simplify analogue throwdir stuff in K_drawInput
2026-05-25 17:11:18 +02:00
alufolie91
261c02f4b6
few more hw_ file cleanups
2026-05-22 23:12:56 +02:00
Alug
d59ac7d01b
fix weird gap in opengl options menu
2026-05-20 19:03:41 +02:00
indev
ac86f36186
Skip empty lines in renderer.txt
2026-05-18 20:32:59 +03:00
alufolie91
b5c7fd5a2b
HWR_Subsector: check for sub->polyList instead of numpolys
...
numpolys sometimes might not get reset, checking for sub->polyList is what was actually intended
2026-05-18 18:21:00 +02:00
alufolie91
da103f54d6
hw_main: reorder plane stuff in HWR_Subsector
...
check for subsector validcount first, then if its a sky plane
so we can skip checking sector heights for sky planes, which may save a bit of maths on maps with many slopes
2026-05-18 18:20:58 +02:00
alufolie91
f82d138482
cleanup some things
2026-05-15 13:00:30 +02:00
alufolie91
e7332a3efe
Revert "Blua: implementation of fast track for gettable operations"
...
This reverts commit e4e51f0f80 .
2026-05-15 11:54:10 +02:00
alufolie91
bd27a62769
Revert "Blua: fast track for 'settable'"
...
This reverts commit bdae0ef4ae .
2026-05-15 11:53:59 +02:00
alufolie91
2b650e4b61
Revert "Blua: 'Protect' in table operations is not needed in the fast track"
...
This reverts commit 537a50b9b3 .
2026-05-15 11:53:53 +02:00
alufolie91
8e82256827
Revert "Blua: 'luaV_fastget' only treats the real fast case (table with a non-nil value at given key, so that it does not need to check metamethods)"
...
This reverts commit 019812db08 .
2026-05-15 11:53:46 +02:00
alufolie91
4fa937728b
Revert "Blua: OP_SELF can use 'luaV_fastget' specialized for strings, as it is applied only to string keys"
...
This reverts commit 0fb752b745 .
2026-05-15 11:53:42 +02:00
alufolie91
9f9e6450f2
Revert "Blua: opcode OP_SELF operate only with string keys, so they can use fast-track table access"
...
This reverts commit 7684e6aa07 .
2026-05-15 11:53:33 +02:00
alufolie91
1c75dd0401
Revert "blua: fix copy paste error for "slow path" in auxgetstr/lua_getfield"
...
This reverts commit b652d802f5 .
2026-05-15 11:53:26 +02:00
alufolie91
e854096ca0
revert back to number based player names fallbacks
...
well need our player 1-16 not player a-z :chonkbuncle:
2026-05-15 03:11:52 +02:00
toaster
83a60ea857
Some fixes for bad player info on joining servers.
...
* Don't overwrite the first player's name when joining with multiple local splitscreen players. (resolves #151 )
* The defaults for unprovided names are now consistently "Player A/B/C/D" as opposed to some being letter-based and some being number-based.
* Send local player info once per local splitscreen player, rather than n^2 times (where n is the number of local splitscreen players).
* Since the packet *requires* four names to be sent every time you join a server, send dummy names for local splitscreen players who aren't connecting, instead of your actual cvars (no data leakage you didn't ask for!)
2026-05-15 03:11:03 +02:00
toaster
3d9d14b353
EnsurePlayerNameIsGood: Remove trailing whitespace, instead of just failing on it
...
Interesting error with its recursive duplication resolving exposed by the previous commit!
2026-05-15 03:11:00 +02:00
alufolie91
24c9f88262
make snacpending error print player number
...
bit more informative :chaosleep:
2026-05-15 01:28:02 +02:00
alufolie91
b652d802f5
blua: fix copy paste error for "slow path" in auxgetstr/lua_getfield
...
lets hope this fixes the random crashes from gc sometime
stimky from https://github.com/Indev450/SRB2Kart-Saturn/pull/223/changes/e4e51f0f80fb7deb9213c72bb374d0a7e4c3f03b
2026-05-15 01:09:19 +02:00
alufolie91
459beeb000
fix oopsie from https://github.com/Indev450/SRB2Kart-Saturn/commit/093ed023ef36bb2e8608116ef39d7710366ccf84
2026-05-15 00:36:36 +02:00
indev
a28d798189
Remove some redundant mo != NULL asserts if they are followed by !P_MobjWasRemoved(mo) asserts
2026-05-15 01:24:14 +03:00
indev
e75a696ee5
Remove outdated PARANOIA assert in P_SetMobjState, it uses P_SetPlayerMobjState automatically for players now
2026-05-15 01:06:04 +03:00
alufolie91
e113027ce6
d_netcmd: fix snacpending stuff
...
also move all of it behind PARANOIA define, since nothing else was using it eitherway
2026-05-14 21:25:53 +02:00
alufolie91
2ce4e866e3
reorder seg_t struct a bit
...
fixes a 4byte hole so we can fit everything important into cacheline 1
even when compiled without HWRENDER this should be a better layout
checked per pahole
2026-05-14 18:56:43 +02:00
alufolie91
55a57a1036
fix checking for fbo completeness too early
...
this should come after everything apparently
all this shit really needs to be cleaned up again
2026-05-12 21:02:15 +02:00
alufolie91
6aabdc86c0
P_TryMove: reduce the amount of R_PointInSubsector per call
...
and also P_PlayerTouchingSectorSpecial
since either are in a loop that often runs multiple times per call
improves perf a bit per usual testing
2026-05-12 15:38:43 +02:00
indev
9aaa7cc5bf
Don't break non-string keys in ArchiveTables when printing error message
2026-05-12 03:52:56 +03:00
alufolie91
d6946d4d44
fix HWR_RenderPolyObjectPlane
...
smol oopsie that was supposed to be float
fixes the rotating skybox thing in Zero Space
2026-05-11 15:08:14 +02:00
alufolie91
a868844bdf
remove outdated comment about precipmobj
2026-05-10 20:15:28 +02:00
alufolie91
39fd31c4b9
p_mobj: potentially save a few more floor/ceiling z checks in some cases
...
+ some other crap
2026-05-10 20:15:24 +02:00
alufolie91
54f3d7b5e0
move lua_tostring out of the loop in mapheaderinfo_get
...
does not need to be reevaluated constantly
2026-05-10 16:57:45 +02:00
alufolie91
88116368bb
fix potential null pointer deref in P_LineOpening
...
again ive never seen this hit, but the mobj gets checked right below its radius get dereferenced within the floorz/ceilingz functions which kinda annoyed me lol
as a fallback i just the floor/ceiling sectorheights, which were used before the addition of slopes
2026-05-09 20:00:19 +02:00
alufolie91
9328825a7c
fix potential null pointer deref in P_MobjFloorZ/CeilingZ
...
dont think this ever really hit, but boundsec indeed can be null
it also gets checked if its null above anyways, so why not here?
2026-05-09 20:00:07 +02:00
alufolie91
f825ca32cc
add "HAVE_IPV6" to passtrough compiler flags
...
to allow compiling with ipv6 support
to note this is unsupported from our side, as purely ipv6 servers are unreachable from vanilla clients
2026-05-09 15:33:48 +02:00
alufolie91
ce982d170f
change "important" hook_state field to be bool type
...
matches the others
prob no diff in practice at all
2026-05-08 14:38:57 +02:00
alufolie91
1b3050028e
save a few mobjfloorz/ceilingz calls in some cases
...
gave a small speedup on my test setup (+~3fps)
on slopes those are rather expensive
2026-05-08 14:38:47 +02:00
alufolie91
2344552ba8
Opengl: enable stencil testing only when portals are used
...
maybe a bit of perf on non portal maps, prob neglible but why not
2026-05-07 16:26:42 +02:00
alufolie91
50c1263e7d
OpenGL: only enable stencil testing during level render
...
not 100% sure if this is the most correct thing, but this causes issues with Nvidia Gpu´s under x11
should fix https://github.com/Indev450/SRB2Kart-Saturn/issues/226
2026-05-06 12:28:08 +02:00
alufolie91
f1ded99262
some code style cleanups
2026-05-06 12:28:05 +02:00
alufolie91
b1620a3fce
delet I_ShutdownConsole spam
...
without process forking I_ShutdownSystem will handle it, otherwise the parent process calls it before exiting
2026-05-04 23:02:04 +02:00
alufolie91
d0ea4d20d0
fix parent process being killed before child per interrupt/terminate signals
...
by ignoring those signals
otherwise the terminal will be left in a weird state, aswell as the parent exit stuff wont be properly run
this was "fine" before https://github.com/Indev450/SRB2Kart-Saturn/commit/f4dc161831a988e725e8639b9674984ebdf5f6bb but now needs to be handled like this
2026-05-04 23:02:01 +02:00
alufolie91
7f4804f98c
fix super rare underflow within FixedHypot if input is -2147483648
...
this has an insanely rare chance of happening in certain cases (train rush map has a few spots where this is somewhat likely)
abs does not really handle -2147483648 and its result is pretty much implementation defined/ub, since we compile with fwrapv flag it would just return -2147483648 which will cause this to try and access tantoangle at a negative index
we can just return INT32_MAX here since treating either as 2147483647 would return 2147483647 eitherways
2026-05-04 14:10:49 +02:00
alufolie91
4fe3495652
fallback to srb2back instead of hoping the map is still loaded for intermission bg
...
timescale and replay fastforward caused stuff to crash and well this is better than a whitescreen ig
2026-05-04 10:28:32 +02:00
alufolie91
3c409b4a46
detect kill signal when printing signal from signalhandler
...
bit more informative than "signal number 9"
2026-05-04 10:01:26 +02:00
alufolie91
45067e00a5
fix compiler warnings + "support" gcc16
2026-05-04 08:04:08 +02:00
alufolie91
370ed1583b
comment out unused spritescale/offset fields from gl_vissprite_t
...
yes those are in fact unused
not deleting since they might be useful for something sometime....
2026-05-02 21:02:50 +02:00
alufolie91
535c2073f1
move palshader code out of HWR_DrawScreenFinalTexture
...
and make the whole handling safer so we have less chance of ending up with blackscreens should the palette render shader fail
2026-05-01 03:51:28 +02:00
alufolie91
6460ae94f1
remove magic number for P_CalculatePrecipFloor stuff
2026-04-29 17:55:16 +02:00
alufolie91
093ed023ef
cleanup CL_DrawConnectionStatus a little
2026-04-29 17:55:13 +02:00
minenice55
1bada2810a
cap download size to total size in the connection UI
2026-04-29 17:55:10 +02:00
alufolie91
9df7f3cd3f
dont let saltyhop overwrite the players spriteyoffset
...
let it add to it instead
otherwise if we ever use it for smth else in hardcode saltyhop will work with it
2026-04-29 17:55:04 +02:00
alufolie91
010b6c0361
use destructor attribute for W_Shutdown
...
makes sure this is always called in any case
also just simpler
2026-04-29 17:55:01 +02:00
alufolie91
dbf67a9670
remove some branch hints in some places
...
should really only use those for things that are basically dead but gotta be kept for compat reasons and such
2026-04-29 17:54:58 +02:00
alufolie91
8868445c3c
S_UpdateSounds: init listenmobj
...
not sure why but ubsan did complain about it sometimes
S_StartSoundAtVolume also just memsets it so why not do the same here anyways
2026-04-29 17:54:55 +02:00
alufolie91
568cb8b8c7
check I_GetNodeAddress is set before use
...
this might´ve not been init yet at that point
2026-04-27 22:02:43 +02:00
alufolie91
3b00a69615
prevent buffer underflow within holepunching
2026-04-27 22:02:39 +02:00
alufolie91
6949ce82ab
k_hud: fix achii speedometer not being properly coloured with colourhud
...
oopsie smol oversight from me
2026-04-23 10:07:40 +02:00
alufolie91
c343c52477
remove "extra3" hud stuff
...
decided to finally make smol stickers for the beta hud
this was never a really great solution since it made things look pretty bad at certain resolutions/scales
still keep the loading code for convenience but honestly not needed aswell at this point
2026-04-23 10:07:35 +02:00
alufolie91
7931a82b23
attempt to fix a plethora of buffer overflows when trying to connect to a server that does not exist
...
ex: if you typo´d the serveraddress
this really aint pretty but idk how to make things not turn into limbo hell otherwise
2026-04-21 20:52:15 +02:00
alufolie91
31ccf9c34a
optimize K_CheckOffroadCollide further
...
also makes this alot more readable
like this most of the time we dont have to ever check the players floorz nor ceilingz at all since we check if the sector the players mobj is in is even offroad at all
nothing super big but i did see an improvement of around 1fps in my usual benchmark
2026-04-18 18:46:58 +02:00
alufolie91
ff3b73c49e
fix offroad oopsie causing desynch
...
ye def not confusing at all to suddenly switch the meaning of floor and ceiling
2026-04-17 20:53:24 +02:00
alufolie91
64bed71509
add toggle to allow controllers to control the game while window is unfocused
...
can be toggled with "gamepadunfocused" or in the focus options
2026-04-17 18:54:18 +02:00
alufolie91
eed5943b0b
optimize K_CheckOffroadCollide a little bit
...
no need to always check both the mobjs floor and ceiling z coordinates, those are surprisingly complicated checks on slopes
2026-04-17 17:46:17 +02:00
alufolie91
4f9ddffe2a
d_cliserv: check for splitscreen nodes first in clientcmd handler
...
so we dont always have to check a bunch of things that most of the time wont apply anyways
2026-04-17 17:46:17 +02:00
alufolie91
a73f3a073c
hw_main: dont need to do sprite billboarding stuff with shearing enabled within HWR_SplitSprite
2026-04-17 17:46:17 +02:00
alufolie91
a59928221b
few more cleanups and super tiny optimizations k_hud
2026-04-16 17:39:13 +02:00
Eidolon
b46e5cb577
gl: Fix sky dome VBO leak
2026-04-15 23:51:15 +02:00
alufolie91
bb62fbfc12
add "USEJEMALLOC" make flag to link against "jemalloc" allocator
...
on my linux system and usual benchmark setup this improves performance quite significantly (+~12fps)
this relies on jemalloc to be installed as a separate library for now and is more a convenience thing
2026-04-15 23:51:15 +02:00
GenericHeroGuy
81f46224e1
Fix asan error when pressing shift and arrow key
...
Also fix addons menu ignoring shift when capslock is on!
Also also fix capslock+rshift still typing uppercase letters!
2026-04-15 18:08:03 +02:00
NepDisk
6c58c0de41
Add support for using custom SDL2 mappings
2026-04-14 20:25:31 +02:00
alufolie91
4edc102d67
hack: fix intermission background becoming white after resolution change
2026-04-12 15:23:53 +02:00
alufolie91
e0bf663157
Hack: fix intermission screen displaying whitescreen in some cases
...
does not fix whitescreen when switching resolutions while in intermission screen, but oh well
lets hope there will be no issues with calling D_Renderview in intermission state, but it seems to work from quick testing lul
2026-04-12 15:05:51 +02:00
alufolie91
eccc3eb33f
print opengl extensions in new lines for ogllog
...
otherwise this may still get truncated and lots of text editor also complain about a super long single line of text
also fix null ptr dereferencing into strtok should strdup return null
2026-04-12 14:30:49 +02:00
indev
1217089d81
G_UseContinue is unused, delet it
2026-04-11 21:53:15 +03:00
alufolie91
e5c0967a3f
BLUA: simplify lua number hash
2026-04-11 16:49:19 +02:00
indev
27f22e4b5b
Use case insensitive string hashing and compare functions for cvar hashtable
2026-04-09 19:09:37 +03:00
alufolie91
c039d14efc
remove even more unused stuff
2026-04-08 22:42:34 +02:00
alufolie91
71a0b25e32
remove old and unused menu player description stuff
...
hope ignorelines is the correct thing to well ignore lines lol
2026-04-08 22:42:31 +02:00
alufolie91
8c2132a98c
remove a few more unused things
2026-04-08 21:54:32 +02:00
alufolie91
898bcd336d
should be
...
:chonkbuncle:
2026-04-08 18:53:43 +02:00
alufolie91
5461a6dcbe
cleanup skinselect menu stuff slightly
2026-04-08 14:56:44 +02:00
alufolie91
d957bddc1f
update opengl dithering shader
...
now works more like i intended too by more or less scaling the pattern to be roughly the same size on each resolution and trying to reduce precision issues by using floor to convert float values to integer range
2026-04-08 14:39:09 +02:00
alufolie91
7177a9f57f
raise version to v9.3
2026-04-07 17:53:11 +02:00
alufolie91
4ccf3dfaf9
software: make R_DrawWallColumn being able to render "holey" textures
...
not the most efficient but idk a better solution to this, and clipping code may cause some other undesired effects, but well were not supposed to be drawing textures with holes on single sided walls eitherways, but here we are
basically this copies columns into a buffer filled with cyan pixels, so the holes become cyan instead of nothing, which we can cut again using the twomultipatch drawers
fixes the "melt" effect on some things like spelunky or music plant (and well reading/writing oob)
2026-04-05 20:37:24 +02:00
indev
489a58f9fd
Allocate all colormaps with PU_STATIC
2026-04-05 18:31:55 +02:00
alufolie91
b26effa241
Merge pull request #223 from Indev450/bluaopti2
...
Some optimizations and fixes for BLUA from LUA
2026-04-05 18:28:50 +02:00
alufolie91
efd8c20d26
enable lto by default on makefile builds
...
change flag to NOLTO to disable lto
at this point we shouldnt have any issues anymore since the utter crapton of bugfixes
2026-04-05 18:26:16 +02:00
alufolie91
03b85aa00e
Merge pull request #225 from Indev450/optifindvar
...
Speed up CV_Findvar & CV_FindNetVar with hashtable
2026-04-04 17:05:25 +02:00
indev
e6434c24ec
Fix spelling in server addon info tooltip
2026-04-04 18:01:10 +03:00
indev
52e23e7b08
Merge pull request #224 from Indev450/addon-download-info
...
Addon download info
2026-04-04 14:49:38 +00:00
indev
b84e6d89e2
Add toggle for server addons info hud into settings
2026-04-04 17:24:58 +03:00
indev
42fa435a0b
Add toggle for server addon info
2026-04-04 17:17:11 +03:00
indev
873cff4474
Display information about addon types loaded on server when joining (WIP)
2026-04-04 17:17:09 +03:00
indev
e543599598
Add option to hide skin name from stat display
2026-04-04 16:54:17 +03:00
alufolie91
9d75bb1405
hw_main: reorder things, mark const, remove pointless check for polyobject planes
...
like normal planes, polyobject planes will just reallocate their vertex buffer eitherways according to size, so that check does not make much sense, srb2 also did remove it a while ago
2026-04-04 15:47:02 +02:00
indev
7b0e3269b3
Add option to hide finished players from minimap
2026-04-04 16:37:15 +03:00
alufolie91
12169bfb38
controllers:check if controller supports addressable led and rumble
2026-03-29 13:50:13 +02:00
alufolie91
4dd5957f19
cache islocalplayer in P_SpectatorJoinGame
2026-03-29 13:50:10 +02:00
alufolie91
0fadfe0f72
dehacked: fixup lua_enumlib_sprintf_upper
...
apparently reusing a va list like that is ub, so we should just copy it if we want to reuse it
also fix the resize check, since vsnprintf return does not include 0 terminator which we need to account for
also make this part of dehacked.c a bit more readable lol
2026-03-29 10:58:51 +02:00
alufolie91
621df7e296
v_video: make stringwidth loops safer
2026-03-28 23:39:21 +01:00
alufolie91
17d72e02fe
cleanup some redundant/dead code
2026-03-28 23:39:17 +01:00
alufolie91
cd76660314
restore intended behavior for cvar menu categories
...
for onchange functions
2026-03-28 23:39:01 +01:00
alufolie91
06a9ab785e
add misssing break K_SpawnBattlePoints
...
oopsie, somehow this seems to never caused any issues?
2026-03-28 23:06:10 +01:00
indev
6760546bcd
I thought i reverted debug print aaaaaaaa
2026-03-29 00:34:11 +03:00
indev
b44e003ab9
This is intended to be empty string, this way it reads the rest of the string including '=' :p
2026-03-29 00:29:38 +03:00
alufolie91
6a1c907aa4
bunch of random fixes
...
-handle more memory allocation failures
-fix null pointer dereferences
-prevent writing out of bounds while writing filenames for D_ParseFileneeded
-prevent reading out of bounds while checking for new target in director
-fix Update_MS checking against an unitialized value in some cases
-fix assert for AddLumpToCache since strlen on non null terminated strings is UB
-cleanup and rearrange R_DrawColumn
-cleanup musicdef parser a little
all in one commit cause idk would be ugly if those were seperate ig
2026-03-28 00:45:15 +01:00
indev
fded8cc562
Crash fix for super tiny resolutions
...
Not really sure if anyone would actually want to play on something that
is lower than 320x200 but this prevents zero division in V_Recalc at least
2026-03-27 22:05:11 +03:00
alufolie91
43465c0e3f
add debug print for fallback flashpals
2026-03-26 18:29:46 +01:00
alufolie91
7fb21c35ba
Experiment: speed up CV_FindVar and CV_FindNetVar
...
oftentimes lua scripts call CV_FindVar a fuckton of times during runtime, with many cvars this can actually tank performance more than one might think
ideally lua scripts should cache the result, but with so much stuff and servers we cant expect everyone to go through all scripts to do that
using a hashtable for CV_FindNetVar might improve join times aswell, but needs further testing to confirm
2026-03-25 19:35:20 +01:00
alufolie91
f6a0430a40
use constructor for W_Startup
...
never liked having this inside i_system
2026-03-25 19:35:17 +01:00
alufolie91
ab209448d1
Introduce GNU constructor and destructor attributes
...
The constructor attribute causes the function to be called automatically before execution enters main (). Similarly, the destructor attribute causes the function to be called automatically after main () has completed or exit () has been called. Functions with these attributes are useful for initializing data that will be used implicitly during the execution of the program.
added "used" attribute aswell so compiler does not omit non referenced functions (i hope)
gotta test this a bit but seems cool for stuff like verstable maps
2026-03-25 19:35:14 +01:00
alufolie91
9334b86f6e
console print for playing demos from replayhut
...
might be useful
perhaps this should be put into g_doplaydemo instead?
2026-03-25 19:34:56 +01:00
alufolie91
6022966d69
G_DoPlayDemo: fix demoname becoming garbage when replay restarts/rewinds
...
only used in the error paths, which we shouldnt reach
but im not a fan of having a chance of putting garbo in the console
2026-03-25 19:34:54 +01:00
indev
6c7db705c7
Strip colors from demo titles for replay search
2026-03-25 21:05:39 +03:00
indev
ce3d17de68
Simplify R_DoPlayerFade crash fix a bit and rename playerdist to otherplayerdist
2026-03-25 20:24:37 +03:00
alufolie91
404d88a536
remove some dead code
2026-03-24 01:07:07 +01:00
indev
4f28f574bb
Fix rare crash in R_DoPlayerFade when viewplayerdist is too low
2026-03-24 00:20:28 +03:00
alufolie91
654895dcff
fix timedemo not accounting for level and addon loading
...
apparently demos used to send a mapcmd before instead of directly calling G_InitNew, so this function was never called which meant that timedemos always returned a wrong result first time
2026-03-23 19:05:37 +01:00
alufolie91
8af43a55c9
split CONS_Printf
...
so both CONS_Alert and CONS_Debug dont have to handle and copy the varargs twice
probably makes no actual difference in practice, but i prefer it to not do pointless work
2026-03-22 22:29:21 +01:00
alufolie91
0d20ebb01f
delet P_CyclePlayerMobjState
...
P_SetMobjState already handles player case and forwards it to P_SetPlayerMobjState
so this is just duped code
2026-03-22 22:17:45 +01:00
alufolie91
1c74b37026
unify console shift handling
...
both the non AZERTY and AZERTY functions basically did the exact same thing so can just get rid of one
also simplify some checks
2026-03-22 22:14:19 +01:00
indev
6721f534cc
Fix Got_Saycmd not skipping null terminator when message has maximum length
2026-03-22 22:16:55 +03:00
indev
bb3414d603
Fix /pm and emote suggestions overlapping
2026-03-21 23:10:48 +03:00
indev
e13cb1ca92
Remove few remaining flashpal things in opengl menu
2026-03-17 19:00:38 +03:00
indev
a0dffd0670
Fix listemotes calculating incorrect number of pages
2026-03-16 04:07:48 +03:00
Alug
7684e6aa07
Blua: opcode OP_SELF operate only with string keys, so they can use fast-track table access
...
https://github.com/lua/lua/commit/cb3d5dce30089512085f78a0bef79e30ef732e30
2026-03-15 18:19:06 +01:00
Alug
0fb752b745
Blua: OP_SELF can use 'luaV_fastget' specialized for strings, as it is applied only to string keys
...
https://github.com/lua/lua/commit/257961c601fdec1ea1f9640d460e0d31c39333a1
2026-03-15 18:19:03 +01:00
Alug
c418fe3ef8
Blua: 'luaV_fastget' only treats the real fast case (table with a non-nil value at given key, so that it does not need to check metamethods)
...
https://github.com/lua/lua/commit/1a44e822009752513ce895b9eabc51a4ee4a195a
2026-03-15 18:18:59 +01:00
Alug
fdccc80260
Blua: 'Protect' in table operations is not needed in the fast track
...
https://github.com/lua/lua/commit/df8b996bccd3830d6fe9d7ba80e8fccd6ac3cabf
2026-03-15 18:18:57 +01:00
Alug
84be9096b1
Blua: fast track for 'settable'
...
https://github.com/lua/lua/commit/3b795541c488c7e633567897c9112312007a20a0
https://github.com/lua/lua/commit/b91bc93fd33f2158745b37c9e091c6fa4d1a4fd5
had to adjust some things, hope this doesent explode lmao
2026-03-15 18:18:54 +01:00
Alug
e4e51f0f80
Blua: implementation of fast track for gettable operations
...
https://github.com/lua/lua/commit/e247c3ada3ff47a1352927e797263137f4e02e0e
lets hope i converted this properly lul
2026-03-15 18:18:51 +01:00
Alug
9087fd8377
lua hooklib: use NUMMOBJTYPES to detect mobj hooks
...
removes the "force_mobj" field, gives a suprising perf boost from my timedemo testing +6-7fps (164 - 169/170fps)
this does however will prevent the generic hook from being called if the mobj being passed ever should be NULL
This shouldnt ever happen, vanilla assumes this aswell and way worse things would happen there, but just wanted to note
2026-03-13 19:09:38 +01:00
Alug
1aa37be676
p_user: cache kartspeed value within P_3dMovement
...
its result shouldnt change there, so no need to always recompute stuff, even if its not heavy work
2026-03-13 19:09:26 +01:00
Alug
04f63b23ff
software: hack for bogus height walls
...
as per comment, this is merely a shitty workaround for a chain reaction of bad fixed point maths
since im honestly not feeling like rewriting most of the software renderer to either operate on 64bit or float maths, we just skip drawing anything that seems completely unreasonable
2026-03-13 19:09:18 +01:00
Alug
d6ed923f83
P_XYMovement: check for kart specific stuff first to determine friction apply
...
this stuff is much more common than the other stuff being checked, so more likely to return earlier and save a bunch of other checks
2026-03-13 19:09:08 +01:00
Alug
c7845118c0
explicitly cast those
2026-03-13 19:08:50 +01:00
alufolie91
ffc6adde4c
Merge branch 'servaddonsonly' into Saturn-Next
2026-03-13 19:08:21 +01:00
alufolie91
fed7020da1
hash_sparse: change length checks
...
dont early return on 0 len, let it be the falltrough case, this seems to help branch prediction
2026-03-13 18:58:49 +01:00
alufolie91
1a4255d9df
luaS_newlstr: use hash also for checking strings
...
taken from raptorjit
we can check the hash first to skip quite a bunch of memcmps which should be faster in most cases (hopefully but quick timedemo tests confirmed that)
2026-03-13 18:58:39 +01:00
alufolie91
f6ead71f0c
blua: handle 0 length strings in hash_sparse
2026-03-13 18:58:31 +01:00
Alug
966f60f590
Experiment: replace lua´s string hash with luajits ARX hash
...
the string hashing was the most hit and most spent in part of the whole game in alot of cases
replacing it with luajits algo absolutely massively improves lua performance (10-15fps in my bench timedemos!)
however idk how all this stuff exactly works so this needs alot of testing to make sure nothing breaks
ive rewritten the unaligned ptr access slightly to use memcpy for safety with some platforms that require stricter alignment
2026-03-13 18:58:21 +01:00
alufolie91
9afc018a45
Avoid computing invalid addresses
...
luaV_execute should compute 'ra' only when the instruction uses it.
Computing an illegal address is undefined behavior even if the address
is never dereferenced.
2026-03-13 18:58:05 +01:00
Alug
43608810da
lua branching hint stuff
...
rechecked against lua 5.4
2026-03-13 18:56:18 +01:00
Alug
90b5f9050a
Blua: small optimization in luaL_addlstring (avoid adding chars one by one)
...
https://github.com/lua/lua/commit/f292760f12022a83cf01e788482a264aeeb3c276
2026-03-13 18:55:55 +01:00
Alug
edc10a35a1
Blua: better names for metamethods in debug information
...
https://github.com/lua/lua/commit/becf19feeffeb0bf2297e163da4ccc7b4b5e6b5c
2026-03-13 18:55:49 +01:00
Alug
91435fe1b2
Blua: small optimization (reorder of BinOpr enum to unify some cases in switches)
...
https://github.com/lua/lua/commit/d7872dcf91eb2075312a03973a6cdb489610c796
2026-03-13 18:55:42 +01:00
Alug
a7ebc7e745
Blua: micro-optimization: avoid one API call in 'read_chars'
...
https://github.com/lua/lua/commit/f86f4116c82654d24faa4a32a909d0c27f3d4746
2026-03-13 18:55:37 +01:00
alufolie91
3cf3c1bb99
Merge pull request #219 from Indev450/netstuff
...
Netcode fixes, cleanups and optimizations
2026-03-13 18:45:18 +01:00
alufolie91
2c170f1956
Merge pull request #217 from Indev450/optimizewadlumps
...
Optimze Wad Lumps
2026-03-13 18:21:50 +01:00
alufolie91
98da654e02
Fix P_MakeMapMD5 printing incorrect time
...
:chonkbuncle:
2026-03-10 16:55:54 +01:00
alufolie91
af84105e40
better error for nodeless maps
2026-03-10 16:55:51 +01:00
indev
a1666704e5
Hide offroad particles when player is doing saltyhop
2026-03-09 14:53:30 +03:00
alufolie91
7b408a33d7
fix openmpt versions strings leaking
...
from https://lib.openmpt.org/doc/libopenmpt_c_overview.html "All strings returned from libopenmpt are dynamically allocated and must be freed with openmpt_free_string()."
didnt knew this tbh lol
2026-03-03 02:32:13 +01:00
alufolie91
9ee535066e
OpenGL: initialize all FSurfaceInfo´s
...
seen this a bunch of times now that occasionally something tries to access uninit values from a surface info
since those are really small we just always init them now
2026-03-03 02:31:54 +01:00
alufolie91
6430150b63
fix parts of png info text for screenshots not being null terminated in some cases
2026-03-02 17:53:24 +01:00
alufolie91
16cf4ede89
v_video: generate missing flashpals instead
...
not sure if this is more sane than the huge ass array from before
but atleast this is more accurate and can basically generate flashpals from any palette while also still working with all the colour and gamma adjustments
prob needs some cleanup idk this is all rather messy lol
2026-03-02 17:23:11 +01:00
alufolie91
efe8732188
fix flashpals throwing random garbage into the renderer in some cases
...
iirc, if the provided palette currently in use did not provide subpalettes, this will read past the bounds of allocated memory, which aint good lol
i just dumped the white flashpal and threw it into there since idk if -file or autoload gets called before the palette gets initialised, which would carry a risk of copying more garbage, hence this big ass array
2026-03-02 00:44:10 +01:00
alufolie91
07fc0eb03a
v_video: fix cv_palettenum bounds check
...
mhhm yeah
2026-03-02 00:35:19 +01:00
X.organic
f2b46fd148
Fix myhashfgets-related buffer overflows in deh_soc.c
2026-03-02 00:35:16 +01:00
alufolie91
8247133966
w_wad: use strnlen to check lump length for map marker
...
lump name may not be null terminated here, so strlen may read out of bounds garbo
using strnlen ensures we read max 8 characters which is the name buffer size
2026-03-02 00:35:13 +01:00
alufolie91
397fb071e5
fix compiling with valgrind support
2026-03-02 00:35:11 +01:00
alufolie91
1a9fa94cbd
Autoload: dont attempt to load directories
...
lol
2026-03-01 01:04:14 +01:00
alufolie91
e8c7cc6a9b
D_AutoloadFile: add overflow safeguard
2026-03-01 01:04:14 +01:00
alufolie91
5ca3ab5966
Autoload: fix incorrectly incrementing wad count
...
those should only be incremented if we actually add something to the filearray and not instantly execute or error out
2026-03-01 01:04:14 +01:00
indev
1cf04514b3
Fix W_MakeFileMD5 printing incorrect time
2026-03-01 02:31:11 +03:00
alufolie91
5577ba4c7a
Autoload: dont add wads that contain maps
2026-03-01 00:03:19 +01:00
alufolie91
6ff1cbf4b0
ok actually just remove keepmusic resume stuff
...
well now it just broke with dynmusic
this sucks, its probably fixable but the code was abysmal so shrug
2026-02-26 01:11:37 +01:00
alufolie91
db4cd73912
fix keepmusic resuming not resetting with "tunes" command
...
this code sucks ass wtf was i cooking
if this breaks again i will just wipe it lmao
2026-02-26 01:05:18 +01:00
alufolie91
3c70598aea
lumpnumcache: W_LumpExists should return true or false
...
whoops was oversight by me
prob doesent really matter due to wraparound but its still incorrect
2026-02-25 22:38:46 +01:00
alufolie91
1ec29c1c94
better flags for ASAN and UBSAN
...
compile with -O1 and -fno-omit-frame-pointer
-fno-common for ASAN
2026-02-25 21:30:23 +01:00
alufolie91
fedccd25b9
hw_cache: use verstable for HWR_PrecacheLevelFlats flatchecks + convert to C
...
replaces the unordered_set and doesent require c++
2026-02-25 18:04:45 +01:00
alufolie91
1e51365cad
add comment about K_KartUpdatePosition
2026-02-25 17:45:07 +01:00
alufolie91
94026e4331
makefile: comment out all the "Wno" flags
...
we effectively fixed all of them, so this does not throw any warnings for me atleast
in case we may screw up id rather have those warnings appear
2026-02-25 17:45:05 +01:00
alufolie91
2084cdc6d5
hw_md2: remove pointless float casts
...
durs and tics are int32.
and so is var2, anim_duration is uint16 but that still makes no sense lul
2026-02-25 17:10:24 +01:00
alufolie91
1b22c3af19
those should be boolean
...
just for correctness!
2026-02-25 16:52:47 +01:00
alufolie91
3e327263c9
fix faulty papersprite flipping in opengl
...
lol
2026-02-25 16:46:58 +01:00
alufolie91
7c24d92613
delet V_GetSkincolorChar
...
this was unused and broken anyways
think this came from snowy kart or smth
2026-02-25 16:46:55 +01:00
alufolie91
ba808307e9
FORCEINLINE is apparently used by windows already lmao
2026-02-24 16:10:54 +01:00
alufolie91
014a22e933
w_wad: replace unordered_map with verstable hashmap for lumpnumcache + convert back to C from C++
...
been rethinking this and been doing some digging online
the unordered_map was just a quick and simple fix for performance issues in blan, but came with caveats:
- unordered_map is simple to use but not particulary great in terms of performance during lookups especially
- we needed to convert w_wad to c++ just for the lumpnumcache
- due to needing to preserve the key since they gotta outlive the scope of the function that inserts things into the map, we effectively did a string copy on each map insert and lookup
after some research came across verstable, which is basically almost the exact same as unordered map but in C while being extremely fast (even more with its builtin string hash and comparisor)
only caveat with verstable is we need to rely on a new lib, though its just a single header file, and we gotta manage ensuring the input keys outlive functionscope ourselves, which we do with strdup in this case
good thing, verstable allows to call a "destructor" specified by us whenever it removes or replaces keys in the map
this also means we only need to copy strings on insert and not on lookup anymore
all in all this is much faster while giving us the simple usage of c++ unordered_map while staying in C
due to the strdup quirk i had to slightly modify verstable to allow to take const as inputs for the getter functions even if the keys themselves are not const marked with "KEY_GET_CONST"
Verstable can be found here: https://github.com/JacksonAllan/Verstable
and is licensed under MIT which is perfect!
2026-02-24 16:06:27 +01:00
alufolie91
3f3ba9e993
Merge branch 'Saturn-Next' into optimizewadlumps
2026-02-24 15:54:47 +01:00
alufolie91
2f684bba95
ensure SIGINT/SIGTERM can quit out from wipes and serverconnection ticker
2026-02-24 12:34:21 +01:00
indev
a287a6419f
Use strncpy for zip entry filename because it might not be null-terminated inside zip
2026-02-23 22:53:23 +03:00
alufolie91
6f2aba7ee3
Windows is such a cool Operating System
...
idk why we just dont use int32 there aswell and rely on whatever tf windows supplies which i dont trust ffs
2026-02-23 18:17:40 +01:00
alufolie91
a9a0d4bed8
fix compiler warnings for glibc 2.43 and newer
...
this version changed so that many standard functions now propagate the constness of its input pointers
to not cause warnings for everyone on older versions this is now a really dumb macro lol
2026-02-23 17:58:53 +01:00
alufolie91
355c78e075
check for _GNU_SOURCE for nongnu_strcasestr
...
idk we dont need it and it throws warnings on new glibc so i dont want it tbh
2026-02-23 17:58:50 +01:00
alufolie91
4623f8aff2
explicitly set "std=gnu17"
...
we *rely* on a bunch of gnu extensions so its better to explicitly set this
yes in theory we fully comply with c23/gnu23 and saturn compiles fine under that, but since its still fairly new theres alot of maschines that still dont support it :chaosleep:
2026-02-23 17:58:36 +01:00
indev
1265bbba2e
Rename I_LockMutex back into I_lock_mutex for now
2026-02-23 19:14:14 +03:00
alufolie91
fdccf868cc
disable player fade if viewplayer is spectator
...
fixes some wonky stuff like players disappearing when they were close to the invisible spectator player and you werent watching someone else
2026-02-23 17:09:32 +01:00
alufolie91
3204b5c3b4
Merge branch 'Saturn-Next' into netstuff
2026-02-23 17:02:32 +01:00
alufolie91
cd02242a01
fix splitscreen clients being unable to join saturn servers
...
lmao oops idk dumb copy paste sry
2026-02-23 17:02:13 +01:00
alufolie91
e35dc9e097
fix g_in_exiting_signal_handler
...
every "flag" set by signal handlers must be of type "volatile sig_atomic_t"
everything else may fail to be correctly set, read or get optimized away which rendered this basically useless
2026-02-23 16:20:48 +01:00
alufolie91
f4dc161831
dont let SIGINT/SIGTERM do work in signal handler take 2
...
the earlier approach still raised the default signal within this, which basically just skipped everything and ended up NOT calling I_Quit at all
Basically this is to ensure we dont call I_Quit at all from a signal handler as it is NOT async safe and can cause serious issues like deadlocks and such, instead SIGINT and SIGTERM will just signal the main loop/thread to safely call I_Quit instead
2026-02-23 16:01:14 +01:00
alufolie91
1d6c27baca
lua_pushlstring: prefer luaS_newlstr over luaS_new
...
the latter calls strlen which is not needed as the empty string has no length
2026-02-22 14:01:27 +01:00
alufolie91
009df228d6
fix memory leak when fetching masterserver rules
...
strdup returns a malloc´d string!
2026-02-22 13:33:57 +01:00
alufolie91
7746e494cf
fix memory leak within http masterserver handling
...
errbuf gets malloc´d!
2026-02-22 13:33:54 +01:00
alufolie91
90a88983f1
k_hud: make the hud offset vars static
2026-02-22 13:33:49 +01:00
alufolie91
22a4fe63db
Fix minimap angle display colour for skins that use non default startcolor
...
i.e. they use a different colour than "green" to remap their skincolor on
2026-02-22 13:33:46 +01:00
Alug
d77508f481
init superactions global
...
was missed before
2026-02-16 19:27:56 +01:00
Alug
53321d33d5
mark some nightsmode stuff with likely/unlikely i missed
...
and in some cases move around the conditionals
i love backwards compat Zzz....
2026-02-16 19:27:52 +01:00
Alug
5c28f6afd8
Revert "fix new compiler warnings from new gcc version"
...
This reverts commit d49001143f .
2026-02-16 19:04:51 +01:00
Alug
d49001143f
fix new compiler warnings from new gcc version
...
just throw const at everything :blobthumbsup:
2026-02-11 17:48:16 +01:00
Alug
513e5a7e3f
remove even more dead code lol
2026-02-10 16:38:37 +01:00
Alug
6f75fab7ff
move gamepad led ticker after render logic
...
this does not really matter but save a tiny little amount of time before rendering a frame
2026-02-09 19:41:45 +01:00
Alug
38fc6d6ba1
remove screen texture toggle from accessability menu + new tooltip
2026-02-09 16:09:26 +01:00
Alug
02f2464a00
HWR_CreateBlendedTexture: init a bunch of stuff
2026-02-08 23:13:16 +01:00
Alug
c84724da37
make lumpnumcache case sensitive + optimize + replace quickncase hash with FNV1a
...
lumpnumcache can be case sensitive W_CheckNumForName should also look for uppercase stuff and W_LumpExists is case sensitive anyways
this avoids having to always account for case (toupper/tolower) during hash and string comparisons and even allows us to even directly compare our strings instead of using fastcmp (std::strings allow this!)
from some benchmarking externally this makes this faster quite a bit
2026-02-08 20:35:08 +01:00
Alug
86b286fb0b
fix few more cases of using potentially uninitialized garbage
2026-02-06 20:06:56 +01:00
Alug
ecef8913b1
remove some more dead code
...
as reported by clang-tidy
2026-02-06 17:06:33 +01:00
Alug
277b202020
hooklib: init all the hook states
...
idk i aint trusting any of this lul
2026-02-06 17:06:04 +01:00
Alug
6ba97bc43c
only do the anim texture maths if we need it
...
idk why but this showed up during profiling
best would be just to redo the whole system since it sucks lol
2026-02-05 23:31:19 +01:00
Alug
0fbde146a9
remove some unused fields from precipmobj_t
...
we do not have animating precip nor do we cast it to mobj_t anymore, so we can just get rid of this stuff
reducing the struct size by 16bytes wowie
2026-02-05 20:07:44 +01:00
Alug
16e0c6f0f6
dont constantly fetch lookback joyaxis in p_ticker if replay recording is enabled
...
minuscule optimization lul
2026-02-05 20:07:41 +01:00
Alug
8cab07a4b2
add missing "ifdef LOGMESSAGES"
2026-02-03 15:59:53 +01:00
Alug
55c8546d68
do not use Zone Memory for masterserver rules
...
this gets called from within non main threads!
zone memory is not thread safe!
2026-02-02 17:27:23 +01:00
Alug
1762f18116
delet all the Z_Free checks
...
Z_Free already checks its input internally!
2026-02-02 16:12:38 +01:00
Alug
e4dbf1ce11
plug a potential memory leak in M_SaveConfig
2026-02-02 16:11:57 +01:00
Alug
10b9d96259
hw_clip: replace "RoundToInt" with lrint
...
prefer to use standard lib functions if possible
lrint does the same thing (well ofc as long as no one touches the rounding direction löl) and is even quite a lot faster (though this is negligible in this case)
2026-02-02 16:11:54 +01:00
indev
b23154fd93
Prevent replays menu scoll bar from disappearing
2026-02-02 02:28:33 +03:00
Alug
b0ee972178
r_plane: fix visplane hashing overflowing
...
shift into "int" to prevent super large values during multiply
2026-02-01 20:52:48 +01:00
Alug
544e1d3b21
"fix" overflow in R_InitViewMapping with high resolutions
2026-02-01 17:07:18 +01:00
Alug
0ca6947f99
fix a few type issues
2026-02-01 16:27:25 +01:00
indev
3122c08039
Add focus options for gamepad led and rumble
2026-02-01 02:49:03 +03:00
indev
7a279a6fd9
Prefix autoaccel cvars with 'kart' to avoid conflict with hostmod
2026-01-28 19:19:02 +03:00
Alug
00bc8bc149
limit addon only stuff to server info screen
...
quite honestly everything else is awful and i dont want to bother with it
2026-01-27 18:23:51 +01:00
Alug
f12b55f63b
rename addonsonly variable to cl_addonsonly
...
very generic name so add the prefix for whatever cl means
2026-01-27 18:08:12 +01:00
Alug
3e476d7658
implement allowing to load addons and gamestate only instead of joining server
...
really messy, needs some cleanup, not sure if this is good at all
2026-01-27 18:06:22 +01:00
Alug
c4581bd9a6
Only save and keep track of controller ids on SDL versions 2.32.4 and up
...
Older versions break and have unstable ids on Windows, cant check for linux but ill just add a version check at this point
This was part of updating sdl with v9, which got reverted due to other issues but this was not reverted oopsie
2026-01-24 18:20:54 +01:00
Alug
bb47b976a7
software: fix drawseg xrange item coord type being too small
...
both sprite and drawseg coords are int32
might fix some clipping issues
2026-01-23 18:33:11 +01:00
Alug
6c419ff22e
fix few more implicit double/float conversions
2026-01-23 18:33:08 +01:00
Alug
522904527f
add missing HAVE_CURL
2026-01-23 10:08:35 +01:00
Alug
30539371c2
more cmake stuffs
...
-add LTO option, enabled by default
-set optimization level to O3 and O0 for debug builds
-add ASAN and UBSAN options
-always compile with gnu debug symbols
2026-01-22 14:46:12 +01:00
Alug
e2ecc315b4
cmake: attempt to fix dedicated build uhh building
2026-01-22 14:44:47 +01:00
Alug
eb2f186205
Merge pull request #221 from P-AS/morecmakefixes
...
CMake fixes cherry-picked from srb2-legacy
2026-01-22 14:43:38 +01:00
Alug
bbf06b3376
add "vid.udup" same as vid.dup but not scaled with "highreshudscale"
2026-01-22 14:26:24 +01:00
Alug
a1f70b0b31
opengl: attempt to scale vhs effect "fuzzyness"
...
this makes it appear more or less the same in all resolutions, similar to software, while also improving performance quite a bit on higher resolutions
2026-01-22 14:26:23 +01:00
Alug
2e0f5c02a4
opengl: make vhs effect bars be affected by "fuzzines"
...
makes stuff slightly slower, but matches the software effect
2026-01-22 14:25:57 +01:00
Alug
0f7001ef5c
opengl: tiny optimiazation for vhs effect
...
dont call rand within the loop, use xorshift instead
while not massive, we dont need to call rand thousands of times, the xorshift is visually indistinguishable
this is still rather slow due to the crapton of draw calls and should best be replaced by a shader or something
2026-01-22 14:25:54 +01:00
PAS
4600da5782
restore SRB2_SDL2_EXE_NAME
2026-01-21 15:54:32 -05:00
indev
a3557fadef
P_PlayRinglossSound from lua might desynch so print warning about that
2026-01-21 23:38:41 +03:00
Alug
d9a67faf47
fix windoze compile
2026-01-21 21:11:52 +01:00
PAS
96eaf8850e
Add path suffix for libgme cmake module
2026-01-21 15:01:51 -05:00
PAS
e7efd46419
Fix FindGME pkg-config command, update LibFindMacros.cmake
2026-01-21 15:01:33 -05:00
PAS
346b1456cd
CMake: Fix FindOPENMPT
2026-01-21 14:59:01 -05:00
PAS
9f5a5a735b
Allow changing Cpak generator (from upstream)
2026-01-21 14:58:32 -05:00
PAS
8e4b304bed
CMake: don't configure before CPACK_PACKAGE_DESCRIPTION_SUMMARY is set
2026-01-21 14:51:17 -05:00
Alug
6cbb8a36cf
Merge branch 'Saturn-Next' into netstuff
2026-01-21 20:48:47 +01:00
Alug
7dbb08315c
fix cmake
2026-01-21 20:48:04 +01:00
Alug
b1ff1bb531
Merge branch 'Saturn-Next' into optimizewadlumps
2026-01-21 20:47:44 +01:00
Alug
8eaf4a73f4
Merge branch 'Saturn-Next' into optimizewadlumps
2026-01-21 20:46:55 +01:00
Alug
607fbc54fc
Merge pull request #220 from Indev450/fixcmake2
...
Fixup CMake, but simpler
2026-01-21 20:45:24 +01:00
Alug
276cf0a8cb
fix string.c include
...
whoops, not sure why that was even done like that
string.c will include strcasestr.c and SRB2_HAVE_STRLCPY will ensure eitherways we dont use the included strlcpy stuff
2026-01-21 20:04:19 +01:00
Alug
59c9af97c2
joy_open: make debug prints actually print the player number
2026-01-21 19:54:03 +01:00
Alug
4e75d99026
simplify LUA_Alloc
...
Z_Realloc already handles everything internally, no need to manually free anything
2026-01-21 19:49:55 +01:00
Alug
8e91c16e97
cmake: enable gnu extensions
...
we rely on some of them like the cleanup macro
dont want those breaking or smth
2026-01-21 19:34:44 +01:00
Alug
186421fe85
cmake: link with peethread
2026-01-21 19:23:36 +01:00
Alug
af952870c3
fix fbo oopsie
2026-01-21 19:22:40 +01:00
Alug
4eeb0b4b20
update readme to reflect this
2026-01-21 19:16:05 +01:00
Alug
cb2c65e9d9
more cmake fixups
...
- skip asset install for linux
- pass fwrapv flag
- fix asset hash stuff
- pass rdynamic flag
- add saturn specific stuff, saturnpak, saturnjoin, libbacktrace and fix screen fbo stuff
2026-01-21 19:09:50 +01:00
cobalt2727
f7bbde3982
fix ARM builds being completely broken
...
If merged, this is the quickest approach to resolve https://github.com/STJr/SRB2/issues/513
...alternatively, we could just remove the option altogether but I don't have the time right now to test whether it's needed or not
To the best of my knowledge, this covers all possible amd64 `CMAKE_SYSTEM_PROCESSOR` values based on what I'm seeing at https://stackoverflow.com/questions/70475665/what-are-the-possible-values-of-cmake-system-processor
2026-01-21 18:24:53 +01:00
Alug
c9fc3b4820
fixup cmake for macos
...
mostly based on the patch from https://github.com/Bijman/srb2bld
with some changes from https://github.com/Indev450/SRB2Kart-Saturn/pull/216
but doesent completely replace the build system with what blan has
compiles fine on nix, but needs testing on mac
2026-01-21 18:23:21 +01:00
Alug
f5195dd137
Merge branch 'crashissuereports' into Saturn-Next
2026-01-20 17:32:30 +01:00
Alug
5289f13891
Show report issue button also on I_Error
...
also make wrapper functions for everything, to reduce code dupe
2026-01-20 17:32:22 +01:00
Alug
073b35690b
dont attempt to show sdl message box on non dedicated builds running as dedicated
2026-01-20 17:32:19 +01:00
Alug
43d3ac102d
HWR_RenderPlane: cleanup code that does nothing
2026-01-20 15:42:37 +01:00
Alug
aa96f9ceb3
V_DrawVhsEffect: fix scaling with highreshudscale, fix downwards bar going out of screen bounds
...
this shouldnt account for highreshudscale at all
on very high resolutions the bars are still only half size, but atleast they dont become minuscule or just dont draw at all
also ensures both bars are clamped, on some resolutions sometimes they just go out of visible screen range
2026-01-20 14:57:18 +01:00
Alug
104b8260fb
add reducevfx to accesability menu
...
If there are things that should be handled by that toggle def feel free to suggest them!
2026-01-19 14:35:10 +01:00
Alug
edebc728ef
remove unused stuff from joyinfo
2026-01-18 19:00:05 +01:00
Alug
08e7ce3b5b
m_menu: clean up the skin display stuff a little
2026-01-16 13:27:20 +01:00
Alug
29f187b751
fix some windoze specific "-Wzero-as-null-pointer-constant" warnings
2026-01-16 12:53:34 +01:00
indev
ac3a1ad5eb
Add gcc 13.3 into list of supported versions
2026-01-16 12:02:21 +03:00
indev
1b8d7b1541
I_Error when dedi tries to go to main error
...
This will not fix the issue entirely but will at least prevent server
getting stuck and backtrace will show where did it try to go into menu from
2026-01-16 11:11:36 +03:00
Alug
b812d61da2
Merge branch 'crashissuereports' into Saturn-Next
2026-01-14 12:58:44 +01:00
indev
6fd64383d3
This isn't ceepeepee rn :SmolBuncle:
2026-01-12 22:33:30 +03:00
Alug
e984e7a6c8
Merge branch 'menumodels' into Saturn-Next
2026-01-12 19:13:21 +01:00
Alug
96f90ff9c4
push back models even further
...
bigger models still had parts being culled, hope this is generous enough idk
2026-01-12 19:13:17 +01:00
Alug
51aec0e012
Merge branch 'menumodels' into Saturn-Next
2026-01-12 18:40:38 +01:00
Alug
faadd3e89f
support the uhhh localskin setup with 3d models
2026-01-12 18:40:00 +01:00
Alug
0c091256f4
tiny cleanup + warning fix
2026-01-12 18:30:11 +01:00
indev
7a0fb01626
Make glOrtho remap coordinates to vid.width and vid.height, this makes calculating coordinates in HWR_Draw2DModel easier
2026-01-12 18:30:08 +01:00
Alug
c01818e2e3
simplify skinnum bounds check
...
lul
2026-01-12 18:30:06 +01:00
Alug
e17a8a505c
fix the culling issues
...
i hope this is right.......
2026-01-12 18:30:03 +01:00
indev
ab654deba7
Make HWR_Draw2DModel not depend on resolution, make 3d skin select use skinselectspin cvar
2026-01-12 18:29:58 +01:00
Alug
b145d7fd0e
WIP: show 3d models in player setup
...
this is incredibly ugly and hacked together
theres some weird culling issues and shit doesent really "scale" with different resolutions which needs to be fixed
but it kinda works
2026-01-12 18:29:55 +01:00
Alug
264c9e38ad
d_netfil: dont use zone memory in CURLGetFile
2026-01-11 19:46:46 +01:00
indev
e88773da4e
How did i miss the =
2026-01-11 13:08:23 +03:00
indev
310f67a06c
Fix smol mistake in strcasestr
2026-01-11 03:49:07 +03:00
indev
0914d5b8e2
-Wzero-as-null-pointer-constant is valid for c only since GCC 15.2 (from what i see)
2026-01-11 00:49:48 +03:00
Gustaf Alhäll
bf1aa47854
Simplify textcmd handling
2026-01-09 20:53:15 +01:00
Alug
291a4dbb25
disable midnight channel border flicker with "reducevfx"
2026-01-09 13:01:30 +01:00
Alug
8fe3d13935
fix InitColorLUT
2026-01-09 11:08:22 +01:00
Alug
bdc326b14e
leveltime be tic_t
...
:chaosleep:
2026-01-08 00:43:43 +01:00
Alug
d938e38ad3
Acessability: add basic "reducevfx" toggle to disable/reduce certain effects
...
toggles certain effects, which may be troublesome to some players
-disabled hyudoro flashing, instead makes player translucent
- Makes rainbow colour effects, such as invul, change colours very slowly
- Disables underwater and heatwave screen effects
- Disables palette flashing
- Disables vhs effect
not the most pretty implementation, but im lazy and this works
feel free to suggest more things
2026-01-08 00:40:24 +01:00
Alug
3d4772455b
K_SpawnSparkleTrail: check for blend effect apply outside the loop
...
tiny optimization
2026-01-08 00:40:24 +01:00
Alug
e1f0089627
enable "Wzero-as-null-pointer-constant", fix cases of it
...
prevent ambiguity
shoutout blankart for making me aware this exists
2026-01-08 00:40:24 +01:00
Alug
be423b2910
Merge branch 'Saturn-Next' into netstuff
2026-01-08 00:34:19 +01:00
Alug
3bf3bdf641
enable "Wzero-as-null-pointer-constant", fix cases of it
...
prevent ambiguity and bad practices, i like expressive and "correct" code
shoutout blankart for making me aware this exists
2026-01-08 00:34:15 +01:00
Alug
e923777eb6
Acessability: add basic "reducevfx" toggle to disable/reduce certain effects
...
toggles certain effects, which may be troublesome to some players
-disabled hyudoro flashing, instead makes player translucent
- Makes rainbow colour effects, such as invul, change colours very slowly
- Disables underwater and heatwave screen effects
- Disables palette flashing
- Disables vhs effect
not the most pretty implementation, but im lazy and this works
feel free to suggest more things
2026-01-08 00:33:53 +01:00
Alug
cf6eb0010e
K_SpawnSparkleTrail: check for blend effect apply outside the loop
...
tiny optimization
2026-01-08 00:33:50 +01:00
Alug
5184115216
enable "Wzero-as-null-pointer-constant", fix cases of it
...
prevent ambiguity and bad practices, i like expressive and "correct" code
shoutout blankart for making me aware this exists
2026-01-08 00:33:43 +01:00
Alug
edbebbf082
fix wrong type for K_DriftSparkColor
...
all the colour stuff is still a bit of a mess, but generally its handled as an uint8
2026-01-02 18:34:13 +01:00
Alug
242dee499d
initialize more globals that have been missed
2026-01-02 18:34:10 +01:00
Alug
39a46e8f79
Revert "Remove tic provision (vanilla compat edition)"
...
This reverts commit 4a3c9ccfbb .
2025-12-30 01:09:14 +01:00
Alug
a2de1e24c5
d_cliserv: fix casts from nan to int type
...
in few cases the files totalsize might be 0, which results in a nan, casting that to int type is undefined behavior
2025-12-28 17:46:44 +01:00
Alug
c0cce90e60
properly handle getcwd error in IdentifyVersion
...
if getcwd fails, the buffer contents will be undefined
so we shall just overwrite it again with "."
2025-12-27 15:34:26 +01:00
Alug
d9712cf85e
Merge branch 'Saturn-Next' into netstuff
2025-12-27 15:13:50 +01:00
Alug
9ccd62b5cb
Merge branch 'Saturn-Next' into optimizewadlumps
2025-12-27 15:13:42 +01:00
Alug
67e74b5874
fix w_wad oopsie
2025-12-27 15:13:20 +01:00
Alug
9639ace28a
fix dedicated server build warnings
2025-12-27 15:07:13 +01:00
Alug
a2616778cc
fix another -Wnull-dereference warning
2025-12-27 15:06:50 +01:00
Alug
0691e2d9e2
Merge branch 'Saturn-Next' into netstuff
2025-12-27 13:40:19 +01:00
Alug
495c34dd40
fix gcc version detection fallback stuff
...
latest_gcc_version should always just be X.x not X.x.x
this broke some warning flags for me
2025-12-27 13:02:30 +01:00
Alug
f38ca9aa28
Signal Handler: Add button to report issues to github
...
mostly based on what srb2 does with some stuff from srb2-legacy
the button will attempt to open the issue page on the saturn git when a crash occurs
2025-12-27 12:41:41 +01:00
Alug
8e67e0bace
Merge branch 'Saturn-Next' into optimizewadlumps
2025-12-27 10:53:10 +01:00
Alug
b0bf588c27
fix some null pointer dereferences
...
and enable -Wnull-dereference by default
2025-12-27 10:52:21 +01:00
Alug
35e4f35f6e
fix some shadowed variables, enable -Wshadow by default
2025-12-27 10:32:16 +01:00
LJ Sonic
7866b769cc
Do not archive table values for nil keys
2025-12-27 00:00:39 +01:00
Alug
1af1e42dab
FBO: remove nvidia xwayland hack
...
this has been a non issue since a while now, so can remove this (we shouldnt work around driver bugs anyways)
2025-12-26 23:20:42 +01:00
Alug
40bd3e5e19
simplify opengl vsync set
2025-12-26 23:20:39 +01:00
Alug
25dd3b4976
Revert "Fix static memory being re-tagged as purgable"
...
This reverts commit c544cf9a7c .
2025-12-26 21:44:58 +01:00
PAS
08864e27b2
Fix double byte-swap in SV_MakeTic
2025-12-26 21:44:39 +01:00
Alug
4a3c9ccfbb
Remove tic provision (vanilla compat edition)
...
based on https://codeberg.org/srb2classic/srb2classic/commit/7cf14fbe740998c3246dd190904f49a236b2ccec
seems to get rid of some jitter in localhost
2025-12-26 21:44:37 +01:00
Alug
cedd789a27
Merge branch 'Saturn-Next' into netstuff
2025-12-26 21:44:34 +01:00
Alug
0fe3086a5a
Fixup the doomednum lookup
...
properly match the old linear lookup by returning the FIRST match for doomednum
also shrinks the array, doomednum max is 4095, no need for such massive array, also fixed a off by
should fix some join desynchs and desynchs on certain maps
2025-12-26 18:58:41 +01:00
Alug
c9afd4a2cd
G_GetDemoDate: make safer and use static memory
...
bunch of smaller issues before, no real checks for strltol and potential free on a null pointer lul
also skips replays with shorter than 10 char names and handles errors better
2025-12-24 00:06:17 +01:00
indev
7518a6f181
Revert "Sort directories too in replay list"
...
This reverts commit 7c848f4be5 .
2025-12-24 01:36:02 +03:00
indev
2bf4c44259
Revert "Actually add filepath to directories to sort them"
...
This reverts commit 1c95e5f40e .
2025-12-24 01:36:00 +03:00
indev
1c95e5f40e
Actually add filepath to directories to sort them
2025-12-24 01:23:20 +03:00
indev
7c848f4be5
Sort directories too in replay list
2025-12-24 00:54:39 +03:00
Alug
a4af254643
Revert "dont call I_Quit from within "quit_handler", let it signal main loop to quit"
...
This reverts commit a2feaa7fde .
2025-12-22 20:16:04 +01:00
Alug
860dc37fe4
Optimize: move a few strlen calls out of loops
...
when applicable and the input does not get modified within the loop
needs some testing incase i oversaw something
2025-12-18 19:13:47 +01:00
Alug
8b3d55fbc8
HWR_ProcessSeg: port softwares code to skip rendering inner sides that are "joined" to other fofs
...
This seems to improve performance on maps with moderate to lots of fofs quite a bit.
On maps with only a few fofs, this makes no difference or has very very little regression
Need to test and check if there are any visual errors, but so far everything seems good
2025-12-18 19:11:37 +01:00
Alug
0540b5656a
OpenGL: keep around our drawnodes memory
...
no need to constantly reallocate new memory
we dont have renderer switch, and the next level will render drawnodes anyways
those wont grow super big also, so theres no big worry about wasting tons of memory
yes i like ceepeepee vectors, how can you tell
2025-12-18 19:11:26 +01:00
Alug
6c98440f27
Remove pure attribute from fasticmp
...
While i assume this to be fine currently, i quite frankly dont trust the srb2 codebase enough aswell as preventing any future issues if there should ever be need to switch locales, since toupper WILL change behaviour in such cases which does not qualify as pure
2025-12-16 17:52:13 +01:00
indev
3828a9f8e0
Add flipcammode toggle for using local flipcam settings instead of player flags
2025-12-11 22:58:45 +03:00
Alug
2c7c9ec32a
fastcmp.h: mark fastcmp functions as pure
...
this might let the compiler optimize aways subsequent calls in some cases
strcmp etc from glibc also does it
prayin nothin changes the locale at runtime lmao
2025-12-11 20:28:31 +01:00
indev
1ccd3e37bc
Init playerinfo[i].node to 255 so if playerinfo packet gets lost, server join screen doesn't display empty player names
2025-12-11 21:37:31 +03:00
Alug
6ad344f65d
findfile: let files added with "-file" look in addon/downloads folders first
...
due to https://github.com/Indev450/SRB2Kart-Saturn/commit/956fc099adcd7f33993c43c8ee3aea64df3fe9b4
IWADS shouldnt use findfile anymore
If there should be such case we can always expose the startupiwad count to check if were currently searching for iwads iirc
2025-12-11 18:19:21 +01:00
indev
1c289d73ca
Oopsie
2025-12-11 17:54:03 +03:00
indev
44ba69cf53
Move lite steer and turn smoothing cvars into individual player controls menu
2025-12-11 17:35:35 +03:00
indev
4cea0c1414
Add autoaccel into accessibility menu
2025-12-11 16:43:59 +03:00
Alug
4ee468f5c6
Accessability: Add "Auto Acceleration" feature
...
ported from hostmod
2025-12-11 14:27:09 +01:00
Alug
9a58eb3010
G_BuildLocalTiccmd: remove "moveinput" variable
...
checking both cmd->buttons aswell as cmd->driftturn already handles those cases
2025-12-11 14:27:06 +01:00
Alug
59ff5e61bf
Revert "Fix use-after-free when mobj is removed while still playing sounds"
...
This reverts commit 3bdc745bd1 .
2025-12-10 19:13:07 +01:00
Alug
821c061f82
Optimize: Use doomednum lookup also when (re)spawning mapthings
...
not just for loading savegame thinkers
Actually even provides slight runtime performance improvement, but mostly makes levelload faster
2025-12-10 18:22:34 +01:00
Alug
fd2c208612
Merge branch 'Saturn-Next' into optimizewadlumps
2025-12-09 18:07:15 +01:00
Alug
8f91707164
Merge branch 'Saturn-Next' into netstuff
2025-12-09 18:07:06 +01:00
Alug
37eba186f5
netcode: replace some stuff with memsets + add a little bounds safety in some places
2025-12-09 18:07:02 +01:00
Gustaf Alhäll
eb4d9bbdd5
Fix decompression warning when starting a server
2025-12-09 17:57:02 +01:00
Alug
c19c80d797
command.c: fix "alias" command crashing when no aliases were registered
...
if we dont have aliases list how do we check the next alias in the list aswell?
2025-12-07 21:08:38 +01:00
Alug
a2feaa7fde
dont call I_Quit from within "quit_handler", let it signal main loop to quit
...
fixes an issue for me which led to having the game threads getting stuck when sending an interrupt signal to the game due to some thread issues with the sdl subsystems
shoutout to dsda doom for this
2025-12-07 20:27:57 +01:00
Alug
3cb4e86b48
i_system: "fix" recursive i_quit
...
well this still aint working all to great, but atleast this allows me to quit the game if it gets stuck without having to always send a kill signal to it
copy pasted from what the dedicated build does
2025-12-07 20:24:18 +01:00
Alug
ed758fc921
g_demo: check for maplump existance directly
...
cant really rely on mapheaderinfo to tell us if some map exists or not
2025-12-07 20:23:57 +01:00
Alug
8f3b7158e3
w_wad: kill longname support
...
we dont use it for anything, we also cannot use it for anything.
Due to massive amounts of unterminated string being passed to everything
So we dont need to waste memory and resources
2025-12-07 19:04:36 +01:00
Alug
a191c8b71e
g_demo: screw you LF2_EXISTSHACK
2025-12-07 19:04:21 +01:00
Gustaf Alhäll
3f2e0bd349
Fix memory leak in AATree string trees
2025-12-06 19:40:54 +01:00
Gustaf Alhäll
3bdc745bd1
Fix use-after-free when mobj is removed while still playing sounds
2025-12-06 19:40:49 +01:00
Alug
f578781418
put "string.c" earliest in sourcefile
...
otherwise Windows is unable to find nongnu_strcasestr
2025-12-06 15:45:45 +01:00
indev
0bb63ee0af
Use size_t there
2025-12-06 17:34:05 +03:00
Alug
2ae9563ab3
Menu: fix camera options from within accessability options returning to the main menu
...
really wonky setup, but some other menus do similar things...
2025-12-05 19:13:01 +01:00
indev
6b429e4388
Add locatelump command
2025-12-05 20:35:48 +03:00
Alug
0321b0d94a
m_menu: do some cleanup - replay drawers
2025-12-05 17:29:49 +01:00
Alug
ac57b7fd2d
Menu: show stats for current skin in Time Attack menu
...
+ some cleanup
2025-12-05 17:29:46 +01:00
Alug
7013e63142
Menus: dont advertise encore toggle if its not unlocked yet!
...
this wont do anything anyways besides telling you you havent unlocked it yet
so can just hide it
2025-12-05 17:29:43 +01:00
Alug
b76ce836a0
w_wad: optimize W_LumpExists
...
in two parts:
- Use our lumpcache lookup first (our unordered map), BUT since it is case insensitive we extract our lump out of it to do another case sensitive name compare
- In the manual lump seach falltthrough case, we can also check against the string lenghts and hash (its case insensitive but will still reject differing names, same with stringlenght)
this improves the performance of the leaderboard map browser quite a bit and everything else using v.patchExists
2025-12-05 16:06:13 +01:00
Alug
4e1ef7c0cd
Revert "remove the wonky double tap input for controllers"
...
This reverts commit 9e2fd091a8 .
causes some wonky issues still, will need to look into it more, but for now revert
2025-12-05 15:11:51 +01:00
Alug
fd1e415731
w_wad: use unordered map to cache wad start and end folders
2025-12-05 14:59:55 +01:00
Alug
41c887f2bf
w_wad: comment out fullname lump hash for now
...
its unused and not particulary useful eitherway, save us a few hash generates and a struct field lul
2025-12-05 14:59:51 +01:00
Alug
8091d825d5
w_wad: use our lump fullnamelenght in W_CheckNumForFolderStartPK3
2025-12-05 14:59:47 +01:00
Alug
699113fb25
w_wad: replace lumpnumcache with unordered_map hash lookup
...
needs testing if actually better
but the old lumpnumcache was basically useless due to being incredibly small
even just booting up the game we have around 1000 entries already
this hopefully should still be faster than potentially going through ALL lumps in ALL wads we have loaded to find the lumpnums
not sure if longnames should get any special handling like before, but i dont think it really matters if theyre long honestly
thanks ceepeepeereference for the basis of this
2025-12-05 14:59:39 +01:00
Alug
3996abef36
convert w_wad to ceepeepee
...
prep for smth i might try
2025-12-05 14:59:36 +01:00
Alug
892f2253ea
p_spec: remove hardcoded animdefs table
...
srb2.srb includes an ANIMDEFS file which WILL override this anyways and includes any of these.
so no need to complicate the code with this
2025-12-05 14:58:19 +01:00
Alug
bebe62346f
fix Flat loading code passing non null terminated strings to W_CheckNumForName
2025-12-05 14:58:15 +01:00
indev
834a94e429
Ok i guess we still need old_z2 :ChonkBunckle:
2025-12-05 03:10:41 +03:00
indev
fcf833ff48
Move ghost mobj old_x2 hack into P_SpawnGhostMobj to cover all cases where it would matter
...
ty lug <3
2025-12-05 03:10:41 +03:00
indev
f2a27539d3
Experimental: remove mobj->old_x2, old_y2, etc fields
2025-12-05 03:10:41 +03:00
Alug
05d26654df
p_user: do some tiny cleanups
2025-12-05 01:07:18 +01:00
Alug
cee6a27340
mark debugfile with UNLIKELY
...
this is for debug, and esp network debug which barely anyone ever needs, so can tell compiler better branch hint
2025-12-05 01:07:14 +01:00
Alug
66e35a9d67
k_kart: slightly cleanup driftrelease code
2025-12-05 00:29:31 +01:00
indev
ad096ccd42
Update LUASTUFF.md
2025-12-04 19:21:30 +03:00
Alug
7a9e81828a
forgot to remove this oops
2025-12-04 15:41:20 +01:00
Alug
71e7dacb56
r_opengl: dont set directional light model shader uniforms if we dont use them
2025-12-04 01:26:43 +01:00
Alug
f9c0ee865f
make those ternaries a little prettier lul
2025-12-04 01:23:42 +01:00
Alug
154eaaf027
hw_main: cleanup and simplify HWR_RenderPolyObjectPlane
2025-12-04 01:23:39 +01:00
Alug
66f5f9b2a2
hw_main: handle implicit float conversion cases explicitly
2025-12-04 01:23:36 +01:00
Alug
b27275b887
hw_batching: fix typo in non shader polygon comparitor
...
checked poly1 against poly1 sky
2025-12-03 18:15:30 +01:00
indev
c81c2c1d8d
Add option to show current song credits in pause menu
2025-12-03 15:47:38 +03:00
Alug
7eb2ad1e35
slightly cleanup SV_AddWaitingPlayers
2025-12-02 23:23:41 +01:00
Alug
f49e57a38c
d_cliserv: Cleanup PT_ClientJoin
...
move refuse message handling into its own function
2025-12-02 23:23:38 +01:00
Alug
265f4a50ef
readd check for node before SV_SendSaveGame
...
Apparently in some cases the server will connect to itself, in this case the server tries to send itself the savegame, leading to a crash in some cases. oops
2025-12-02 23:23:36 +01:00
Alug
e83e2659a7
reorder packets again
2025-12-02 23:23:29 +01:00
Alug
c680dd3222
fix some packet types not being correctly handled
2025-12-02 23:23:15 +01:00
Alug
96aaaf5261
merge SendNameAndColor & SendWeaponPref
...
TODO: make a bunch of player specific cvars arrays for splitscreen handling
- also cleanup some strlen usage
2025-12-02 23:23:07 +01:00
Alug
efb29e6be5
d_cliserv: do some cleanups
...
- expose SAVEGAMESIZE
- pass node number to SV_AddWaitingPlayers (saves iterating through all 128 net nodes everytime a player joins) lifted from RR
- move all packet handling to the packet handlers
- Reorder packethandling switches a little, so common/important packets get checked first
- fix wrong clamp for realfirsttic that was too early
- add nowtime division by NEWTICRATERATIO (no change unless ticrate changes)
2025-12-02 23:23:02 +01:00
indev
ccfab57a8c
Add 'time per frame' argument for hud.setVoteBackground
2025-12-02 23:59:02 +03:00
Alug
56d1343f1b
dont call CON_Drawer during frameskip, just call CON_MoveConsole instead
...
fixes the issue at hand, without making the console flicker in gifs
sigh....
2025-12-02 20:49:56 +01:00
indev
b273bc3ca8
Hide localskins menus immediately when option is changed
...
@Alug :blobhug:
2025-12-02 22:12:49 +03:00
Alug
d4f58a885b
add toggle to let console prints show in main menus
...
if you want this for some reason
2025-12-02 20:07:56 +01:00
Alug
04458f18f8
m_menu: fix splitscreen players being unable to change the names from player setup
...
smol oversight :blobcatpats:
2025-12-02 19:43:05 +01:00
indev
64152eea0d
Fix few possible multithreading bugs related to ReplayNamesLoadThread
2025-12-02 20:59:27 +03:00
indev
0e0a690e3c
Print a warning when luaL_resourcetryagain force triggers garbage collector
2025-12-02 20:39:38 +03:00
Alug
f283d3ca43
suppress wrong "-Warray-bounds" warning in G_DeviceLEDTick
...
newer gcc does this for whatever reason, its fine
splitscreen will never call this out of its bounds
2025-12-02 18:40:30 +01:00
Alug
982fff959f
blua: attempt emergency garbo collection on file io operations if they fail
...
ports of
https://github.com/lua/lua/commit/e885dee5ab4dbee2457ee2023340e848fdabdef9
and
https://github.com/lua/lua/commit/3d838f635cc81ec3332f9a904992db1c6d8a46ad
prevents massive memory leaks and other issues due to faulty lua scripts
2025-12-02 18:31:32 +01:00
Alug
b0e968e3c3
raise version number to 9.2
2025-12-02 15:54:53 +01:00
Alug
e5bbb14ce0
replayhut: fix race condition in M_ResetDemoList freeing the demolist vars
...
in rare cases this could free the data the thread is currently using
so we gotta wait for it to finish first
2025-12-02 14:59:12 +01:00
Alug
327cca2e8e
change freecam condition for awayview
...
shouldnt change the behavior much as we wont see anything without a camera, but this is explicit about what exactly is wanted (i.e. thiscam may be null, we only check due to null deref, we only care about if freecam is active)
2025-12-02 12:48:47 +01:00
Alug
e02e9a12d7
ticcmd: replace magic numbers with constants
...
names lifted from RR
2025-12-02 12:48:43 +01:00
Alug
9e2fd091a8
remove the wonky double tap input for controllers
...
finally figured out what occasionally messed up my bound controls lol
why in the world is this even a thing for controllers??
2025-12-02 00:58:18 +01:00
Alug
0a04fca634
remove mlooky, rename mousesens to mousexsens, make mouse y sensitivity not be affected by x sensitivity
...
mlooky basically just took the place of mousey, which did nothing before, but is a better name
2025-12-02 00:55:59 +01:00
Alug
8a3f793324
g_input: init some globals that were missed
2025-12-02 00:43:27 +01:00
Alug
e91892849c
dont let splitplayers 3 and 4 input gamecontrols in the menu
...
oversight lul
2025-12-02 00:43:22 +01:00
Alug
6b4e3c9d13
update saturn credits
...
phew so every line now has two names
otherwise we cannot fit everything and anyone into this anymore
this even allowed to put back the tooltip at the bottom
i still want to redo the credits completely at some point with some cool stuff though
2025-12-01 23:41:27 +01:00
indev
5f55b81fbf
Fix M_ClearMenus being called too early in map command func
2025-12-02 00:51:40 +03:00
Alug
ca68bab002
fix more cases of dangerous PU_PATCH_LOWPRIORITY
2025-12-01 22:31:20 +01:00
Alug
339eb1879e
fix the credits freeing our HUD item patches
...
goddamit i hate PU_PATCH_LOWPRIORITY
2025-12-01 22:24:42 +01:00
indev
1adb49c65c
Fix emotes being slightly offset in chat log
2025-12-02 00:02:55 +03:00
Alug
1d33a05a85
Fix some Serverbrowser issues
...
- Fix serverlist results not being properly reset, which lead to reopening/refreshing the serverlist to show the old state, selecting one of those "old" servers then lead to just connecting to nothing
- Fix the resfresh button making servers disappear if hit too often too fast (from srb2)
https://codeberg.org/srb2classic/srb2classic/commit/3acc312923da0fe5e07c0517d9bff9e8b657b1eb
2025-12-01 21:57:57 +01:00
Alug
cfcd20d44a
G_AdjustViewEx and macro for G_AdjustView
...
neppy likes it more which is fair so we do this too
2025-12-01 21:08:30 +01:00
Alug
204607e272
replays: always check if map is loaded not just in old 1.0 replays
...
cause like, otherwise it will just I_Error which is worse lol
like this we just get thrown back to titlescreen
2025-12-01 21:03:57 +01:00
Alug
b89a8ca6f9
replays: properly throw player back to titlescreen from replay error
...
fixes the game becoming stuck in limbo state if replay fails to start
2025-12-01 21:03:57 +01:00
indev
d4aa352d59
Don't try to open replay if no replays are found
2025-12-01 22:49:36 +03:00
Alug
c489841732
Fix record attack ghosts sometimes crashing
...
due to ghosts occasionally ending to early and game interpreting them as still valid uhhhhh
lets pray this wont explode or cause any weird issues......
credits to RR
REVERT THIS ONCE I GO AND FIXUP THE REPLAY MESS
2025-12-01 20:19:11 +01:00
Alug
a6a97b4c4f
add gdb_history to gitignore
2025-12-01 20:19:03 +01:00
indev
fba070f82e
Expose cameras to lua outside of hud hooks
2025-12-01 21:08:24 +03:00
Alug
10c117f95f
dont reset freecam if the player you are "supposed to be watching" specs in replays
...
this aint pretty, but im too lazy to make it pretty sincerly
2025-12-01 18:23:51 +01:00
Alug
bceda5beb4
dont force awayview when in freecam
2025-12-01 18:23:48 +01:00
Alug
c50c936b1f
remove hwr_shutdown call
...
honestly this didnt help with the issue i had, game should already release all the memory on quit anyways.
this just makes it take longer to quit
2025-11-30 20:28:46 +01:00
Alug
22a6be76b5
OpenGL: fix frustum culling not accounting for spritescales
...
also rename "this_scale" to "thing_scale" to be more descriptive
Fixes the comically large tree disappearing when it shouldnt on "Ethereal Crystal"
2025-11-30 14:47:02 +01:00
Alug
d3d25df3c5
hw_main: cleanup HWR_RenderX stuff a bit
2025-11-30 14:46:30 +01:00
Alug
2a3f9e9ee6
hw_cache:rename some stuff
...
more in line with the rest of the code
2025-11-30 14:45:37 +01:00
Alug
31f01fd5da
Revert "Provide our own SDL2 dll files"
...
This reverts commit 91530c61ad .
i hate windows, i hate sdl breaking with every single update
2025-11-30 14:37:00 +01:00
indev
bb9a4a0da0
Add listemotes command, also fix few emote warnings not printing newlines
2025-11-30 00:36:36 +03:00
Alug
3bac722562
m_menu: cleanup gamepad menu stuff a little
2025-11-29 19:13:12 +01:00
Alug
3769ab74ac
m_menu: move onchages back to m_menu, get rid of nextmap onchange hack
2025-11-29 19:07:01 +01:00
Alug
c3d6cdd272
ensure modelMatrix is initialized
2025-11-29 14:26:08 +01:00
Alug
093602fd6b
comment out unused dynslope member from levelinterpolator_t struct
...
this wont ever work with our thinkerless dynslopes
2025-11-29 14:26:05 +01:00
James R
a80d119c58
Rename strcasestr to nongnu_strcasestr, macro strcasestr ifndef _GNU_SOURCE
...
Fix for GCC C++ compiler, which always defines _GNU_SOURCE.
2025-11-28 18:23:25 +01:00
Alug
1cdc92a62b
HWR_Precache: lookup for flats that already have been precached
...
yes i used c++ unordered_set here, yes i suck with linked lists, lol
maybe speeds this process up a little
2025-11-28 18:07:21 +01:00
Alug
6b8de308b7
HWR_Precache: check against gl_numtextures not numtextures
...
in practice those should mostly be the same but the variable is for gl so
2025-11-28 16:53:12 +01:00
Alug
310e64d8be
OpenGL: add a little more checks during texture free
...
prob not necessary but feels better
2025-11-28 16:53:10 +01:00
Alug
d2d3afc7f4
software: clip sprites that are out of view
...
similar to what the frustum cull does in opengl, clips sprites that are out of view in vertical direction
2025-11-27 22:53:12 +01:00
Alug
c26d2faee9
OpenGL: fixup spherefrustum culling and use it for sprites
...
clips sprites that are out of our view, especially with precip this may lead to significant speedup in certain cases
huge thanks to indev for helping with this <3
huge thanks to dsda-doom for the maths needed!
2025-11-27 22:53:12 +01:00
Alug
1c82c338a5
sprite gzt is float in opengl render........
2025-11-27 18:57:21 +01:00
Alug
c81cd48552
R_ProjectSprite: move fakeflat clipping before light maths
...
so if applicable we have slightly less work
2025-11-27 17:43:40 +01:00
Alug
306f7d455e
tiny optimizations k_kart
2025-11-27 17:43:36 +01:00
indev
dc40befa88
Use I_GetTime for animated emotes, so anim argument in M_DrawEmote is not needed
2025-11-27 18:49:43 +03:00
Alug
2222272d6f
remove more unused/uneeded things
...
- delet hw_dll
- remove sector_t ceilspeed and floorspeed
- remove a bunch of stuff from viewvars_s
2025-11-27 16:49:50 +01:00
Alug
1849d5aade
R_ProjectSprite: make sprite clipping work with sloped fake floors/ceilings
...
from eternity engine
2025-11-27 16:49:47 +01:00
Alug
3878c2f72a
DoAddLine: add fast check for lines with same front and back sectors without middle tex
...
taken from dsda-doom
2025-11-27 16:49:44 +01:00
Alug
7cf3bceaff
HWR_Subsector: avoid calling HWR_AddSprites on already processed sectors
2025-11-27 16:49:41 +01:00
Alug
1e394b0530
pass frontsector ceiling z to R_Prep3DFloors
...
in both cases "R_Subsector" already got the frontsectors ceiling z, so no need to get it again within R_Prep3DFloors
should save some P_GetSectorCeilingZAt per frame
2025-11-27 16:49:38 +01:00
Alug
b09660204a
r_bsp: move polyobj renderside check into R_AddPolyObjects
...
uneeded within R_AddLine as outside R_AddPolyObjects this will never be called if currecnt seg is a polyseg
2025-11-27 16:49:35 +01:00
indev
7b4592377e
Make emote search case insensetive (emotes themself still are case sensetive)
2025-11-27 18:40:52 +03:00
indev
45ba69a45a
Discordify emotes a bit more :chonkbunckle:
...
- When autocompleting emote with enter, don't send it immediately
- Don't autocomplete after typing 1 character after : (allows text emotes like ":c")
2025-11-26 22:56:04 +03:00
indev
4d9c345202
Add support for emotes in console chat mode (and support for emotes in console in general)
2025-11-26 22:45:03 +03:00
Alug
0437952027
mark checkcoord as const
2025-11-26 10:09:55 +01:00
Alug
d188839d0b
move R_QuickCamDist to r_main
...
also mark it with PUREFUNC and R_QuickDist with FUNCMATH, so compiler may optimze it more agressively
2025-11-26 10:09:52 +01:00
Alug
86ac11f877
replace localangle assignments with P_ForceLocalAngle
...
just a little neater, there also was a function to force the player angle, but this most likely wouldve changed behavior
2025-11-25 22:53:30 +01:00
Alug
0f59e0e270
some mobj interp fixes
...
copy pasted from RR thx
2025-11-25 22:53:27 +01:00
Alug
cd32270ec0
. W
...
:mompie:
2025-11-25 20:25:29 +01:00
Alug
f2a7f9ccaa
fix compile with HAVE_DISCORDRPC
2025-11-25 20:21:23 +01:00
Alug
2c2ffe36d7
init a few more globals that were missed
...
i love globals that are in the middle of files.....
2025-11-25 20:15:27 +01:00
Alug
951b880acb
d_netcmd: use cleanup macro for map and localskin command
...
did Command_Map_f really leak memory all the time? lul
2025-11-25 19:19:19 +01:00
Alug
ecfa973e6b
move M_ResetDemoList hack to G_InitNew
2025-11-25 19:19:17 +01:00
Alug
749b87b4ca
bring back addon name scroll that was lost
...
oopsie
2025-11-25 17:46:58 +01:00
Alug
7f671e4e30
clean and fixup addon menu
...
Hopefully should finally fix addons not showing as loaded sometimes and other issues with warning windows being unclosable, etc
lets pray this doesent cause any issues....
add a tickroutine for menus aswell, which will be called in M_Ticker
courtesy of Ring Racers
https://gitlab.com/kart-krew-dev/ring-racers/-/commit/bc9f9d740a0262c249917a37e250ef0209185b12
https://gitlab.com/kart-krew-dev/ring-racers/-/commit/8312f12d6cae934ae8de7e46da231c311f4b4fde
https://gitlab.com/kart-krew-dev/ring-racers/-/commit/6e671d4894e56cd3af09d6e9af2635f030817361
2025-11-25 17:42:01 +01:00
indev
ee0e4836f5
Fix race condition in server list search
2025-11-25 19:06:02 +03:00
Alug
a01cd628ab
do some more cleanup when shutting down graphics system
...
make sure we free all our opengl allocated stuff by calling HWR_Shutdown
make sure we also destroy our sdl texture, renderer and window if the exist
2025-11-25 16:38:19 +01:00
Alug
4a4e668d21
delet more unused/empty sdl stuff
...
I_WaitVBL, I_BeginRead and I_EndReada
2025-11-25 16:38:16 +01:00
Alug
03c579769c
delet some duped declarations
2025-11-25 13:15:53 +01:00
Alug
2e88b6a1dd
fix portal contents being culled erroneously also in software
...
also dont rember commenting those out in gl lul
2025-11-25 02:18:23 +01:00
Alug
5265b147f5
HWR_BlendMidtextureSurface: add extra guard to check linedef alpha
2025-11-24 22:42:53 +01:00
Alug
b4a37a2fa4
fix performance regression in certain cases due to changed polygon order
...
wonky, needs testing as this may slow down other parts
2025-11-24 22:42:50 +01:00
Alug
93eb2b336d
Dedicated: dont create or destroy ANY lua hud drawlist
...
not needed at all in dedi
2025-11-24 21:32:26 +01:00
Alug
30acdca9d3
cache SRB2BACK patch on startup
...
this is used in a bunch of places while being pretty small, so just cache it on start
2025-11-24 21:26:07 +01:00
Alug
677b34c174
dont free PU_PATCH_LOWPRIORITY patches in render_none
...
also dont cache them either!
simply not needed at all
so save us a little work
2025-11-24 21:16:17 +01:00
Alug
b3be7bcedc
Player Infoscreen: if availible, display player names in their skincolor
...
we hijack the playerinfo data field for this, and pray to the kart gods this is unused on the ms
2025-11-24 18:20:00 +01:00
Alug
19c10be76b
R_QuickCamDist & R_QuickDist: turn into function and make it fixed point
...
since we mostly use it in fixed point maths, this just makes alot more sense
moving it into inline functions ensures that in C code this wont evaluate its arguments multiple times
2025-11-24 17:44:20 +01:00
Alug
60222f2f00
R_AllocateTextures: remove "reallocuser"
...
this just does... what Z_Realloc does anyways...
Z_Realloc already zeroes out the new memory it allocates
2025-11-24 17:44:16 +01:00
Alug
34edd0a2e3
some misc cleanups
...
also account for a few more double evluations from min/max macros
and save a few angle to fixed conversions in spb handling
2025-11-24 17:44:13 +01:00
Alug
46b485df14
Server Infoscreen: Show server kart speed instead of "Cheats"
...
effectively almost all servers will get flagges as having cheats enabled, so instead show the game speed
2025-11-24 16:57:50 +01:00
Alug
8d3632caca
ensure all our savebuffers are initialized
...
just some safety
2025-11-24 03:16:50 +01:00
Alug
b5ae9ba733
remove erronous P_RunDynamicSlopes call in P_PreTicker
...
we dont run preticker when we netjoin so.....
2025-11-24 01:03:44 +01:00
Alug
2a823ecd60
move K_KartPlayerHUDUpdate to k_hud
...
how tf did i miss that lul
2025-11-24 00:35:25 +01:00
Alug
940327210f
p_setup: move interpolator reset into P_FreeLevelState
2025-11-24 00:35:23 +01:00
Alug
20a08df1e1
K_PlayerEffectsShouldBlend: also apply when player has invulnerability
2025-11-24 00:30:28 +01:00
Alug
4cf27d40e9
apply additive blending to ghosts aswell when using "playerblendeffects"
...
same conditions as the others
either be in sneakerboost, or go fast enough
2025-11-24 00:28:31 +01:00
Alug
d18c9a257a
remove erronous ";"
2025-11-24 00:15:59 +01:00
Alug
65dc5bb1fd
dont free our titlescreen patches
...
ever...
Fixes a crash when you take ages on server join and timeout due to it.
2025-11-23 22:31:29 +01:00
Alug
e18be33c91
F_IntroDrawer: remove "highres" variable
...
this was ALWAYS true anyways
2025-11-23 22:02:01 +01:00
Alug
9ad6751719
make Controller Rumble strength user changable
...
range from 0.25 to 4
to account for all types of controllers and such
base 1 was set around what felt good on my dualsense, not entirely sure if this is the best baseline to go with
otherwise it could still be adjusted
2025-11-23 18:49:40 +01:00
Alug
86ab994408
G_DeviceRumbleTick: get rid of magic numbers
...
use named constants instead
2025-11-23 18:01:30 +01:00
Alug
21f0d603c3
move gamepad led and rumble tickers into g_input
...
not entirely sure why i placed them in d_main and p_tick respectively
but they should be here
thx neppy for making me question this lul
2025-11-23 17:59:51 +01:00
Alug
971513e7d3
HWR_BlendMidtextureSurface: fix major performance regression
...
big oopsie from my side
this caused textures that werent translucent to be marked with translucent in a bunch of cases, which led to them being rendered in a slower path
2025-11-23 15:47:03 +01:00
indev
03929e551f
emotes: change autocompletion behavior to work like console
2025-11-23 01:31:38 +03:00
Alug
db5ae247b6
LoadMobjThinker: revert faulty local player check
2025-11-22 21:54:54 +01:00
Alug
d46beab34e
fix signed integer overflow in polygon hash calculation
...
also gives a speedup on some maps lul
2025-11-22 21:47:45 +01:00
Alug
9a794232d7
HWR_ProcessSeg: fix cliphigh overflow
2025-11-21 19:51:00 +01:00
Alug
db635e5c5b
K_GetScreenCoords: fix signed overflow
...
why even cast that to signed......
2025-11-21 19:41:46 +01:00
indev
8a105a9679
If there is only 1 emote suggestion and user presses enter, autocomplete emote
2025-11-21 20:39:33 +03:00
indev
46b968a351
Fix autocomplete messing up emote in few cases
2025-11-21 20:34:34 +03:00
indev
a9836307b2
Allow suggesting emotes if currently typed part matches inside emote, not only at beginning
2025-11-21 20:16:19 +03:00
Alug
b6515bb0ae
fix Wimplicit-const-int-float-conversion warning
2025-11-21 15:16:39 +01:00
Alug
b8257e9037
fix memoryleak when searching for iwads
...
I_LocateWad returns mallocd memory that needs to be freed
and our home search does not need a tmp ptr
just do as we did before and sprintf it into returnwadpath
also check home directory before the hardcoded lists like before (might speed up startup a little on nix)
also cleanup iwad search in dedi builds and apply everything there aswell
2025-11-21 14:47:13 +01:00
Alug
416a2565f9
hw_batching: use polygon hash signbit to detect skywalls/horizonlines
...
in comparepolygons
gives a nice little performance bump of around 10-15fps in heavy cases
2025-11-20 17:52:14 +01:00
Alug
fa75ad4cdd
r_opengl: smol micro optimizations
...
not much, mostly just avoiding redoing things
2025-11-20 17:52:10 +01:00
Alug
cedddaadfc
r_opengl: delet byte2float lookup
...
just do direct division
no performance difference at all, but gets rid of that huge ass table
2025-11-20 17:52:07 +01:00
Alug
43ec517cdd
small fixes for gamepad indicator led stuff
...
- skincolors are uint8 type not uint16
- ensure desired colour is within skincolor range
- rename G_GetSkinColor to G_GetSkinColorForGamepad
- replace pointless array with single variable for current color in D_DeviceLEDTick
- remove pointless call to G_GetSkinColorForGamepad when hotplugging gamepads (G_SetPlayerGamepadIndicatorColor will call it itself when 0/skincolor_none is passed)
2025-11-19 23:38:29 +01:00
Alug
495ad5ce06
move this back oop
2025-11-19 22:44:38 +01:00
indev
31ce643311
Check if mobj was actually spawned before setting islocal
2025-11-19 22:07:55 +03:00
Alug
b5c1f21ac1
mark all batching variables with static
...
they are only used within this file, no need to advertise them as global
2025-11-19 18:13:32 +01:00
Alug
86c1b2cbef
simplify the vector buffer stuff
...
honestly doesent make that much sense in most cases to grow capacity * 2 (slightly misunderstood some stuff on implementation)
and in other cases dont need to manually check for resize
2025-11-19 18:12:20 +01:00
Alug
ad828b8f4b
reduce scope of some fps counter vars
2025-11-19 00:26:07 +01:00
Alug
5dda681c8a
clean up some more render float maths
...
- dont use M_PIl in double or float maths
- dont use M_PI in float maths (use M_PIf)
- use tanf instead of tan
2025-11-19 00:26:03 +01:00
Alug
92df8ffe01
remove thread.h include, use "thread_local" for everything
...
we enforce c++ 17, thread_local is a c++11 extension, so this should work everywhere
2025-11-18 22:38:37 +01:00
Alug
2ee8dc09d1
fix opengl portals (and its contents) being culled in some cases they shouldnt be
...
we do culling per our viewmatrix since a while, which wasnt properly set up for portals beforehand and used whatever was last which was then incorrectly applied to portal culling :chaobaba:
2025-11-18 22:38:32 +01:00
Alug
b8f9392efd
delet I_UpdateNoBlit
...
this didnt do anything anymore
2025-11-18 22:38:30 +01:00
Alug
99f1166eb1
p_mobj: check for common mobjs first
...
players first, then kart items, shadows and then some srb2 things that are commonly used
makes more sense to check for all of those first everywhere, so we may skip a crapton of pointless checks in many cases
2025-11-18 16:23:27 +01:00
indev
7ab8bf1bbf
Emotes: only print 'too many frames' warning if we actually get non-empty frame
2025-11-18 12:20:33 +03:00
Alug
a994d7c050
G_DoPlayDemo: fix maybe unitialized warning
...
in this case this wouldve been fine, tho variables using the cleanup macro should always be initzialized for safety
2025-11-17 21:59:21 +01:00
Alug
e46d548080
testing test
2025-11-17 20:23:58 +01:00
Alug
3a7108ecfa
Merge branch 'Saturn' into Saturn-Next
2025-11-17 20:23:23 +01:00
Alug
bcf876a4c4
Merge branch 'Saturn-Next' into Saturn
2025-11-17 17:52:31 +01:00
Alug
8ab15b73a9
raise version to 9.1
2025-11-17 17:05:19 +01:00
Alug
301d73a30e
Merge pull request #213 from Indev450/revertsdl
...
Revert SDL2 to 2.28.5 and revert SDL_Mixer to 2.0.4
2025-11-17 17:26:20 +01:00
Alug
2ef4e7fcba
Merge branch 'Saturn-Next' into revertsdl
2025-11-17 16:00:16 +01:00
Alug
7eb118920f
SOCK_Get: recvfrom returning 0 still means its not a valid packet
...
0 lenght packets means, nothing
0 is still failure, just graceful, ignore that shit, those are not "valid" packets
2025-11-17 15:57:06 +01:00
Alug
2f0588355e
remove old xcode stuff
...
apparently this does not work at all, and instead cmake can be used on macos
2025-11-17 04:56:58 +01:00
Alug
3e6830fc70
remove sdlsound, provide dummy sound instead
...
sdl sound was completely broken, so just provide a blank dummy interface instead, when compiling without sdl or mixer
2025-11-17 04:56:55 +01:00
Alug
2faf859e32
add mapicon packets to packettypename
...
so they properly show in the net debugfile
2025-11-17 04:56:15 +01:00
indev
8c31fd8a34
Allow searching for files inside luafiles
2025-11-17 03:15:23 +03:00
indev
4dd6d52550
Revert "Only skip exclude_paths if we're looking for addons (allows commands like exec find configs in luafiles)"
...
This reverts commit 8524465767 .
Right, -file exists
2025-11-17 03:14:20 +03:00
indev
8524465767
Only skip exclude_paths if we're looking for addons (allows commands like exec find configs in luafiles)
2025-11-17 03:12:00 +03:00
Alug
91530c61ad
Provide our own SDL2 dll files
...
this is plain 2.28.5 like before, but with a fix for the right ALT-GR key backported, so non US layouts can work properly
2025-11-16 22:22:14 +01:00
Alug
89f450db27
Revert "Simplify intermission timer code"
...
This reverts commit ed16c4fd9f .
2025-11-16 21:56:15 +01:00
Alug
3e212ebaad
Revert "Simplify intermission timer code"
...
This reverts commit ed16c4fd9f .
2025-11-16 21:47:21 +01:00
Alug
14af9eb82a
Revert "Merge pull request #204 from Indev450/updatesdl2again"
...
This reverts commit 38bfb58f78 , reversing
changes made to 1fa50e12a8 .
2025-11-16 21:20:31 +01:00
Alug
ed5dbf74f4
Revert "Merge pull request #206 from Indev450/updatemixer"
...
This reverts commit ca3f40ddf1 , reversing
changes made to 38bfb58f78 .
2025-11-16 21:20:26 +01:00
Alug
2bf0a24ab6
Revert "comment out directsound thing"
...
This reverts commit 37cd720dd6 .
2025-11-16 21:20:14 +01:00
Alug
88a9d6c29e
Fix dedicated server build
...
forgor about I_HandleControllerHatRepeat
fixes https://github.com/Indev450/SRB2Kart-Saturn/issues/212
2025-11-16 20:50:15 +01:00
Alug
335b7ba737
Fix dedicated server build
...
forgor about I_HandleControllerHatRepeat
fixes https://github.com/Indev450/SRB2Kart-Saturn/issues/212
2025-11-16 20:50:09 +01:00
Alug
37cd720dd6
comment out directsound thing
...
somehow this still applied on 32 bit build
2025-11-16 19:58:17 +01:00
Alug
a085abe538
remove "stun.c" from sourcefile
...
fixes linking on windoze
will need to handle this in cmake seperately!
2025-11-16 19:58:15 +01:00
Alug
57dc099641
Update README
2025-11-16 19:51:44 +01:00
Alug
84a3503262
comment out directsound thing
...
somehow this still applied on 32 bit build
2025-11-16 16:54:11 +01:00
Alug
5117bf1f85
remove "stun.c" from sourcefile
...
fixes linking on windoze
will need to handle this in cmake seperately!
2025-11-16 16:31:23 +01:00
Alug
d4a29f2a44
this aint testing anymore :3
2025-11-16 17:18:23 +01:00
Alug
6129e7c864
Merge branch 'Saturn-Next' into Saturn
2025-11-16 17:02:58 +01:00
Alug
51371dce80
delet cv_birdmusic toggle
...
stuff was from ages ago, we can just check for the feature toggles instead
2025-11-16 15:27:59 +01:00
Alug
4814088265
mixer_sound/s_sound: remove all the pointless "else"
...
+ some tiny optimizations here and there
2025-11-16 15:27:56 +01:00
Alug
2344c391d2
Renderer: port some texture skewing fixes from SRB2
...
- ffloors on the frontsector in opengl now support texture skewing like software
- alot of cleanups, simplifycation and optimizations
2025-11-16 15:27:36 +01:00
Alug
105267612b
git pls
2025-11-14 15:30:14 +01:00
Alug
69ef78b2e8
Merge branch 'fakeseed' into Saturn-Next
2025-11-14 15:29:38 +01:00
Alug
f4349988c4
smol timing related changes
...
avoid mixing integer maths AFTER casting to float types, even though its all double this may lead to wonky precision issues
I_GetPrecisePrecision now also doesent always call SDL_GetPerformanceFrequency everytime, since its return value will never change since its solely dependant on the platform
and also removing some dead code
2025-11-14 15:12:54 +01:00
Alug
1b42131c6f
remove md5 from sourcefile list
...
we handle it seperately both in make and cmake, having it here just breaks compile
2025-11-14 14:51:04 +01:00
indev
c8db86379d
Merge pull request #210 from Indev450/lua-check-local-addon
...
Automatically check if lua-spawned mobj comes from "addfilelocal addon" hook
2025-11-14 16:50:04 +03:00
Alug
40d2bf816c
Merge pull request #207 from Indev450/controllerfixes
...
Some Controller fixes
2025-11-14 14:47:27 +01:00
Alug
ca3f40ddf1
Merge pull request #206 from Indev450/updatemixer
...
Update sdl2_mixer to 2.8.1 for Windows
2025-11-14 14:47:16 +01:00
Alug
38bfb58f78
Merge pull request #204 from Indev450/updatesdl2again
...
Update SDL2 to 2.32.10 on Windows builds
2025-11-14 14:46:33 +01:00
Alug
1fa50e12a8
hw_main: some smoller optimizations
...
- use sqrtf for fade/tint alpha for shaderless light calc
- save recalcing the cosine/sine from angle on angled flats 3 times in HWR_RenderPlane
- precalc float "int32 min/max "
2025-11-14 13:31:57 +01:00
Alug
f73e616b97
fail loudly if sdl window/renderer/gl context creation fails
...
this will crash eitherways, so much rather get atleast a somewhat more informative error
2025-11-14 12:35:45 +01:00
Alug
fe0ade1d9c
fix some shadowed variables
2025-11-14 06:00:52 +01:00
Alug
1fb60e8230
fix sourcefile for src dir
2025-11-13 19:54:09 +01:00
Alug
efe7009650
PT_ReceivedGamestate: add missing SATURNPAK ifdef
2025-11-13 19:31:33 +01:00
Alug
19a4e379d7
HWR_DoWipe: always draw a black screen if it returns early
...
otherwise this just flashes like crazy should there ever be any issue here
2025-11-13 17:38:45 +01:00
Alug
4e8865d495
cleanup some wonky float/double maths
2025-11-13 17:38:43 +01:00
Alug
dfca24b370
HWR_SkyDomeVertex: tiny optimization
...
save a tiny bit of float division, use float sin and cos functions, handle implicit float conversions
2025-11-13 16:45:57 +01:00
Alug
a4c2fd2414
Merge branch 'Saturn-Next' into updatesdl2again
2025-11-12 19:22:07 +01:00
Alug
aa985823ba
speed up GL_SetPalette "take 2"
...
ensuring bytecolor is packed nd mypalettedata is initialized this seems to now work properly on windows
2025-11-12 19:20:43 +01:00
Alug
b779c9e63d
ensure byteColor_t is packed
...
make sure it is always sized 4 bytes and not padded at all since that is assumed to be the size
2025-11-12 19:04:39 +01:00
Alug
c58e54544d
initialize all remaining globals
...
well atleast all i can find lel
2025-11-12 16:49:44 +01:00
Alug
c080fc8732
GL_UpdateTexture: fix small oversight
...
from when i refactored it
GL_TEXFMT_AP_88 needs to increment the image data ptr even if chromakeyed
2025-11-11 22:39:31 +01:00
Alug
24163a7c92
Merge branch 'Saturn-Next' into controllerfixes
2025-11-11 14:53:40 +01:00
Alug
d934197246
git merge pls
2025-11-11 14:49:11 +01:00
Alug
76747b4677
git merge pls
2025-11-11 14:48:59 +01:00
Alug
5268fc2d19
Merge branch 'Saturn-Next' into fakeseed
2025-11-11 14:42:41 +01:00
Alug
bcd54110d5
only call netkeepalive between calls during gl precache
...
this caused some crashes in blankart, hopefully this is fine though
2025-11-11 14:19:11 +01:00
Alug
83d538b16a
gl_viewludsin/viewludcos is only needed for sprite billboarding
...
which is not needed with shearing
2025-11-11 14:19:08 +01:00
Alug
2a6a7e1d2b
smol optimization R_NoEncore
...
reuse secspecial for invertencore check
2025-11-11 14:19:06 +01:00
Alug
c977c4fc45
initialize most of our global variables
...
just to be safe, not really trusting the game at this point, maybe this helps with some obscure bugs or smth lel
2025-11-11 14:19:02 +01:00
Alug
87e0b55f01
fix windowmoved never resetting
2025-11-09 19:13:49 +01:00
Alug
54f5b5ebfb
enable software cyan pixel "cutting" for flats by default
2025-11-08 12:30:58 +01:00
Alug
b421893646
call NetKeepAlive during ogl precache
...
should prevent timeouts on slower systems (*cough* *cough* windoze *cough*) hopefully
thx neppy for the idea!
2025-11-07 21:28:45 +01:00
Alug
237aeb7834
use early returns for "I_Finish" stuff
...
i like that more, less checks for stuff
2025-11-07 21:28:42 +01:00
Alug
7dbd95d556
Merge pull request #208 from Indev450/deletglseg
...
Remove OpenGL adjusted "segs"
2025-11-06 21:03:38 +01:00
Alug
1e4ba39691
Merge pull request #209 from Indev450/gammastuff
...
Port RR´s gamma correction + split gamma and brightness
2025-11-06 21:02:37 +01:00
Alug
a7805ae3f0
Merge branch 'Saturn-Next' into gammastuff
2025-11-06 21:01:49 +01:00
Alug
325338bfbf
sound precache: add option to keep sounds cached but not precache them
...
ugh i suck so much at explaining
this is the default now pretty much
2025-11-06 20:41:07 +01:00
Alug
01a54e4d0b
delete remaining M_Memcpy that were missed
...
those werent there in lugstuff branch oops lel
2025-11-06 19:15:59 +01:00
Alug
e2df018e38
simplify srb2::floattofixed
...
my tired ass didnt think about just reusing shit kek
ty indev <3
2025-11-06 19:01:25 +01:00
indev
33b62cba33
Push empty string instead of null if len == 0 in lua_pushlstring
2025-11-06 20:44:29 +03:00
Alug
29b4f78b64
lib_concat: fix zero lenght string case
...
continue the loop, not return, it might just be an empty line, so returning might break some luas
0 lenght would make realloc allocate nothing at all, so just skip it
2025-11-06 18:44:36 +01:00
Alug
bce18e3d61
delet M_Memcpy
...
was just a wrapper for memcpy eitherway
so should make no difference other than avoid any confusion
figured i could just use "sed" command lel
2025-11-06 17:37:19 +01:00
Alug
e9c2b982c6
smol cleanup JoyAxis stuff & g_game
2025-11-06 17:37:15 +01:00
Alug
67e1793f49
software renderer: handle some float type related issues with slope drawers
...
there were a bunch of cases where inf and nan float results were casted and used with integer things, which is undefined in c
yes i did use ceepeepee for that crap, cause this wouldve been really annoying without templating
if someone really wants that crap to use outside ceepeepee, feel free to make a bunch of wrappers cause im too lazy for that stuff
2025-11-05 23:41:56 +01:00
Alug
80613a8a49
R_AllocClippingTables & R_AllocTextureColumnTables: fix nullptr arithmetic
2025-11-05 23:04:21 +01:00
Alug
b017a72026
R_DrawPlanes: dont increment garbage ptr
...
does not need to be there at all eitherways
2025-11-05 23:04:18 +01:00
Alug
a7c5254a32
set "-Wno-cast-qual" for clang
...
see comment
2025-11-05 23:04:15 +01:00
Alug
9dd1a47969
fix SINT8 write macro, fix big endian READUINT32 macro
2025-11-05 23:04:13 +01:00
Alug
bbbd42e653
use "offsetof" for skydome vbo offsets
...
silences UBSAN complaining about accessing struct members through null ptr
2025-11-05 23:04:10 +01:00
Alug
2b7f2da5ee
Mipmaps: fix translucent textures turning black
...
i.e. since we allow texture filtering on translucent textures now, the min filter may specifcy one of the mipmap filters, this means we NEED to call GL_GENERATE_MIPMAP and set the LODs for them, otherwise no texture will be generated
alternatively we could do a bunch of special cases for the mipmap filters, but this is simpler
2025-11-02 14:36:08 +01:00
Blue Staggo
23ba827726
Give midtextures filtering without ugly borders + Clean up padding code
...
Couldn't do proper translucent blending on midtextures because of wrapping.
2025-11-02 14:36:04 +01:00
Blue Staggo
326a28ec36
Oops, forgot to disable padding for nearest texture mode
2025-11-02 14:36:00 +01:00
Blue Staggo
19d6a1600e
Optimise padding algorithm
2025-11-02 14:35:56 +01:00
Alug
3095303a4b
Revert "simplify vhs effect interpolation"
...
This reverts commit e26fb91350 .
2025-11-02 14:35:28 +01:00
Alug
2a1807422c
Merge branch 'fastcmpstuff' into Saturn-Next
2025-11-01 23:45:22 +01:00
Alug
4676885521
fixup: replace stricmp with fasticmp
...
actually replace everything correctly
my dumbass forgor about the fast both strcmp and stricmp matter in sort stuff so we cannot use the fastcmp stuff there, which means we should not redifine stricmp as fasticmp in case something relies on that behaviour ugh
2025-11-01 23:45:06 +01:00
Alug
30cea37248
use npow2 screen textures if GL_ARB_texture_non_power_of_two is supported
...
apparently some gl drivers may use a slower path for streamed textures that only get partly updated, this tricks them into thinking this did a "full update" and resulting in using a faster renderpath
2025-11-01 23:42:35 +01:00
Alug
080d3c6b18
Merge branch 'luacvarfixes' into Saturn-Next
2025-11-01 23:38:39 +01:00
Alug
df10855483
fix oopsie that broke name change
2025-11-01 23:15:38 +01:00
Alug
dc6bf05f35
experiment: replace every strcasecmp with fasticmp
...
same as before, tho this is not twice as fast but atleast 1/3 faster
2025-11-01 23:15:26 +01:00
Alug
871545024d
experiment: replace every strcmp with fastcmp
...
did some profiling and in basically every single test fastcmp was twice as fast as strcmp
maybe this speeds up some things
2025-11-01 23:15:21 +01:00
Alug
aeb172f2ab
do some smol cleanup r_skins
...
mostly style fixes, some minor caching for some things
2025-11-01 22:35:34 +01:00
James R
ec757ceb2c
Pass const pointer to all netxcmd handlers
...
Ensure buffer data is read-only and not modified by
handler
2025-11-01 21:21:06 +01:00
Alug
e00783da82
fix stuff from merge conflict
2025-11-01 21:21:03 +01:00
toaster
52a9486974
Remove heinous pointer-sent-over-the-network hack remnants
...
This used to be used for `P_RelinkPointers()`, but was superseded by the far saner mobjnum. HOWEVER, its lingering effect was to leave `mobj->info` in an invalid state until a later `P_FinishMobjs()` was called. This is memory unsafety :D
After removing the last remnants of this ancient hack, it is now once again possible to connect to a server without crashing immediately. However, I did get a crash after a few seconds, so there is definitely still *something* nasty going on under the hood.
2025-11-01 21:20:58 +01:00
Alug
26b26b8f25
consolelib: fix some early returns not properly cleaning lua stack
2025-11-01 21:20:53 +01:00
James R
81f7335b05
Got_Luacmd: always read netxcmd data, even if command is not executed
2025-11-01 21:20:48 +01:00
Eidolon
f603106ac8
Check Lua stack before pushing cons args
...
Prevents a Lua stack overrun when executing absurd console commands for
local-only lua commands.
2025-11-01 21:20:43 +01:00
James R
5675eefeb2
Got_Luacmd: ensure lua stack is large enough for command arguments
2025-11-01 21:20:39 +01:00
Monster Iestyn
1d0fb17da4
Fixes for lib_cvRegisterVar (the Lua version of CV_RegisterVar):
...
* Make sure the consvar's properties are all initialised to zeros as defaults
* Error if the consvar is not given a name
* Error if the consvar has CV_CALL but no call function
* Error if the consvar has CV_NOINIT but not CV_CALL
2025-11-01 21:20:31 +01:00
James R
f53d37052a
Replace LUA_PushLightUserdata with LUA_PushUserdata
...
See c92378fa and a7e20f70. I didn't realize that light
userdata's metatable is shared--like numbers or strings.
So it cannot be paired with a metatable.
I also made a few minor tweaks to Lua cvars, other than
accounting for the double pointer in the userdata.
2025-11-01 21:20:22 +01:00
Alug
cae5e73d7d
LUA_RawPushUserdata
...
"Same as LUA_PushUserdata but don't set a metatable yet."
from RR
2025-11-01 21:20:17 +01:00
Alug
4fccb48d2a
fix wonky variable names
2025-11-01 20:58:04 +01:00
Alug
3e0150d4f3
remove auto/postload check variables
...
we can just check our counts since D_FindAddonsToAutoload will never be called again
2025-11-01 20:53:31 +01:00
Alug
7c1f17bb8d
pass our file counts to W_InitMultipleFiles
...
smol opzimiation, skips some ptr deref
2025-11-01 20:49:03 +01:00
Alug
c8ae4a89d9
throw motion blur effect stuff behind an ifdef
...
so we can get rid of the unused array
prob could just remove it at this point, but maybe ill fix it someday for the funnis
2025-11-01 20:08:36 +01:00
Alug
42b1f849c0
cleanup and optimize startup wad handling
2025-11-01 20:08:33 +01:00
Alug
c0f24ebbbc
postautoloaded can be static
...
not used outside of d_main
2025-11-01 20:08:30 +01:00
Alug
de73c53665
optimize addon autoload handling
2025-11-01 20:08:25 +01:00
Alug
908e073628
removed unused autoload variables
...
M_ConnectMenuModChecks been checking an uninitialized bool the whole time Zzz...
2025-11-01 18:29:10 +01:00
Gustaf Alhäll
eaee95a026
Add -workdir
2025-11-01 18:15:20 +01:00
Alug
456a380e3a
HWR_PrecacheLevel: disable sprite precaching
...
in some cases this may lead to crashes, its mostly useless in gl eitherway due to how colourmapped sprites work
2025-11-01 16:32:27 +01:00
Alug
c428472c6f
dont precache anything ever in HWR_PrecacheLevel if disabled
...
before some cvar callbacks called this unconditionally
2025-11-01 16:32:19 +01:00
Alug
feff5a7c17
make a toggle for using angleturn in replays
...
while this is more accurate to how the player experienced stuff in the actual game, this also can be somewhat jittery and stuttery depending on the net conditions the replay was recorded in, so make this toggable if someone wants it
2025-11-01 16:32:16 +01:00
Alug
ae306351ba
add cv_precachetextures to advanced video options
2025-11-01 16:32:13 +01:00
Alug
03de30df3e
SV_StopServer: reset textcmdbuf
...
fixes an issue where in some rare cases, the game may get stuck in a weird limbo state due to the text command buffer being full and never be cleared, so net commands can never be executed
2025-11-01 03:01:40 +01:00
toaster
e45c72f525
SV_StopServer: Use G_SetGamestate instead of a direct write
...
An apparent oversight identified while working on the previous commit.
2025-11-01 03:01:17 +01:00
Alug
36c43d89e6
GL encore: use struct for encore texture handling
...
struct with two sets of maptextures, one for normal another for encore textures
functionally identical, hopefully also performancewise
more explicit than doing this with just one set and indexing stuff :bloblcatpats:
2025-10-31 15:10:39 +01:00
Alug
f34a47c50d
HWR_PrecacheLevelFlats: only run flat encore case when having an "encoremap"
...
not when its just encore mode
might save some time on some maps, as we dont need to check for remapping
2025-10-31 15:10:32 +01:00
Alug
24895874ed
UDP_Bind: check socket send buffer size aswell
...
if to small than adjust, like receive buffer
2025-10-30 18:04:04 +01:00
Gustaf Alhäll
129f88b6a7
Fix buffer underflow when querying invalid nodes
2025-10-30 18:03:47 +01:00
Alug
cb5c4e482e
SOCK_GetAddr: freeaddrinfo does not need to be called on getaddrinfo failure
2025-10-30 18:03:43 +01:00
Alug
db2062ed1d
some i_tcp fixes
...
- SOCK_Get return true when receiving good packet from a lan player
- SOCK_GetAddr fix handling of ipv6 addresses, so ipv6 servers can be found in the serverlist
taken from srb2/classic
2025-10-30 18:03:38 +01:00
Alug
45ee50b47d
remove reduntant stuff from D_ClearState and G_StopDemo
...
we only need R_ExecuteSetViewSize from splitscreen_onchange, the rest doesent do anything due to SV_StopServer call earlier setting cl_mode to CL_ABORTED
SV_StopServer also calls Y_EndIntermission and Y_EndVote if necessary
2025-10-28 01:21:38 +01:00
Alug
694a8eeb69
P_TryMove: save one R_PointInSubsector call per player
...
by reusing the special sector calculated earlier, this didnt change for when its checked another time
also one fixedmul in P_SceneryTryMove in some cases
2025-10-28 00:50:02 +01:00
Alug
908bba2c8a
rename subsector variable in P_TryCameraMove to be more descriptive
2025-10-28 00:49:58 +01:00
Alug
7325c8dbfd
Merge branch 'Saturn-Next' into fakeseed
2025-10-28 00:02:35 +01:00
Alug
88363cf45d
add NOHOLEPUNCH flag to disable holepunch entirely
2025-10-27 22:58:42 +01:00
Alug
e5c18ae1f1
update ms listing if fakeseed was changed
2025-10-27 22:47:18 +01:00
Alug
4bb5b8fa04
add "Fake Seed" system
...
allow sending a fake player to the ms and serverbrowser when your dedicated server is empty
effectively functioning as a "seed" player without manual intervention and occupieng a server slot
2025-10-27 22:24:21 +01:00
Alug
509e7140e3
use strlcpy for filling playerinfo names
...
MAXPLAYERNAME+1 so it copies 21 and null terminates the last
2025-10-27 21:21:39 +01:00
Alug
056f919bbe
DrawTiltedSpan: more micro optimize
...
- do pointerdiff outside the loops, no need to do them 16 times per span
- cache tiltilighting and planezlight, mark as const and restrict
2025-10-27 00:56:21 +01:00
Alug
548cad76b2
drawspan: some type fixes, mark const and reordering
2025-10-26 14:05:12 +01:00
Alug
95d8864faa
fix software hiding the wrong thing in video options
2025-10-26 02:19:35 +01:00
Alug
e26fb91350
simplify vhs effect interpolation
2025-10-25 22:32:58 +02:00
Alug
da67f6feb8
rename most "gamma" vars to "brightness"
...
lots of confusion
but it does more brightness adjustment than gamma adjustments, yes this does some gamma correction but not user changable global gamma adjustments like globalgamma
uhhh
2025-10-25 22:21:37 +02:00
Alug
8cc73bc482
Port RR´s gamma correction + split gamma and brightness
...
port of https://gitlab.com/kart-krew-dev/ring-racers/-/commit/e27506c660933e19dbcfe9ec776caf7819952e30
not cherry picked since it differs too much it would be hellish to untangle (sry!)
Gamma is split from brightness since both do somewhat different things in the context here
2025-10-25 22:21:19 +02:00
Alug
28685ea658
fix some tooltips issues, wording and inconsistencies
...
fbo also now supports from gl 2.1
2025-10-25 20:39:01 +02:00
Alug
a69df8807d
fix some messed up whitespaces lel
2025-10-24 21:57:57 +02:00
Alug
d4a130f1dc
remove those memsets
...
not needed anymore now
2025-10-24 18:40:29 +02:00
Alug
8ccf4eb9ba
this can be alot smoler
2025-10-24 18:40:25 +02:00
Alug
cdb7b6fede
initialize input events to something
2025-10-24 18:40:21 +02:00
Alug
fcae072625
refactor controller dpad menu repeat handling
...
dont hack around manually checking for state checks
just use sdl provided stuff and poll if a dpad button currently is being held
2025-10-24 18:40:18 +02:00
Alug
26fc417555
forgor about localskin menu
...
Zzz....
2025-10-24 16:09:53 +02:00
Alug
bb3dd435f0
oop didnt mean to move this
2025-10-24 15:49:40 +02:00
indev
16a531272f
Skip repeating backslashes in HU_DoCEcho when printing to console
2025-10-24 16:36:50 +03:00
Alug
ba5b79e48a
dont double print kitchen sink message to log
...
we already handle this in HU_DoCEcho
2025-10-24 15:37:11 +02:00
Alug
59470ddbd4
fix oob access in D_SetupVote
...
check if luamaps was set before
2025-10-24 15:37:08 +02:00
Alug
82c4191516
Revert "SDLSetMode: render immediately after resolution change to avoid 1-frame of texture presented at wrong size"
...
This reverts commit 0e2ffdeb1d .
2025-10-24 04:09:43 +02:00
Alug
8a305d3c79
move those to D_ClearState
2025-10-24 03:47:59 +02:00
Alug
7c507c7b3b
do some cleanup g_demo
...
:shook:
use the CLEANUP macro everywhere
init some things that may not be initialized
and make this more readable
lets hope didnt break anything Zzz...
TODO: if there are still issues with demo records and stuff crashing might consider porting some of the fixes from RR
2025-10-24 03:44:56 +02:00
Alug
ca27dad6c1
use D_ClearState in G_StopDemo
...
actually fixes issues with crashes AND palette reset
also resets a bunch of more stuff which def is good
2025-10-24 03:44:53 +02:00
Alug
383d55cac6
smol cleanup V_DrawVhsEffect
...
dont need to assign all the software stuff in gl mode
2025-10-24 03:37:45 +02:00
James R.
0e2ffdeb1d
SDLSetMode: render immediately after resolution change to avoid 1-frame of texture presented at wrong size
2025-10-24 01:55:20 +02:00
Alug
b84d101337
initialize sdl window,renderer and texture to something
2025-10-24 01:55:17 +02:00
indev
eb04271c83
Actually try to do this with hooks
2025-10-23 22:52:03 +03:00
Alug
852aa74d62
random style fixes and stuff
2025-10-23 21:01:20 +02:00
Alug
aa06459c09
set special case for console key when using native keyboard input
...
ALWAYS make sure that remains in the same physical place
otherwise things might get very annoying
it already does so with my german layout
2025-10-23 21:01:20 +02:00
indev
54e7ad571e
Check if mobj is spawned from local addon in most of lua_baselib functions related to mobjs
2025-10-23 22:00:46 +03:00
Alug
1d3dae01e9
set SDL_HINT_AUTO_UPDATE_SENSORS hint to 0
...
we dont need any of that so disable it
2025-10-23 20:58:01 +02:00
Alug
736a626ccf
init joyinfo in I_InitJoystick
2025-10-23 20:57:58 +02:00
Alug
a4cc8b0585
keep track of joystick instance index
...
means we dont constantly need to refetch it
needs testing on windoze
2025-10-23 20:57:55 +02:00
Alug
333c94be52
clean up controller dpad input handling
...
just treat them as "normal" buttons instead of manually polling for them
alot cleaner and gets rid of yet another polling loop
also clean up some other stuff
needs to be tested with multiple controllers in splitscreen but cba to do that atm
2025-10-23 20:57:52 +02:00
Alug
92ec4e65c1
update sdl2_mixer to 2.8.1
...
since we use wasapi now we can finally update this to 2.8.1 hopefully without any regressions now
2025-10-23 20:57:24 +02:00
Alug
a3e97b90f6
dont force directsound for sdl versions from 2.26.5 on windows
...
directsound is deprecated since 13 years!
superseeded by wasapi
2.26.5 sdl brought some major improvements to resampling which fixes the issues this aimed to work around, but instead this workaround caused a plethora of issues, like breaking loops in some cases or the votescreen music
2025-10-23 20:57:21 +02:00
Alug
c07502bf5a
use strl instead of strn stuff to copy cecho text
...
ALOT safer than whatever this did before
2025-10-23 20:51:24 +02:00
Alug
f751161693
fix CECHO text being overwritten with nothing
...
strlcat not strlcpy
2025-10-23 20:37:57 +02:00
toaster
ed16c4fd9f
Simplify intermission timer code
...
- We had two ways of ending the intermission, but only one would actually be used, and it resulted in code duplication.
- Combine the two ways.
- Disable the reached-but-didn't-do-anything-before-now code path for setting endtic.
2025-10-22 23:08:43 +02:00
Alug
41407538d4
cleanup + optimizations mixer_sound
...
thx indev for the better ms rounding code <3
2025-10-22 22:53:14 +02:00
Alug
5f394cd938
handle more memory allocation failure cases
...
reported with -Wformat-overflow
2025-10-22 16:02:35 +02:00
Alug
e5bae89d0f
fix namescrollbuf and mapmusic.name copies
...
ensure those are properly null terminated
as reported by ubsan
2025-10-22 15:34:43 +02:00
Alug
f749800276
fix playersetup skin speen reading out of bounds
...
reported by ubsan
2025-10-22 15:34:40 +02:00
Alug
5289027272
uninline ctf resynch stuff
...
this wont ever be used and just makes lto and others complain occasionally (maybe frenmod uses ctf? forgor)
2025-10-22 15:34:38 +02:00
Alug
77f4d4ef3b
fix replays occasionally crashing when stopping
...
due to R_ReInitColormaps our extra_colormaps pointer may be freed
so ensure it only gets called after gamestate has been set to GS_NULL so we dont risk doing this mid renderframe
fixes crashes in software and palette render mode
2025-10-22 13:48:56 +02:00
AJ Martinez
a94740f5e9
Fix unsteady camera movement in demos
2025-10-22 13:44:32 +02:00
toaster
ab27090ecf
Don't send a netxcmd when using addfile outside of netgame
...
Was supposed to be happening already, but `multiplayer` is a useless variable...
2025-10-22 11:32:49 +02:00
Alug
93d0106c28
remove erronous ";"
2025-10-22 11:32:46 +02:00
Alug
27433f6fb5
call R_SetupFreelook in R_ExecuteSetViewSize
...
to instantly update our now stale yslope pointer!
fixes random crashes when switching numbers of splitviews in replays
2025-10-21 19:26:31 +02:00
Alug
f8e5049d76
fix R_MakeSpans accessing "spanstart" out of bounds when in splitscreen
...
it gets allocated for viewheight not vid.height!
2025-10-21 19:26:27 +02:00
Alug
2009cdeaeb
init few more things
2025-10-21 18:36:05 +02:00
Alug
0f43f19b71
remove unused maskdraw_t struct
2025-10-21 18:01:03 +02:00
Alug
1ac7852bd2
initialize a bunch of stuff that gets passed to realloc
2025-10-21 17:52:21 +02:00
indev
f5e7b65ae0
Fix replay names not displaying if you have more than INT16_MAX replays
2025-10-21 17:11:45 +03:00
Alug
4c5d34e82c
Revert "Fix ghost hitlist causing zone errors ( closes #118 )"
...
This reverts commit ab13b28106 .
2025-10-21 16:09:02 +02:00
Alug
0dad927c05
fix 4th player background not drawin in gl in 3 player splitscreen
2025-10-21 15:42:33 +02:00
Alug
f231417465
fix splitscreen view in gl
2025-10-21 15:27:05 +02:00
Alug
51b8dc9101
m_menu: add textinput special case for playername string
...
itself it already checks to not write out of bounds, this is mostly just to fix visual issues
kind hacky, but works for now
2025-10-21 14:45:10 +02:00
Alug
71e9c4f5af
use "viewssnum" for shadowdir stuff
2025-10-21 14:34:33 +02:00
Alug
1acae3e4af
use malloc for spawnstate mapdata copies
...
they might be somewhat large and get completely overwritten eitherway so save us the 0 init
2025-10-21 14:34:30 +02:00
Alug
4c04d09d18
rename
2025-10-21 14:34:28 +02:00
indev
b99cd88947
Fix possible buffer overflow in M_TextInputSetString when string length is greatter than buffer length
2025-10-21 01:46:39 +03:00
Alug
4a786449c4
fix NIGHTS hoop hoopcenter
...
fixes visual issues when going through them
2025-10-20 19:48:28 +02:00
Alug
aef6dcdbc9
handle ceepeepee
2025-10-20 19:25:41 +02:00
Alug
0e9ec096c2
slightly clean up makefile
...
- pass "-g" on mingw builds generally after everything (needs testing)
-use "libs" instead of "LDFLAGS" (identical purpose)
- pass "mno-ms-bitfields" on gcc, shouldnt be really needed but just in case
2025-10-20 17:02:36 +01:00
Alug
50ce3c4431
R_FlushQuad: dont use 64bit/8byte copy on 32bit targets
...
on 32bit targets this will just compile into two 32bit copies which gcc cant optimize as well as it can with the byte copy (it seems to love to do some AVX stuff atleast in my tests)
so this is only useful for 64bit capable platforms (compiler does not seem to do 64bit copys for the byte copy case, so this ends up being faster)
2025-10-20 16:32:48 +02:00
Alug
c6c1dbd066
R_FlushQuad: also check "source" for alignment
2025-10-20 16:17:01 +02:00
Alug
ece8d9e80c
R_FlushQuad: fix column flush on odd width resolutions
2025-10-20 00:56:30 +02:00
Alug
fdcbd276e9
remove unessecaary template branch in R_DrawColumnPixel
2025-10-19 23:07:21 +02:00
Alug
6d77672ee3
no need to pass anything to R_InitViewBuffer
2025-10-19 22:19:20 +02:00
Alug
28aec6cad5
add USEUBSAN compiler flag
...
to compile with ubsan duh
2025-10-19 21:59:39 +02:00
Alug
1f028f523e
R_FlushQuad: fix unaligned memory access
2025-10-19 21:59:35 +02:00
Alug
349bf06e4b
macrofy column function definitions
2025-10-19 21:59:32 +02:00
Alug
e044db73f5
those should be initialised to something
2025-10-19 21:59:29 +02:00
Alug
7555d689db
clear our column buffer after allocation
2025-10-19 21:59:27 +02:00
Alug
a6438da531
use spawn sector and line tags for P_ReloadSaveLevelData
...
should speed up resynch a little, now that we properly save them
2025-10-18 23:11:00 +02:00
Alug
8c6893cff6
init taglists in P_LoadMapData
...
no reason to init them in P_SpawnSpecials
fixes join crashes on some maps
2025-10-18 23:04:25 +02:00
Alug
af03b51191
add guard to vid.screens free
...
not super necessary but better safe than sorry
2025-10-18 21:34:23 +02:00
Alug
178d8b7b53
fix demo_slug compiler warning
...
Zzz....
2025-10-18 16:15:19 +02:00
NepDisk
de99a3036d
Update Discord RPC
...
Based on some of the changes from RR.
Accounts for the fact discord does not have tags anymore and makes skin code easier to manage
2025-10-18 16:15:17 +02:00
NepDisk
5c613f6c8f
Use a constant for file path stuff
2025-10-18 16:15:14 +02:00
James R
59628377fa
Resize menudemo_t filepath to fix -Wformat-truncation
2025-10-18 16:15:11 +02:00
Alug
278f3c3ef6
turnsmoothing splitscreen player support
...
i hate our menus Zzz....
2025-10-17 09:24:33 +02:00
Alug
3ba1596976
change wheel input "sensitivity"
...
200 maps perfectly to our turn values
so the wheel now actually better reflects the inputs and does not turn fully super early uhh
2025-10-16 23:15:42 +02:00
Alug
02f6fa0665
HACK: call texture precache when toggling a setting that flushes opengl textures
...
workaround for batching sort issues
should be good eitherway to reduce stutters after toggling them
2025-10-16 22:21:37 +02:00
Alug
f4aec1d591
port "Lite Steer" from RR
...
took me a while to realize RR makes everything go though "analogue" input handlers
2025-10-16 21:53:40 +02:00
Alug
5c2a87dea6
fix off by one when playing with controller sticks
...
also simplify driftturn handling
2025-10-16 21:53:37 +02:00
Alug
6f17ed0883
Merge branch 'Saturn-Next' into updatesdl2again
2025-10-16 15:07:54 +01:00
Alug
d5aa9ae0f1
fix 32bit windoze compile
...
again......
2025-10-16 15:07:35 +01:00
indev
6096822cbb
Use str.resize(size) instead of str = str.substr(0, size) (ty lug <3)
2025-10-16 15:16:23 +03:00
Alug
0030367649
fix UB in R_PointOnSide
...
by not shifting a 32bit int by 31 bits
this is more in line with the original function eitherways
2025-10-16 14:08:30 +02:00
Alug
66f67c91e8
G_SaveDemo: fix oob reads/writes for replay names
...
demo.titlename has a size of 65! not 128!
also handles memory failure and checks bounds for the remaining lenght in the demo slug
2025-10-16 14:01:02 +02:00
Alug
c73c1af2d5
let replays with empty name save
...
this does not crash for us
2025-10-16 14:00:57 +02:00
toaster
638e95325a
G_SaveDemo: Resolve memory errors that could result in crashes
...
- Empty `demo.titlename` case
- Don't try to save demo of name `.lmp`
- Doesn't fall back to anything, because emptying out the name field can be reasonably treated as not wanting to save
- `demo.titlename` consists only of invalid characters
- Don't try to save demo of name `-.lmp`
- Falls back to the default demo title, because the user clearly wanted to save and just happened to provide invalid text
2025-10-16 14:00:55 +02:00
Alug
66ce745e91
add allocation failure case in R_DrawMasked
2025-10-16 14:00:51 +02:00
Alug
2b39d137b4
guard against null string in stringwidth functions
...
hud drawlists may actually pass null to them
2025-10-16 14:00:48 +02:00
Alug
1ed616dcef
pass rover directly to check_fof_offscreen
2025-10-16 14:00:45 +02:00
indev
24ef2819b0
Merge pull request #205 from Indev450/dsdacol
...
Software Renderer: Implement Column buffering system
2025-10-15 21:52:45 +03:00
Alug
a9732e9564
Merge branch 'Saturn-Next' into dsdacol
2025-10-15 20:51:47 +02:00
Alug
c262d3f532
prevent potential 0 division in CV_AddValue
...
as repoted by clang-tidy
2025-10-15 20:41:57 +02:00
Alug
ae456fee31
force inline savegame archive stuff
2025-10-15 17:05:05 +02:00
LJ Sonic
68f69049d4
Fix incorrect error message during Lua archiving
2025-10-15 17:05:02 +02:00
LJ Sonic
e180918e48
Do not archive nil table keys
2025-10-15 17:04:59 +02:00
Alam Ed Arias
951c090b35
set CURLOPT_MAXREDIRS to 30
2025-10-15 17:04:55 +02:00
Gustaf Alhäll
a87e07155a
Remove WINSOCK1 support
...
WINSOCK2 has been supported since Windows XP and is required for IPv6,
so I don't see a reason to support it anymore.
2025-10-15 17:04:52 +02:00
Alug
da16ce3a23
mark flush error functions with noreturn
...
silences clang
2025-10-15 06:28:54 +02:00
Alug
64bdae5e5d
delet dead code ogl models
2025-10-15 06:16:46 +02:00
Alug
4f91a0b234
remove dead renderer code
...
remove
- broken viewborder code (if we really want it back for some reason, we should rather port RR´s fixed version of it)
- remove console clipping code for software (this was broken eiherway)
- remove hud message clearing stuff
- remove renderscreen and linesize variables (they just pointed to vid.screen and vid.widht)
2025-10-15 06:16:46 +02:00
Alug
bb0a59540f
use stdlibs abs for CompareDrawNodePlanes
...
we dont need our own abs for this
2025-10-15 06:16:46 +02:00
Alug
dd9d6de0d6
delet gl_viewwidth, gl_viewheight, gl_baseviewwindowx, gl_baseviewwindowy gl_basewindowcenterx, gl_basewindowcentery
...
they were effectively unused
2025-10-15 06:16:46 +02:00
Alug
3de4c7cbad
Merge branch 'Saturn-Next' into dsdacol
2025-10-14 23:14:24 +02:00
Alug
0eeacaf51e
remove dead renderer code
...
remove
- broken viewborder code (if we really want it back for some reason, we should rather port RR´s fixed version of it)
- remove console clipping code for software (this was broken eiherway)
- remove hud message clearing stuff
- remove renderscreen and linesize variables (they just pointed to vid.screen and vid.widht)
2025-10-14 23:14:07 +02:00
Alug
a4684b3004
use stdlibs abs for CompareDrawNodePlanes
...
we dont need our own abs for this
2025-10-14 23:13:52 +02:00
Alug
9c014eb2ea
delet gl_viewwidth, gl_viewheight, gl_baseviewwindowx, gl_baseviewwindowy gl_basewindowcenterx, gl_basewindowcentery
...
they were effectively unused
the last two werent ever even initialized to anything, using HWR_DrawViewBorder wouldve crashed
2025-10-14 23:13:49 +02:00
Alug
37579187cc
remove dead renderer code
...
remove
- broken viewborder code (if we really want it back for some reason, we should rather port RR´s fixed version of it)
- remove console clipping code for software (this was broken eiherway)
- remove hud message clearing stuff
- remove renderscreen and linesize variables (they just pointed to vid.screen and vid.widht)
2025-10-14 23:13:39 +02:00
Alug
af8ce028ba
use stdlibs abs for CompareDrawNodePlanes
...
we dont need our own abs for this
2025-10-14 23:12:50 +02:00
Alug
9310a68cff
delet gl_viewwidth, gl_viewheight, gl_baseviewwindowx, gl_baseviewwindowy gl_basewindowcenterx, gl_basewindowcentery
...
they were effectively unused
the last two werent ever even initialized to anything, using HWR_DrawViewBorder wouldve crashed
2025-10-14 23:12:47 +02:00
Hanicef
89b8121282
Fix vertical aim being off when using lack of perspective
2025-10-14 22:28:18 +02:00
Alug
b2260bbebb
move R_SetColumnContext call
...
we set this later to flush eitherway for non skybox draw
2025-10-13 21:27:43 +02:00
Alug
6a9aea4dd1
use std::vector for our image buffers
...
this is just to have it cleaner and less code bloat
the resizing loop will almost never trigger, 1meg is enough to even rotate gigantamax eevee without needing to grow
2025-10-13 19:20:40 +02:00
Eidolon
6f4dfb35fa
Calculate staging buffer maximum size in Picture_Convert
2025-10-13 19:20:37 +02:00
Alug
459b2e62ce
oops missed this case
2025-10-12 23:12:26 +02:00
Alug
5765f3df5a
this does not need marked as restrict
2025-10-12 22:30:25 +02:00
Alug
8488da4b1a
smol style adjustment span stuff
2025-10-12 22:11:39 +02:00
Alug
c82495f48b
tiny optimization span drawers
...
if we dont "ripple" our spans, we dont need to increment an additional pointer for them
2025-10-12 22:11:36 +02:00
Alug
f55b8793ec
Merge branch 'Saturn-Next' into dsdacol
2025-10-12 22:11:23 +02:00
Alug
b0b048c703
move "newview sky" check before skyplane loop
...
saves us some pointless work going through all planes if we dont need to draw the sky
2025-10-10 23:37:20 +02:00
Alug
b7f1a0b631
speed up masked sprites a bit
...
thx eternity engine!
2025-10-10 22:33:04 +02:00
Alug
02d6fccfa9
Merge remote-tracking branch 'origin/Saturn-Next' into updatesdl2again
2025-10-10 16:40:05 +01:00
Alug
513613d83b
dont update hud during skipped frames
...
this was to fix issues with some lua huds looking really bad during frameskip
but this causes issues with the hud flashing during gif recording
2025-10-09 19:13:09 +02:00
Alug
f2afc5135c
fix buffer overflows in dedi build too
2025-10-09 18:17:09 +02:00
K J
3783e30a8a
fix: multiple additional buffer overruns
...
found by Zwip-Zwap_Zapony
2025-10-09 18:11:59 +02:00
Alug
ff80a34627
unnest fsp counter and ping display stuff
2025-10-09 18:01:27 +02:00
Alug
38c96d5ec2
Merge branch 'Saturn-Next' into dsdacol
2025-10-08 21:38:26 +02:00
Alug
2ec467f062
check with "__SIZEOF_POINTER__"
2025-10-08 21:38:20 +02:00
Alug
b3106d55d1
inline R_ThingLightLevel
...
just points to thing->lightlevel field eitherway
2025-10-08 21:38:17 +02:00
Alug
90c3d02dbf
ensure columnbuffer gets flushed during portal traversal
...
in worst case this does nothing btw
2025-10-08 20:46:37 +02:00
Alug
48dc5461cd
cleanup column flusher stuff
...
- properly make use of templates!, reduce code dupe
- inline the "DrawPixel" stuff
- use local "const" pointers everywhere
2025-10-08 16:50:17 +02:00
Alug
0843a586f8
fuckit, lets buffer 8 columns instead of 4
...
improves performance across the board on my ryzen 5600 cpu
between 10 -15fps + in best case and around 5fps+ in worst case
will need to check how this affects older cpus and 32bit builds since we do 64bit copies now
(if needed can always add 32bit specific code)
effectively, we also reduce the amount of flushing needed in many cases, writing more things at once during flushes
2025-10-08 16:47:54 +02:00
Alug
8c8f96cf49
force flush our column buffer directly after bsp traversal (again)
...
TODO: actually check what portals do
2025-10-08 16:47:54 +02:00
Alug
55afe9be7e
update copyright header for draw flush stuff
2025-10-08 16:47:54 +02:00
Alug
fe54f2fba2
add Column drawer context switching
...
reasoning explained in screen.c
effectively, there are cases where drawing our columns directly to the screen is the better choice
2025-10-08 16:47:54 +02:00
Alug
b12989f51c
lessen our manual column buffer resetting
...
not really needed
2025-10-08 16:47:54 +02:00
Alug
57990100c5
speed up masked sprites a bit
...
thx eternity engine!
2025-10-08 16:47:54 +02:00
Alug
32504b9e8e
speed up Opague quad flush
...
from eternity engine
2025-10-08 16:47:54 +02:00
Alug
ba3404d823
cleanup + type fixes
2025-10-08 16:47:54 +02:00
Alug
c9f50ca0c8
sizeof(UINT8) is 1 lel
2025-10-08 16:47:54 +02:00
Alug
b6943ce92e
can check on compile if sizeof int == 4
...
can prob remove it alltogether we dont support 16 bit cpus kek
2025-10-08 16:47:54 +02:00
Alug
41b78feef5
remove R_GetColumnTranslucent
2025-10-08 16:47:54 +02:00
Alug
c9b6276a02
merge sky column drawer back
...
lets hope this is safe lulul
2025-10-08 16:47:54 +02:00
Alug
39a5165d91
reset our column buffer directly after bsp traversal
...
we do not need to wait for sky draw since the sky gets instantly drawn
2025-10-08 16:47:54 +02:00
Alug
e5a03dc3bb
fix translucency being only half as translucent
...
oops lmao didnt notice in all of this doom uses the inverse of our blendlevels kek
2025-10-08 16:47:54 +02:00
Alug
4deebf8912
translucency is handled on the flush side!
2025-10-08 16:47:54 +02:00
Alug
fa8901f6b0
fix ColumnFlushType enum
2025-10-08 16:47:54 +02:00
Alug
23512f0a6c
align our tempbuf
2025-10-08 16:47:54 +02:00
Alug
b44548b7ac
dedupe those a bit
2025-10-08 16:47:54 +02:00
Alug
955812bd8d
template the flush functions
2025-10-08 16:47:54 +02:00
indev
e4ac394d29
Fix DC_COLORMAP and DC_TRANSMAP column drawers always using DC_COLORMAP|DC_TRANSMAP func
2025-10-08 16:47:54 +02:00
Alug
2b6185d7d6
reenable colormapped / translucent columns
2025-10-08 16:47:54 +02:00
Alug
2753052ee7
fix FlushColumns being called without being initialized
...
aack
2025-10-08 16:47:54 +02:00
Alug
3c9292c137
reorder column flush functions
...
also add some comments that used to be in drawcolumn X)
2025-10-08 16:47:54 +02:00
Alug
e68136de3e
remove tempbuf resolution limit
...
by allocating it dynamically per our actual screen resolution
2025-10-08 16:47:54 +02:00
Alug
e852c23441
move the temp columndata into a struct
...
TODO:dynamic allocate our temporary screen buffer
2025-10-08 16:47:54 +02:00
Alug
031e8ee477
WIP: column buffering/flushing system
...
it "works" so far no performance improvement
everything but fully opague columns dont work for now until fixed
really messy and needs to be templated when working
from prboom & eternity engine
2025-10-08 16:47:54 +02:00
indev
d7422b8ec9
Don't I_Error in W_InitFileError, that causes dedicated servers to bootloop
2025-10-06 17:44:47 +03:00
James R
0bbd8246cc
Read only header bytes when creating textures list
...
R_LoadTextures was reading in the entirety of every
texture lump, now it only reads the 8 byte PNG header.
This saved more than 1 second for me (1.68 s -> 0.24 s).
PNG still need to be read in entirely to check their
dimensions; I didn't bother looking into optimizing it
since we don't have many PNG textures right now.
2025-10-05 20:59:40 +02:00
Alug
9e8ddd5f9e
add a print to Joinable_OnChange
...
also change the other cvar messages to CONS_NOTICE
2025-10-05 20:39:09 +02:00
indev
3964d4e188
Always initialize all column offsets inside multi-patch textures
2025-10-05 21:12:46 +03:00
Alug
005af4362e
remove unused W_LumpLenghtPwad call from R_GenerateTexture
2025-10-05 20:11:05 +02:00
Alug
f817676033
fix uninitialized "i" counter in R_StoreWallRange
2025-10-05 20:10:49 +02:00
Alug
79140b3bdc
fix oopsie in R_GenerateTexture
2025-10-05 20:10:46 +02:00
Alug
48722ef591
fix oob access in CV_AddValue and M_CanShowLevelInList
...
lets hope this doesent break anything Zzz....
2025-10-05 20:10:42 +02:00
Alug
6be5478fa8
dont free levelstate in D_ClearState
...
Titledemos be damned!
2025-10-05 20:10:36 +02:00
James R
953d9d15d6
Clear g_dc each frame
...
I was running into a memcpy of overlapping memory regions
in R_RenderMaskedSegRange.
- This is because of the reallocation of lightlists, which
uses Z_Frame_Alloc.
- The memory pool that Z_Frame_Alloc draws from is cleared
each frame.
- g_dc was not cleared though, so when the lightlists were
reallocated, it'd try to copy from invalidated pointers.
- Access to invalid pointers within the memory pool does
not cause a segfault directly (because the memory pool
is allocated once). However, a memcpy involving such an
invalid pointer leads to overlap, which may cause memory
corruption.
2025-10-05 20:10:33 +02:00
Alug
0c56755e09
fix R_MarkSegBounds
2025-10-05 20:10:30 +02:00
Lactozilla
c166075754
Don't generate textures in R_GetColumn
2025-10-05 20:10:27 +02:00
Alug
90ff1c4fc0
small fixups for r_segs
2025-10-05 20:10:23 +02:00
Alug
1d0fedddfd
add bounds check to R_GetLinedefTransTable
2025-10-05 20:10:20 +02:00
Alug
f5b60c3f36
port "Use separate table for maskedtexturecol"
...
from: https://git.do.srb2.org/STJr/SRB2/-/commit/97311dc5b00ab232a6e898c085c20d2f6bdbfa3b
~~cherry-picking this would be horrendous sry~~
2025-10-05 20:10:16 +02:00
Alug
78ad3e9710
some fixes for texture generation
...
- Fix negative y offsets for both normal and y-flipped patches
- simplify column wrapping/nonpow2 handling
- Single-patch textures: print an error if patch header is missing, cease memory errors
sadly does not fix our invalid columns we get occasionally
2025-10-05 20:10:13 +02:00
Alug
b03d5c53ed
simplify titledlighting stuff for span drawers
...
- use a std::vector for the tiltlightbufffer, only for easier checking if it needs to be resized from resolution change
- move stuff into its own function
- simplify R_CalcTiltedLighting
no functional change, no performance improvement, just looks neater
2025-10-04 22:05:07 +02:00
indev
c5dce0e785
oops
2025-10-04 17:25:39 +03:00
indev
f85c7ef961
Copyleft :3
2025-10-04 17:25:03 +03:00
Alug
0ceaca4b2f
Merge branch 'Saturn-Next' into updatesdl2again
2025-10-03 22:43:29 +01:00
Alug
4d211f8f82
Merge branch 'updatelibbacktrace' into Saturn-Next
2025-10-03 22:42:28 +01:00
Alug
8d3435291b
fix windows compile
2025-10-03 22:41:02 +01:00
Alug
8f007155cd
update libbacktrace (win x64)
2025-10-03 21:36:49 +01:00
Alug
af9fa77501
update SDL2 to 2.32.10
...
Fixes keyboard input issues for certain languages when using the "native" keyboard input setting
probably fixes some other issues aswell
needs regression testing
2025-10-03 21:29:26 +01:00
Alug
58a38ac6c4
add "SATURN_TESTING" define
...
currently to hide the commit string from titlescreen on release builds
could be used for other crap
wish could use comptime to autogenerate this, but it runs after compile & linking
2025-10-03 16:40:31 +02:00
Alug
1e1dbfc450
oops all include guards
2025-10-03 16:39:51 +02:00
Alug
2eac9fc295
tiny cleanup p_map
...
also save a little division and abs
2025-10-03 16:39:48 +02:00
Alug
21920112ee
a thousand curses upon you polyobjects!
2025-10-02 18:37:18 +02:00
Alug
9b7bf5e7d8
Merge remote-tracking branch 'origin/Saturn-Next' into deletglseg
2025-10-02 18:00:59 +02:00
indev
4416be2ddc
Merge pull request #203 from Indev450/curl-cli-args
...
CURL cli args
2025-10-02 19:00:29 +03:00
Alug
524168b20b
experiment: remove opengl adjusted segs
...
in theory this should improve levelload times and reduce memory usage?
gotta see if it really does, visually so far there seems to be no difference at all
2025-10-02 17:57:52 +02:00
indev
10b52c11ac
Add -curl-proxy and -curl-header CLI arguments
...
-curl-proxy will set proxy used by curl for masterserver requests and
http downloads
-curl-header can receive multiple arguments (like -file), and can either
edit, replace or remove headers from http requests
(srb2kart -curl-header "New-Header: Some Value" "Accept: */*" "User-Agent:"
In this example, New-Header will be added, Accept header will be edited
and User-Agent header will be removed)
2025-10-02 18:57:33 +03:00
Alug
db732bd1bd
fix non polyvertex path for horizonlines
...
this was a typo all along, i somehow assumed its just like that, but its not kek
2025-10-02 17:34:51 +02:00
Alug
146d4da72c
use floats for calculating ticratescaled
...
this does not need to be double lel
actually improves performance in some cases
2025-10-02 17:34:51 +02:00
indev
20c570c97c
Fix sector sound origin not working (mobj_t wasn't consistent with degenmobj_t)
2025-10-02 16:48:58 +03:00
Alug
e550edb93e
smol micro optimizations hw_main
...
- dont check for polyflags (rendersides) inside HWR_Addline, move to HWR_AddPolyObjectSegs
- save some sector checks by assigning pointer HWR_RenderPlane
- check for numpolys instead of numPolyObjects in HWR_Subsector (will only be "true" if theres polyobjs in currently traversed subsector instead of when polyobjs are generally on the map)
2025-10-02 15:10:46 +02:00
Alug
fac4d3c2c0
add toggle for frameskip
...
just in case someone wants to toggle that off for some reason
2025-10-01 14:20:37 +02:00
Alug
7d2bcbd1ee
cleanup some stuff w_wad & filesrch
...
mostly delet some "dead" code
use pathisdirectory for filebrowser to declutter code
properly declare FUNCNORETURN and ATTRNORETURN for some quit functions
2025-10-01 14:20:34 +02:00
Alug
f3bbb5af56
ensure ALL savebuffers use Zone memory
...
fixes a crash when sending an uncompressed save to clients
2025-09-30 22:07:34 +02:00
Alug
8e8ef04860
delet BUGTRAP
...
psure this never worked anyways
2025-09-30 19:40:24 +02:00
Alug
98b105c02a
delet CLIENT_LOADINGSCREEN
2025-09-30 19:35:29 +02:00
Alug
ccdb73f861
delet VANILLAJOINNEXTROUND
2025-09-30 19:35:26 +02:00
Alug
9cb150b8eb
delet NONET
2025-09-30 19:35:23 +02:00
Alug
e6af82f450
delet JOININGAME
2025-09-30 19:35:21 +02:00
Alug
7400eeac2a
fix dedicated build compile
2025-09-30 17:27:42 +02:00
Alug
2656a87e46
Signal handler improvements
...
- Move the backtrace and signal stuff into one "block" in both i_system files
- print the current platform into the crashlog
- dedupe code a little
- make crash messages slightly more understandable
- handle more signals (if they exist)
mostly taken from https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2732
2025-09-30 17:27:33 +02:00
Alug
202e24c69c
fix precip not propely accounting for moving fofs (again)
...
was fixed a while ago, then i broke it again due to performance concerns
now we only update this twice a seconds, and its only for the currently rendered precipmobjs
lets see how it performs
2025-09-29 20:14:36 +02:00
Alug
c7d78fe948
only recalc precipfloor twice a second
2025-09-29 20:13:48 +02:00
Alug
f381239825
smol changes R_ProjectSprite
...
- remove oldthing (idk what that was even for)
- properly account for localskins
- save a few FixedMuls during clipping
2025-09-29 13:43:33 +02:00
Alug
394beb7533
rename this
2025-09-29 13:43:30 +02:00
Alug
2ea1ac9331
qs22j: handle cases with (0 or 1) elements to sort
...
avoid undefined behaviour and return early
if we only have 1 element we can skip all the crap since we dont need to sort anyways
2025-09-28 22:51:35 +02:00
Alug
34f8181e56
dont draw the leveltitle card for each splitscreen player
...
they just overlap since they draw in the very same place
2025-09-28 21:40:07 +02:00
GenericHeroGuy
ab13b28106
Fix ghost hitlist causing zone errors ( closes #118 )
...
Beware the wrath of PU_LEVEL
2025-09-28 16:36:55 +02:00
Alug
7e5019bd36
handle D_AutoloadFile better
...
only malloc stuff if we need it mallocd
2025-09-28 16:29:04 +02:00
Alug
423ca0eca0
redo native keyboard handling
...
instead of like, constantly checking stuff each frame
Now we check whenever we change the menu entry or open/close the chat or console instead and set sdl textinput mode directly and accordingly no more weird hacking around
this is similar to how srb2classic handles it, just a bit simplified (i dont wanna touch anything menu related if it can be avoided lmao)
this hopefully should resolve any weird remaining issues (lets hope i didnt miss some wonky edge case ugghhh)
TODO: update sdl2 lib on windows to fix issues on sdl side with certain layouts
2025-09-28 16:15:16 +02:00
Alug
939354f483
port over most fixes from srb2classics clang-tidy pr
...
mostly taken from https://codeberg.org/srb2classic/srb2classic/pulls/156
manually done to ensure we only port things that are guaranteed to not cause any potential desynchs
we should probably run this ourselves sometimes aswell
2025-09-28 16:14:56 +02:00
Alug
418ee2ce5f
remove localfile from wadfile struct
...
this was a leftover from localskins
we check for the "important" flag instead
2025-09-28 09:09:53 +02:00
Alug
934184a006
revert localfile check hack in CL_CheckFiles
...
this was added ages ago and broke server joining with actual modifieng addons that were not added locally
W_InitFile should already handle this and mark local addons not as important, which would skip those checks eitherway
atleast thats what im hoping
2025-09-28 09:09:50 +02:00
Alug
e94ef8d9c3
handle W_VerifyNMUSlumps error in W_InitFile
2025-09-28 09:09:48 +02:00
Alug
ba985248ea
fix crash when theres no minimap patch
...
fall back to the "inaccurate" calc from before, so automap may still work
2025-09-27 20:30:34 +02:00
Alug
65bd06aae5
fix some potential leaks
2025-09-27 18:16:23 +02:00
Alug
2434acf825
change comment for PU_PATCH_ROTATED
2025-09-27 16:35:19 +02:00
Alug
b85a718500
merge vid dupx and dupy
...
they always contained the same value, so just remove it
2025-09-27 16:32:40 +02:00
Alug
a0e023527c
move the "video" stuff in i_video
...
so its mostly together in the file
2025-09-27 16:32:16 +02:00
Alug
a6dce95eca
delet vid.buffer
...
unused memory allocation
2025-09-27 16:30:33 +02:00
Alug
f05ac73df6
cache this stuff
...
slight sprites optimization
2025-09-27 16:30:30 +02:00
Alug
c90fe4627b
handle rotated patch img buffer allocations better
...
just always initally allocate it with 1mb size, this is enough for just about everything including gigantamax eevee
if thats not enough, just double our capacity until it fits what we need
this way we save effectively reallocating 99% of the time
this prob can be used for out imgbuf in r_patch, but that needs it allocation size be handled a little differently
2025-09-27 01:44:52 +02:00
Alug
0efedae2c3
remove vid.rowbytes
...
it was just vid.width lel
2025-09-27 00:30:33 +02:00
Alug
a6d6c03a58
fix compiler warning
2025-09-27 00:30:22 +02:00
GenericHeroGuy
2d5664b54a
Fix VID_BlitLinearScreen's SSE version ignoring width ( closes #128 )
2025-09-27 00:30:19 +02:00
Alug
a25b3f6e59
oops lmfao this got lost by accident
...
fixes models kek
2025-09-26 21:41:04 +02:00
Alug
9edcbe22f4
delet apng support
...
this never really worked so get rid of it
2025-09-26 20:13:51 +02:00
Alug
8f4385c39b
fix windoze compile
2025-09-26 17:46:59 +01:00
Alug
e383b0885d
use uintptr_t to fix compiler warning (srb2classic change)
2025-09-26 15:53:29 +02:00
Alug
adcd62ed59
merge GL_ReadScreenTexture and GL_ReadScreenFinalTexture
2025-09-26 15:53:26 +02:00
Gustaf Alhäll
7cdf69c6a1
Fix compiler warning
2025-09-26 15:53:23 +02:00
GenericHeroGuy
ee12d25a8f
Fix GIF recording at 1x resolution, and stop recording on resolution change
...
Simplifies the framebuffer management and eliminates the memcpy per frame
2025-09-26 15:53:20 +02:00
GenericHeroGuy
881c9f8e43
Remove GetTexImage stuff
2025-09-26 15:53:17 +02:00
GenericHeroGuy
b1ac9f94cd
(WIP) Rewrite screen capture code for GIFs
...
Downscaling is now performed during screen capture instead of GIF writing
This may or may not make GIF recording faster?
Maybe it would be faster if I knew how OpenGL worked...
Regardless, the m*th in the GIF code is gone, fixing the high/odd res issues
Also includes a little deduped hardware code, and GL 4.3 debugging code
2025-09-26 15:53:13 +02:00
Alug
9ab4d01b8c
Update README.md
...
mention dlls just in case
2025-09-25 23:02:26 +02:00
Alug
7378ca8479
Update README.md
2025-09-25 22:39:36 +02:00
Alug
a87a7ccbda
delet circleci too
...
non functional psure
2025-09-25 22:00:03 +02:00
Alug
4a5449905b
cleanup broken/old stuff
...
TODO: fix cmake
2025-09-25 21:35:22 +02:00
Alam Ed Arias
3c8bdd7862
SDL2: use SDL_GetSystemRAM() to get total RAM
2025-09-25 16:09:41 +02:00
Alug
9b26f1fdcb
make the game fail loud if some critical gl function cant be loaded
...
also add safety to the portal stencil stuff, if that fails.
everything gl2.0 and newer is not critical and will just prevent some effects from working so that does not need to error loudly
TODO: perhaps actually port renderer switching so this instead will fallback to software if smth fails this late during gl initalization
2025-09-25 16:09:41 +02:00
Alug
76560f4179
enable fbo prints for ogllog file
2025-09-25 16:06:42 +02:00
Alug
f48fdda3f3
fixup STATIC_OPENGL
...
probably should handle the fbo stuff a bit differently
not sure tho in which context STATIC_OPENGL may be ever used though
2025-09-25 16:06:39 +02:00
Alug
2c73593fcd
ensure "rawconv" is nulled before reuse
...
otherwise there might be some leftovers from earlier calls
2025-09-25 03:44:24 +02:00
Alam Ed Arias
4613ec48b3
curl: add code to check the output of curl_multi_*()
2025-09-25 03:14:39 +02:00
Alam Ed Arias
3269b62225
curl: add code to check the output of curl_easy_*()
2025-09-25 03:14:36 +02:00
Alug
7e8f6d759c
add missing dummy makefile
...
dont think this compiles though
2025-09-25 00:29:32 +01:00
Alug
75cfd382f6
fix compile without HAVE_THREADS
...
we dont have gammacorrectedpalette
2025-09-25 00:29:05 +01:00
Alug
e524d3edab
remove erronous win_main.h include
...
this doesent exist since ages anymore lel
2025-09-25 00:25:25 +01:00
Alug
8c9fb9f146
kill off MSVC support completely
...
delet michealsoft
psure this was broken since quite a long time, now since we use quite a bunch of GNU extensions (and actually rely on the cleanup attribute), supporting this in any way is just too much, so remove everything to declutter the codebase
2025-09-24 21:23:58 +02:00
Alug
ff2fc6170d
avoid constant reallocations for patch rotation
...
instead keep our buffers, resize em on need
improves perf a bit
maybe will be changed to free on levelload not sure, depends on how much memory this will allocate
2025-09-24 15:39:21 +01:00
Alug
f27cb0ba8f
allocate imgbuf for "to patch" conversions only if needed
...
should save around 64 megs on dedis
2025-09-24 15:39:21 +01:00
Alug
58705fb184
cleanup w_wad again
...
- add pfree for CLEANUP macro
- use CLEANUP everywhere applicable
- delet duped code
- make directory signatures static and const at file scope
2025-09-24 17:22:09 +02:00
Alug
487b71f82c
ensure Addfile filehandle will always be properly closed
...
TODO: probs could reuse this function in more places where filehandles are used
2025-09-24 00:00:54 +02:00
GenericHeroGuy
2b1b4544f9
Introducing: __attribute__((__cleanup__))
...
I don't wanna hear about MSVC... or C++...
This fixes NUMEROUS memory leaks introduced by G_ReadDemoHeader,
which I was utterly oblivious to up until an hour ago
2025-09-23 23:57:54 +02:00
Alug
af1507b530
fix md5checks breaking for pk3s
2025-09-23 20:23:00 +02:00
Alug
a193604d0f
revert minimap bounds calculation back to vanilla karts (fixes https://github.com/Indev450/SRB2Kart-Saturn/issues/201 )
2025-09-23 20:22:58 +02:00
Alug
e359c8dcd0
port blankarts GLDEBUGMESSAGE stuff
...
credits GenericHeroGuy
switched to use CON_LogMessage for now, since console print functions may die during startup
2025-09-23 00:13:03 +02:00
Alug
f0d2685a60
keep some stuff for screentextures
...
prevent reinit, stack allocations and such
most of these never change and are readonly
this might slightly speedup rendering, though prob negligble
2025-09-22 23:59:55 +02:00
Alug
f3de6c15eb
force disable fbo if it fails to create
2025-09-22 23:47:44 +02:00
Alug
53cea0a835
move fbo stuff to a better place in r_opengl
2025-09-22 23:44:44 +02:00
Alug
4b4d038ac8
cleanup fbo stuff a bit
2025-09-22 23:38:11 +02:00
Alug
9ba305eb77
add backwards compat support for ogl 2.1 fbo extensions
...
this should allow older gpus to use the feature aswell, not super clean but seems to work
TODO: refactor this whole crap, switch to seperate read and draw to use blitting and make this multisampling compatible so we can get rid of the messy "downsample" code and have this active by default
2025-09-22 23:37:30 +02:00
Alug
fcadd03607
add back toggle for mouse cursor visability behaviour
2025-09-20 18:51:55 +02:00
Alug
e1ad48ec16
always interpolate weather when using interpolation
...
same here, a fix, not a feature
2025-09-20 18:08:12 +02:00
Alug
fbb77e8428
always account for mobjscale in precip
...
this is a fix not some feature honestly
2025-09-20 18:08:09 +02:00
Alug
72c05fae77
add gba RR check for software cyan cut
2025-09-20 17:57:47 +02:00
Alug
8867dc959e
dedupe and cleanup nights hoops spawn
...
most of the actual spawn is split into P_SpawnNiGHTSHoop, which takes arguments to determine if to spawn just a hoop or its collision detectors
(if you wonder why this takes a mobj pointer to pointer is due to collision detector need the former hoops last mobj to link into)
- also actually fixes midgame join crash (hoop hnext was directly nulled instead of using p_settarget)
- added some extra safety checks
- reduced the amounts of r_pointinsubsector calls for things that used to go through this function
2025-09-20 16:36:19 +02:00
Alug
e9fc57b97d
move saltyhop stuff into seperate struct
...
no functional change, just as little cleaner lookin
+ reduce size by using stdbools boolean
2025-09-20 16:34:35 +02:00
Alug
7c490de93e
delet metal sonic replay code
...
massively cluttered the demo code
hope this aint used for some super obscure thing
guess we´ll see
2025-09-20 16:34:17 +02:00
Alug
3c85295622
fix most implicit float > double conversions
2025-09-19 13:48:51 +02:00
Alug
bdeb7e5e9d
fix potential leak in protocol registering
2025-09-19 13:48:47 +02:00
Alug
2e766a7e16
fix potential NULL deref of string in lua chatprint lib functions
2025-09-19 13:48:44 +02:00
Alug
9bab3d5795
fix some potential leaks in M_DrawSplitText
2025-09-19 13:48:40 +02:00
Alug
1015800483
delet some double defined things
2025-09-19 13:48:38 +02:00
indev
c4149e26e8
Oops there's 1 more
2025-09-19 02:10:44 +03:00
indev
602e4df5b9
Fix smol oversight :3
2025-09-19 02:06:05 +03:00
Alug
9be5780597
rename "ffloor" global to "visffloor"
...
prevent name conflicts with a bunch of local variables named "ffloor"
2025-09-18 21:08:41 +02:00
Alug
363f4c56f4
dedupe map replacement checks
...
the actual checks are in P_CheckMapReplacements
2025-09-18 18:20:26 +02:00
Alug
9ca21f1fb4
simplify startup map checks a little
2025-09-18 16:41:07 +02:00
Alug
826183ce2a
skip checking for replaced maps on start if no extra wads are loaded
...
~~technically this also should be done for autoload~~
2025-09-18 16:41:03 +02:00
Alug
ec41a7152c
remove erronous errors
...
W_InitFileError from within W_InitMultipleFiles will handle this
2025-09-18 16:41:01 +02:00
Alug
4e394951bc
allow freecam to work with first person
2025-09-18 12:16:27 +02:00
Alug
837f74f28a
simplify startedInFreePlay check
2025-09-18 10:51:33 +02:00
Alug
fb02389922
use P_SetupCamera for P_MoveCameraToSpawn
...
also modify P_SetupCamera to always just move the camera to the playerstarts
2025-09-18 10:51:33 +02:00
Alug
f12f5b8bd1
delet P_Initsecnode
...
empty function now
2025-09-18 10:51:33 +02:00
Alug
20a3f4b6f3
only check cyan floor hack on flats that contain cyan
...
there was the remap loop that would already check this for us, so we can save a few calls to W_CheckNameForNum and memcmp
2025-09-18 10:51:33 +02:00
Alug
f1ca991041
make static, cleanup and delet dead code hw_cache
2025-09-18 10:51:33 +02:00
Alug
83df870bb5
change version string
2025-09-17 23:44:02 +02:00
Alug
8e56998c9a
Merge pull request #200 from Indev450/Saturn-Testing
...
merge testing into next branch
2025-09-17 22:42:47 +01:00
Alug
43e5f694bc
Merge pull request #181 from chromaticpipe/dynamicdelay
...
GIF dynamic delay
2025-09-17 22:42:20 +01:00
Alug
9197a50c5b
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-09-17 23:41:41 +02:00
Alug
40fb4da2e8
Merge pull request #198 from Indev450/servericonpack
...
port Map icon packet from srb2classic
2025-09-17 22:40:57 +01:00
Alug
f458fdbebe
Merge pull request #195 from Indev450/texhash
...
Do not reload every texture when adding a wad
2025-09-17 22:40:53 +01:00
Alug
069f8bc009
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-09-17 23:37:42 +02:00
Alug
a9f579d949
move replay replayhut list free and reset into M_ResetDemoList
...
use it to free demolists from within levelload when you switched maps out of a replay
2025-09-17 23:32:34 +02:00
Alug
7b0b2d8cd7
Merge pull request #197 from Indev450/fastfilesearch
...
Speedup Filesearch
2025-09-17 20:08:25 +01:00
James R
4dce42e458
R_GenerateBlendTables: allocate copy of palette for use in thread
...
The palette can be freed while this thread is still
running, which means the thread would end up reading from
freed memory.
2025-09-17 21:06:21 +02:00
James R
f819471c06
Send R_GenerateBlendTables number crunch to parallel thread
2025-09-17 21:06:18 +02:00
Alug
45393cbb78
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-09-17 21:06:13 +02:00
indev
bf6727b43a
Simplify G_ D/S cpyTiccmd, since n is always a multiple of sizeof(ticcmd_t)
2025-09-17 21:38:55 +03:00
Alug
87134a42b4
fix signal handler stuff for worker threads
...
g_in_exiting_signal_handler needs to be set BEFORE it actually exits lol
2025-09-17 20:35:32 +02:00
Alug
d27a849d79
decouple precipmobj_t from mobj_t
...
vissprite_t now keeps pointer to precipmobj directly instead of just a simple boolean check
this has multiple benefits
the mobj_t struct now can be reorderer and modified as pleased without having to worry about precipmobj struct layouts since all precipmobj -> mobj casts are eliminated
this allows to remove a massive amount of fields from precipmobj struct which never were used massively reducing the footprint of a precipmobj thing
kinda wish there was a neat way to template function headers to take different types for the same arguments in C to reduce code duplication, but this glady is atleast a rather small case
2025-09-17 17:42:16 +02:00
Alug
2aaa52c639
remove precip blendmode visability check
...
this WILL never trigger since we neither can access precipmobjs nor do their translucency values ever change
so save us a little bit of work
2025-09-17 17:41:31 +02:00
Alug
5348739a2c
fix precip translucency in software renderer
...
precipmobjs always spawned with AST_COPY blendmode which failed the check, but they are supposed to be translucent when rain
restore the correct behaviour
2025-09-17 04:25:08 +02:00
Alug
b21396bd34
ensure deterministic order for P_Random stuff passed as arguments
...
the evaluation order of arguments passed to functions is undefined in C/C++, so its up to the compiler in which order to evaluate these
P_Random functions modify the randomseed each time theyre called, which can lead to different outcomes (thus desynchs) on different platforms, compilers, compiler versions etc.
so match up with the most common which is last to first (seemingly the order gcc on nix and windows handle it)
2025-09-17 03:28:02 +02:00
Alug
19c97d3137
explicitly cast those
2025-09-17 02:48:44 +02:00
James R
421dca5615
Inflate only size out bytes
...
Saves time uncompressing an entire lump when only part of
it is needed.
2025-09-17 02:48:41 +02:00
Alug
d5b64a4df3
move G_CopyTiccmd & G_MoveTiccmd back to g_game
...
accidentally misplaced those during g_demo split
2025-09-17 01:31:18 +02:00
Alug
098d1afb50
add P_FreeLevelState + extra stuff for D_ClearState
...
this just takes out the cleanup code from P_SetupLevel so it can be called from within D_ClearState and all the mapdata will be freed when going back to the main menu
Not super crazy and really necessary in kart, but why not tbh
this is mostly based on what RR does
2025-09-17 01:31:15 +02:00
Alug
9d122aa686
change type and name of var here
2025-09-16 14:47:32 +02:00
Gustaf Alhäll
e465e83cb3
Remove maxsend limits
2025-09-16 14:47:29 +02:00
Alug
619a8e2f42
cleanup some unused stuff
2025-09-16 14:47:26 +02:00
Alug
b3c0c6f2b4
preconvert our polyvertex coords to fixed point
...
yes this is unironically faster, by atleast 5-10fps in the wandering falls test case
2025-09-16 02:45:46 +02:00
Alug
f0a1cd01c3
remove floatlenght from seg_t
...
this will get converted to fixedpoint anyways and is only used in ONE place to determine texture x offsets in gl
yes this does get readjusted in adjustsegs if our glsegs differ, but this should be so marginal so save us the work at mapload
i dare anyone to even see a difference if any
2025-09-16 02:45:41 +02:00
Alug
144740a270
declare pv1 and pv2 properly as polyvertex_t
...
this most likely was done due to issues with header includes
this saves an crapton of pointless casts and type conversions
2025-09-16 02:44:46 +02:00
Alug
0b478b7a91
get rid of "spawn_" sector_t fields
...
we now make copies of lines, sectors and vertices on mapload that have the spawn state, so those fields are redundant now
also fix copy paste that made ceiling flat angle check if its differs from the floor flat angle on netsave
saves a whopping 32bytes per sector_t entry!
2025-09-15 21:07:45 +02:00
Alug
d23451b6e7
revert demo ghosttic hitlist resynch double free hack
...
now that we dont reload the map anymore during gamestate reload
2025-09-15 17:27:10 +02:00
Alug
20897deeee
Merge branch 'servericonpack' into Saturn-Testing
2025-09-15 17:27:06 +02:00
Alug
677e381a2c
dont send server icon if current map is supposed to be hidden
...
in line with kart not sending maptitle to ms in the same case
2025-09-15 16:16:43 +02:00
Alug
4b06a3eabf
Merge branch 'fastfilesearch' into Saturn-Testing
2025-09-15 15:08:40 +02:00
Alug
36c1369041
fix filesearch oopsie
...
lulul
2025-09-15 15:08:22 +02:00
Alug
d4b179d59e
fix functionnames in polyobject interp warnings for netunarchival
2025-09-15 14:50:52 +02:00
Alug
81fbd75646
add sector checks to netsave plane interpolators
...
seems like this may be null in a few cases
2025-09-15 14:50:49 +02:00
Alug
c7e37eac05
remove inline from SaveFireflickerThinker
...
doubt theres a single map in kart that uses those and even if it wont be so much that it needs to be inlined
2025-09-15 14:39:57 +02:00
Alug
dd6403691f
fix dedi build compile
2025-09-15 14:35:53 +02:00
Gustaf Alhäll
e42b179fad
Rearrange mobj_t fields to reduce holes
2025-09-15 14:07:31 +02:00
Gustaf Alhäll
ebb0ebcab0
Reduce size of memblock_t structure
2025-09-15 14:07:28 +02:00
Gustaf Alhäll
347a5ed40a
Do not store all states for recursion inside P_SetMobjState
2025-09-15 14:07:25 +02:00
Gustaf Alhäll
dee91ed1ef
Kill RESETDATA
2025-09-15 14:07:21 +02:00
Alug
a80f702bb8
Merge branch 'Saturn-Next' into Saturn-Testing
2025-09-15 14:07:15 +02:00
Gustaf Alhäll
7d91d06ce0
Fix crash on OS X on resolutions that are not multiples of 32
2025-09-15 13:14:28 +02:00
Alug
ab1f04ac31
handle native keyboard in a better way
...
not particulary great, but i dont feel like working this out much atm
2025-09-14 23:32:25 +02:00
Alug
0696ac7340
we dont support gamecube wii or playstation lel
2025-09-14 23:20:46 +02:00
Alug
137a917f58
delet mousegrabok
2025-09-14 23:20:43 +02:00
Alug
00cfdfef27
add P_GetLocalPlayerNumForNum and P_IsLocalPlayerNum and cleanup a bunch of splitscreen checks
...
- P_GetLocalPlayerNumForNum returns the playernumber for a given index
- P_IsLocalPlayerNum returns if a playernum is local to the maschine
- replaced most if else chains from checking splitscreen things with loops using P_GetLocalPlayerNumForNum and P_GetLocalPlayerForNum
2025-09-14 21:30:56 +02:00
Alug
c1d5d153aa
Merge branch 'fastfilesearch' into Saturn-Testing
2025-09-14 20:48:33 +02:00
Alug
1fb3b2110c
bit of cleanup w_wad
2025-09-14 20:48:24 +02:00
Alug
ef9472097d
clean up faster filesearch
...
-use parts of RR´s implementation to get rid of the windows specific code and generally simplify this
- also use SRB2´s symlink detection as its simpler and saves one lstat call per searched file
2025-09-14 20:47:57 +02:00
Alug
ed75d89baf
bit of random cleanup + cache strlen in some places
2025-09-14 18:23:24 +02:00
Alug
fed4c934ad
Merge branch 'Saturn-Next' into Saturn-Testing
2025-09-14 18:20:23 +02:00
Alug
63ea13ab3c
Merge pull request #196 from Indev450/updatemd5
...
Update md5 lib
2025-09-13 13:57:05 +01:00
Alug
2c802799e8
Merge pull request #194 from Indev450/winzlib-ng
...
Replace zlib with zlib-ng on Windows
2025-09-13 13:56:57 +01:00
Alug
fe30cbb4aa
big cleanup levelloading code
...
- made levelfadecol a local variable
- renamed all the "Raw" functions
- moved axis mapthing spawn into the mapthing spawn function
- moved mapthing load to mapdata load, saves opening the THING virtual lump twice
- split out linedef init out of the loop it now gets done within linedef load code saving the hassle of iterating through all the lines twice
- removed a bunch of dead code and useless variables
- moved virtual resource free to after the mapdata has been loaded completely
- sidedef loop now increments pointer instead of reassinging it each iteration
- lastloadedmaplumpnum now gets checked for LUMPERROR instead of INT16_MAX since W_CheckNumForName returns LUMPERROR if lump was not found
2025-09-13 14:36:57 +02:00
Alug
ca1d3e337a
reset our gamepad colour in some cases
...
to account for mappalettes properly
2025-09-12 22:30:47 +02:00
indev
28f1ee6335
Attempt to fix some lua userdata being corrupted when allocated via PoolAllocator
2025-09-12 23:18:39 +03:00
Alug
91f377b382
remove remaining field initalizing thats being taken care of by calloc
2025-09-12 21:19:53 +02:00
Alug
6d6fa156f3
skip manually initializing some fields P_SetupLines
...
redundant due to earlier calloc
2025-09-12 18:29:07 +02:00
Alug
5383fee6af
speedup P_LoadRawSectors a bit
...
the sector array already will be calloc´d, so we dont need to set all of this to 0
also use a premade initalizer for some things
2025-09-12 18:24:21 +02:00
Alug
a2c7b68a60
cache player pointer for P_LevelInitStuff
2025-09-12 18:09:47 +02:00
Alug
7be0b38f47
fix taglist stuff on gamestate resend
...
got kinda lost here lulul
fixed diamond square elevator
2025-09-12 18:06:26 +02:00
Alug
4e05679b10
cache our player and sector pointers for net un/archiving
2025-09-12 17:19:36 +02:00
Alug
36d3c76a52
actually use our spawnside pointer
2025-09-12 17:08:28 +02:00
Alug
eee263c2c2
skip checking for "srb2.wad" and "patch.dta"
...
during server addon checking
both have never existed in kart and are from super old srb2 versions
so save us some string comparisons
2025-09-12 16:25:37 +02:00
Alug
c1cdb83e8d
use hash to determine if polygon state has changed
...
we do not use it in the polygon comparitors as it apparently may lay them out in a really unperformant way
2025-09-12 16:25:34 +02:00
Alug
451ab81f0b
combine this block
2025-09-12 16:22:06 +02:00
Alug
d803c1b9cd
smol change i forgor for testing branch
2025-09-12 16:00:56 +02:00
Alug
72b26c19ce
Reload from spawnsectors/spawnlines/spawnsides (adjusted for kart)
...
from https://gitlab.com/kart-krew-dev/ring-racers/-/commit/4f77c9f228274afb9f0b5bf9b30e0eb22f9b385f
2025-09-12 16:00:12 +02:00
Alug
f35d827bd4
copy initial map state on mapload for Netarchiving + cleanup
...
like this we dont have to reopen the mapdata 3 times each time we prepare a netsave
also allows us to directly compare sector and line properties
this should save a bit of time when someone joins or resynchs with gamestate system
this is based on some UDMF work from srb2
2025-09-12 16:00:08 +02:00
Sally Coolatta
358eeaa981
Don't reload level on gamestate resend
...
The level will only reload during a gamestate reload if the map is horribly mismatched somehow. Minor differences in level state are already handled by other parts of the reload, so doing this on *every* reload wastes lots of time.
2025-09-12 16:00:05 +02:00
Eidolon
55e88cf740
Put seclist nodes in LevelPool memory
...
Replaces the old freelist solution with the LevelPool, which
dramatically reduces the number of allocations needed for mobj and
precip sector assignment. In measurement, this cuts down the time taken
for spawning precipitation by 50%.
2025-09-12 16:00:02 +02:00
Eidolon
be4125e4ca
Add level pool allocator and use it for mobj, precip, thinkers
...
This should substantially reduce the number of malloc/free calls made to
create and destroy mobjs, especially during level load and net
save/load.
memory_resource standard header is not available on the OSX deployment
target we are using, so I had to write my own fixed size pool allocator.
2025-09-12 15:59:59 +02:00
Eidolon
920b00348e
Make the mouse cursor sane
2025-09-12 15:59:56 +02:00
Alug
80aeae1692
implement "startup" stuff for W_InitFileError
...
so it can I_Error if a wad file fails to load on startup
2025-09-12 15:59:52 +02:00
toaster
0e52845f50
W_VerifyNMUSlumps: Rewind back to beginning of file handle for WAD
2025-09-12 15:59:47 +02:00
toaster
ca5dd9e78f
W_VerifyNMUSlumps: Clean up
...
- Bake W_VerifyFile in, since it was a stub never called anywhere else
- Make it operate off file handles, since the following locations quickly filesearch'd more than once in quick succession.
- W_InitFile
- Command_Addfile
- Remove spurious call from W_InitMultipleFiles for `-file` startup param
2025-09-12 15:59:44 +02:00
toaster
956fc099ad
findfile aggressive optimisation: If srb2home and srb2path are the current working directory, don't search in them
...
srb2path will report "." while this optimisation is in play, but this can be disabled if necessary by modifying the small #if (1) in IdentifyVersion
2025-09-12 15:59:41 +02:00
Sally Coolatta
1da376e777
Create doomednum lookup for loading mobjthinkers
...
Cuts off 10% of the time it takes to load mobj thinkers.
2025-09-12 15:59:37 +02:00
Alug
b0b4259af6
fix "missing initializer for member" warning
2025-09-12 15:59:34 +02:00
Alug
26343b4449
remove duped functions in r_fps
...
those didnt do anything different tbh
2025-09-12 15:59:31 +02:00
Alug
a46926f5cc
Set SDL_HINT_APP_NAME SDL hint
2025-09-12 15:59:28 +02:00
Eidolon
49518059d1
Use std::vector for r_fps storage
...
This isn't an optimization for the mobj pointer list, but it is an
optimization for level interpolators, which previously made N
allocations for N non-mobj thinkers. Now those allocations are amortized
according to std::vector's storage.
This could still be further cleaned up to be more C++-ey.
2025-09-12 15:59:24 +02:00
Alug
e6ce425bbd
ceepeepeefy r_fps
2025-09-12 15:59:21 +02:00
Alug
19b9ec0521
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-09-10 13:23:22 +01:00
Alug
c98861be6e
fix tracker module playback going nuts when changing audio buffer size
...
forgor CV_CALL :chaosleep:
2025-09-10 13:08:26 +02:00
Alug
29db810c54
delet remaining "highcolor" stuff
2025-09-09 18:17:04 +02:00
indev
14bf24ed27
Revert stopping music in D_StartTitle and G_EndGame
2025-09-09 18:08:58 +03:00
Alug
ff5bb34204
parentheses hell
2025-09-08 19:33:55 +02:00
Alug
77a00b08a5
optimize gl vhseffect slightly
...
we dont need to remake our screen texture 3 times
also avoid combining float with interger maths esp in the loop
2025-09-08 19:29:01 +02:00
Alug
27caf1bc70
Merge branch 'servericonpack' into Saturn-Testing
2025-09-08 18:09:09 +02:00
Gustaf Alhäll
01b24e5417
Fix use-after-free when listing servers
2025-09-08 18:08:45 +02:00
Gustaf Alhäll
7a320c9c54
Refactor aatree_t to accept strings
2025-09-05 20:05:10 +02:00
Alug
3a65b687a8
some more micro optimizations p_mobj
...
dont revaluate P_GetSlopeZAt multiple times due to min/max
save a few abs calls by putting em in constants
remove pointless fixedmuls
2025-09-05 20:05:05 +02:00
Alug
0919ad015c
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-09-05 20:05:01 +02:00
indev
437f900c25
Clear dangling pointers in VoteScreen struct after mapload
2025-09-05 18:21:01 +03:00
indev
cd7ce5698c
Update vote background if hud.setVoteBackground was called on vote screen
2025-09-05 17:34:30 +03:00
indev
86eda4f358
Revert "wonky: cache and reuse our testpoint subsector for sloped mobj z checks"
...
This reverts commit 6f93299aaf .
2025-09-03 18:51:35 +03:00
indev
d791d2ce55
Revert "make sure subsec gets initalised to smth"
...
This reverts commit 32d8120516 .
2025-09-03 18:51:32 +03:00
Alug
1883a4884a
(hopefully) fix replayhut calling waitingplayers drawer
...
due to server list setting netgame to true and never resetting it
also cleanup some mess here
lets hope this doesent break anything
2025-09-03 14:10:26 +02:00
Alug
403c34fe5c
Merge branch 'servericonpack' into Saturn-Testing
2025-09-03 12:34:06 +02:00
Alug
f86a99cd1b
Merge branch 'Saturn-Next' into servericonpack
2025-09-03 12:33:56 +02:00
Alug
85cac497ea
fixup building map title string for serverinfo
...
fixes numerous issues, like zonetitle not appearing on bots and serverinfo screen
and generally making this more sane by appending stuff if needed
also fixes "Zone" not displaying in serverinfo screen
2025-09-03 12:33:49 +02:00
Alug
92d6c2b7b0
make patch/pixel conversion account for padding data/no data
...
just set everything to transparent pixel 247 (0xf7)
so we neither write nor read garbage data and just can cut it out as transparent during pixel to patch conversion
2025-09-03 12:32:32 +02:00
Alug
46be62b256
Merge branch 'servericonpack' into Saturn-Testing
2025-09-02 23:04:03 +02:00
Alug
f67f8e7dbf
cache patch width
...
just to avoid some cache misses in a somewhat tight lööp
2025-09-02 22:20:37 +02:00
Alug
191fd4b68a
Merge branch 'servericonpack' into Saturn-Testing
2025-09-02 22:03:59 +02:00
Alug
c504c0f8f0
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-09-02 22:03:55 +02:00
indev
6adf39b460
Don't check for opengl in NOHW/DEDICATED builds
2025-09-02 23:01:07 +03:00
Alug
e160427108
add smol comment
2025-09-02 21:38:10 +02:00
Alug
275d28c9c6
implement map icon request counter/limit
...
tries 5 times then gives up
this is just since vanilla clients do not send anything back to us so this would endlessly retry which is pointless
can be adjusted if needed
2025-09-02 21:27:32 +02:00
Alug
2a848e32e4
port map icon packet for serverinfo screen
...
based on https://codeberg.org/srb2classic/srb2classic/pulls/134
with adjustments
many thanks for the help @indev450 ! <3
2025-09-02 21:27:28 +02:00
Alug
039daa0145
inline P_PointOn stuff + fix declarations
2025-09-02 14:56:41 +02:00
Alug
a425935bc4
Merge branch 'Saturn-Next' into Saturn-Testing
2025-09-02 14:56:36 +02:00
indev
6af09bd215
Add offset for small nametags in opengl without shearing enabled
2025-09-01 19:56:42 +03:00
Gustaf Alhäll
015d9208e3
Refactor software blitting logic
2025-09-01 18:24:53 +02:00
Alug
f247796ffc
small cleanup PT_ServerTics
2025-09-01 11:03:31 +02:00
Alug
29c72be994
Revert "Always accept tics received from the server"
...
This reverts commit 29006e9926 .
Causes random desynchs
2025-09-01 10:58:28 +02:00
Alug
8d70016edc
use a macro for mobjtimefrac
...
just looks a little tidier
2025-08-31 13:36:08 +02:00
Alug
6919b9fd91
skip distance checks if we dont use interpolation
...
will also indirectly skip calling R_GetTimeFrac
2025-08-31 13:36:05 +02:00
Alug
c5d58f5de2
this went missing during merge
2025-08-31 13:36:02 +02:00
GenericHeroGuy
4855d29d31
Fix interpolation going missing for freecam
2025-08-31 13:35:57 +02:00
GenericHeroGuy
2d22c2b265
Rework rendertimefrac and gate it behind a function
...
Fixes intermission background shifting when toggling fullscreen (yup)
and fixes audio caption text losing interp when paused
2025-08-31 13:35:54 +02:00
Alug
acf121cac6
Merge branch 'Saturn-Next' into Saturn-Testing
2025-08-31 13:35:51 +02:00
Alug
94d01d1ee9
check clientcfg packet length to skip potential garbage data
...
dont think this ever broke, but better safe than sorry
2025-08-30 14:43:04 +02:00
Alug
e3c9ae6de5
replace strlcat and strlcpy with OpenBSD versions in "string.h"
...
those started throwing warnings on Windows, so just use the BSD ones, since those also match with what we got on nix
2025-08-28 15:51:57 +01:00
Alug
dff8f549da
precalculate linedef angles
...
so we dont have to recalc it runtime
the map is static and linedefs shouldnt be able to be moved so this should be fine
2025-08-28 16:25:59 +02:00
Alug
b93a5c5305
replace those with P_GetLocalPlayerForNum
2025-08-28 16:25:35 +02:00
Alug
0c75d8aca3
P_CheckCameraPosition can be static
2025-08-28 16:25:18 +02:00
Alug
71c28ad00b
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-08-28 16:25:14 +02:00
indev
7e5acd72c1
Make replay search textbox fit on all resolutions
2025-08-28 15:37:03 +03:00
Gustaf Alhäll
29006e9926
Always accept tics received from the server
2025-08-28 10:10:29 +02:00
indev
10d4365376
Pass rgba or fadergba pointer into P_LoadSideColormapGL directly
2025-08-27 23:17:18 +03:00
Alug
611edea6e0
make paletterender lightlevel shifting less ambigous
...
that macro was from the older approach, but is uneeded now
this better shows whats going on here
2025-08-27 10:11:30 +02:00
Alug
fcbf45521a
smol optimizations by avoiding multiple reevaluations
...
due to clamping macros, those may get reevaluated multiple times
nothing crazy
2025-08-27 10:07:34 +02:00
Alug
32d8120516
make sure subsec gets initalised to smth
2025-08-27 09:01:35 +02:00
Alug
fdba6a253a
dont recheck paletterendering state multiple times during opengl lighting calc
2025-08-26 19:33:31 +02:00
indev
18bdbfdb07
Revert using quick dist functions in lua hud, since some lua scripts need it to be precise (lua driftgauge for example)
2025-08-26 20:17:40 +03:00
Alug
6f93299aaf
wonky: cache and reuse our testpoint subsector for sloped mobj z checks
...
its suprisingly common for the test coords to not change between calling those functions, so we can potentially save us alot of R_PointInSubsector calls
Need to check for branch prediction slowdowns, but from some quick timedemoing, this speeds up things a bunch
2025-08-26 18:05:33 +02:00
Alug
c47814c29a
dont revaluate HighestOnLine twice for slope mobj z checks
2025-08-26 17:49:40 +02:00
Alug
0dd49869f5
Merge branch 'fastfilesearch' into Saturn-Testing
2025-08-26 12:05:23 +02:00
Alug
74c9c09fcd
remove skipexclude variable
...
with the folderchange check this becomes erronous
2025-08-26 12:04:14 +02:00
Alug
6f891dd235
use GetFileAttributes for pathisdirectory on Windows
...
should slightly speedup gamestartup with autoloaded files
2025-08-26 10:39:02 +02:00
Alug
6e123b0732
fix filesearch portability
2025-08-26 10:38:58 +02:00
Alug
2c51c9f5f8
use GetFileAttributes for pathisdirectory on Windows
...
should slightly speedup gamestartup with autoloaded files
2025-08-26 08:36:00 +01:00
Alug
8a781b4fa2
fix filesearch portability
2025-08-26 08:34:57 +01:00
Alug
e3a79ab099
fix windows compile
2025-08-26 08:24:51 +01:00
Alug
05364cc4dc
fix "invert encore special"
...
R_NoEncore always checked for the wrong special "240"
we keep that behavior for compat, incase someone else figured it and used that
2025-08-26 09:44:00 +02:00
Alug
3c5d997eff
simplyfied P_PointOn checks from prboom
...
should be functionally identical
2025-08-26 09:43:11 +02:00
Alug
696a9ea464
smol cleanup r_data
2025-08-26 09:43:05 +02:00
Alug
c2d97397e8
test: use faster distance and sight functions for hud hooks
2025-08-26 09:42:58 +02:00
Alug
4f534c5ce3
remove d_main include from filesrch
2025-08-25 16:12:57 +02:00
Alug
15288ced57
this ceepeepee
2025-08-25 16:10:49 +02:00
Alug
30eca524d9
remove d_main include from filesrch
2025-08-25 16:10:46 +02:00
Alug
168a2c9684
just drop the connection instead of I_error if connection gets lost
...
partial port from srb2classic
2025-08-25 15:40:50 +02:00
Alug
0e05dca3d5
try to fix nodes being occupied if connection didnt recieve any acks
...
partial port from srb2classic
2025-08-25 15:40:50 +02:00
Alug
717f5e3c13
Merge branch 'fastfilesearch' into Saturn-Testing
2025-08-25 13:10:03 +02:00
Alug
2cad7f7210
dont recheck if we should skip the folder if folder did not change
...
saves a whole lotta string comparisons and speeds this up even further
2025-08-25 12:56:09 +02:00
Alug
34783cfe94
dont evaluate strtol multiple times
2025-08-25 03:39:37 +02:00
Alug
12149a4773
target x86-64-v2 instead of nocona for 64bit windows
...
slightly newer target, should still be compatible enough with anything from 2009 and onwards
may help with compiler optimizations
needs some testing
32bit builds remain unchanged as they are intended purely for compatibility
2025-08-24 23:02:13 +02:00
Alug
7d81990699
always set this to 0
...
dont need to check this beforehand
2025-08-24 23:02:09 +02:00
Alug
531de8bd1e
make lua string to number conversion consistent between platforms
...
effectively clamps it to 32bit range
maybe fixes some issues between windows and other builds
2025-08-24 23:02:06 +02:00
Alug
232e6a4b5b
use hash checks for W_CheckNumForName
2025-08-24 23:02:03 +02:00
Alug
65d3684d0b
Merge branch 'Saturn-Next' into Saturn-Testing
2025-08-24 23:01:53 +02:00
Alug
6017543666
dont try to make glpatch from nothing
2025-08-24 23:01:48 +02:00
Alug
7c7f924ef1
actually dont add any level interpolators on render_none
2025-08-21 18:33:11 +02:00
Alug
ba40d45321
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-08-21 18:33:08 +02:00
indev
3af0009453
Fix off-by-one in M_FindFirstMap
2025-08-20 16:18:33 +03:00
Alug
7ac01390d0
dont add mobj and level interpolators on render_none
...
i dont think we need to interpolate anything on dedicated
this should improve performance a bit on maps with many mobjs/moving level stuff
2025-08-19 11:49:59 +02:00
Alug
6dee986a28
Merge branch 'Saturn-Next' into Saturn-Testing
2025-08-19 11:49:56 +02:00
Alug
145eecf8a4
move sprite reset stuff into R_ResetMobjInterpolationState
...
this also gets called at the start of the tic
and sets a bunch of rendering crap eitherways
so we can save another thinker loop and a bunch of checks with this
bit of perf gain, 3-4fps on that awful hadal trench timedemo
2025-08-19 11:49:29 +02:00
Alug
080719c251
move all of this stuff into the switch above it lel
2025-08-18 17:56:38 +02:00
Alug
d58719d09b
cleanup and splitup P_LoadSideColormaps
2025-08-18 17:56:35 +02:00
Alug
05d1eab441
remove bottommap,midmap and topmap stuff
...
was non functional anyways so get rid of it
2025-08-18 17:56:31 +02:00
Alug
caffda3221
dont need to do this without viewmorph stuff
2025-08-18 17:56:08 +02:00
Alug
650a50278a
move camera slidemove stuff behind ifndef NOCLIPCAM
...
dont think this is needed at all with camera noclip
2025-08-18 17:56:05 +02:00
Alug
1ef0909204
dont need to completely clamp those
...
we already check for the top coords right before
2025-08-18 17:55:55 +02:00
Alug
42878841e6
Fix FOF intersections in multitagging for the renderer.
...
backport from srb2
2025-08-18 17:55:52 +02:00
Monster Iestyn
34e4cf123d
Fix FOF slopes briefly glitching on level load in software mode, by ensuring the FOFs' target sectors have hasslope set on creation
2025-08-18 17:55:48 +02:00
Alug
7ffb3ebdfe
Merge branch 'Saturn-Next' into Saturn-Testing
2025-08-18 17:55:45 +02:00
Alug
684a43a95c
fix software extra 3d floors
...
lmao was a copy paste oopsie from ages ago
shoutout to phoenix´s new map making me find this
2025-08-18 16:49:36 +02:00
Alug
4fcb41f659
mark stuff for blitting loop as const and with register
...
gives another 5-7fps or so for me
2025-08-17 18:19:20 +02:00
Alug
2d1c876e0d
Merge branch 'Saturn-Next' into Saturn-Testing
2025-08-16 22:21:13 +02:00
Alug
8d1ef1721f
port srb2classic´s sdl blitting stuff for software
...
all credits to hanicef
mostly from https://codeberg.org/srb2classic/srb2classic/commit/a1fa0b89dbf75ef8be17c9ca5c728cc9c1848582
and
https://codeberg.org/srb2classic/srb2classic/commit/a1cf54e66ad1cb66af99056bc940fc68dce24224
boosts my fps around 20-25 fps
2025-08-16 22:20:58 +02:00
Alug
02ffceb300
fix rotating polyobject interpolation
2025-08-16 22:20:55 +02:00
Alug
44fe156751
update comment for lightcontrast
2025-08-16 22:20:52 +02:00
Alug
aca48d69cd
style fixes
2025-08-16 22:20:48 +02:00
Alug
294ce055cd
mark this with restrict
2025-08-16 22:20:33 +02:00
Alug
4117eb5b40
fix Paranoia compile
2025-08-16 22:20:30 +02:00
Alug
a9068ee162
mark this with "noreturn"
...
clang kept yelling for some reason
2025-08-16 22:20:27 +02:00
indev
9549a204a5
Add tooltip for centered chat text
2025-08-15 22:57:09 +03:00
indev
c276736002
Add option to center text in chat (chatcentertext)
2025-08-15 21:51:58 +03:00
Hanicef
cfd960124e
Do not access memory on misaligned addresses
2025-08-15 10:11:07 +02:00
Alug
77cd898bd2
TEST: compile with fwrapv
...
fixes clang desynchs with prng
maybe other stuff/platforms aswell
2025-08-15 10:02:59 +02:00
Alug
e7c40dd914
fix -Wunused-value warnings
...
we dont do anything with this, so just skip both
2025-08-15 10:02:56 +02:00
Alug
bcb1a1d5eb
port RR´s c++ compatible byteptr macros
...
means we can also get rid of the mumble hack
2025-08-15 10:02:52 +02:00
Alug
bf53db8d68
Merge branch 'Saturn-Next' into Saturn-Testing
2025-08-15 10:02:48 +02:00
Alug
b5dfe74cfe
add USECLANG compile flag to force building with clang
2025-08-15 08:01:58 +02:00
Alug
6c891f1146
supress align and unkown pragma warnings in clang
2025-08-15 08:01:56 +02:00
Alug
7d06f59da5
append those to LDFLAGS instead of libs
...
so they may be passed to other things
2025-08-15 08:01:47 +02:00
Alug
9dee0f0ea8
fix restrict being in wrong place in declaration R_DrawColumnPixel
2025-08-15 08:01:37 +02:00
Alug
9338b5b10f
dont need to realloc this
...
didnt see when i added realloc everywhere this doesent need to keep old data
2025-08-14 16:19:17 +02:00
Gustaf Alhäll
b7ecffedcd
Fix pixel shift caused by negative pixel positioning in software
2025-08-13 22:44:25 +02:00
Alug
71ab8c0b7d
workaround for lua menu conrols for spectators
...
TODO: refactor all of this into one cmdbuilder and get rid of the codedupe in p_user for cameracmd
2025-08-13 22:40:50 +02:00
Alug
8901c62201
Merge branch 'Saturn-Next' into Saturn-Testing
2025-08-13 22:40:46 +02:00
Alug
7deeb4486f
port RR camera slope pitch stuff + make it toggable
...
"cam_pitch" this makes the camera pitch on upwards and downwards slopes a bit
2025-08-13 18:01:00 +02:00
Alug
a559e36306
Merge branch 'Saturn-Next' into Saturn-Testing
2025-08-12 20:29:18 +02:00
Alug
602bd1a010
fix directional light stuff
2025-08-12 20:29:13 +02:00
Alug
f57b8092fc
dont need to reinit those gl vars
2025-08-12 20:29:10 +02:00
Alug
5777c638f1
hack for vanilla gba rr cyan floor in gl
2025-08-12 20:28:54 +02:00
Alug
60307da80e
move dedi idle stuff into function + port smol cleanup from srb2
2025-08-12 20:28:51 +02:00
Gustaf Alhäll
d6e97c328a
Simplify NetXCmd client distribution
2025-08-12 20:28:48 +02:00
Alug
e4f35e827d
free minimap patch on mapload
2025-08-11 13:48:02 +02:00
Alug
e7cab1a376
check if minimaphead exists
...
hopefully fixes a random crash there
2025-08-11 13:47:59 +02:00
Alug
6eb1114d17
reduce scope of some more netstuff
2025-08-11 13:47:54 +02:00
Alug
e6a0b4f58b
fix oopsie copy paste
2025-08-10 18:34:43 +02:00
Alug
c8d9ff6575
use GetFileAttributes also for preparefilemenu
...
untested as of now
2025-08-10 18:34:40 +02:00
Alug
0d9d176415
use GetFileAttributes instead of stat for filesearch on windows
...
this is slightly faster and the recommended way of doing this
apparently stat on windows has to emulate some POSIX stuff for that which may slow it down
2025-08-10 18:34:35 +02:00
Alug
e1413764f6
speedup addon search
...
by adding a blacklist of folders
logs, luafiles, replay etc shouldnt ever contain addons so those can be skipped entirely
this massively speeds up searching for addons on windows
also will make findfile try to search in the designated addon folders first so it doesent look in the home or kart folders before it
this is probably not the best way to do things
but idk what im even doing, im not a coder just some chao who likes to sleep all day
2025-08-10 18:34:11 +02:00
Alug
ca04e084a2
link stdc++. pthread and gcclib statically on windows
...
fixes the game throwing super cryptic errors when you dont have the right dlls
2025-08-09 23:32:03 +01:00
Alug
56d03042ec
link stdc++. pthread and gcclib statically on windows
...
fixes the game throwing super cryptic errors when you dont have the right dlls
2025-08-09 23:31:55 +01:00
Alug
0c8df833e9
test: use SDL_GetDesktopDisplayMode instead of SDL_GetCurrentDisplayMode
...
this seems to fix some smol freezes for some
need to test this a bit
2025-08-09 22:32:24 +01:00
Alug
f275eb5f9a
test: disable sdl textinput when not using native keyboard layout
...
this may fix issues on newer sdl2/-compat versions with dead keys on non us layouts
2025-08-09 22:32:20 +01:00
Alug
88081068e9
fix oopsie copy paste
2025-08-09 22:32:13 +01:00
Alug
9893584b4f
use GetFileAttributes also for preparefilemenu
...
untested as of now
2025-08-09 22:28:45 +01:00
Alug
0b4fad3cca
use GetFileAttributes instead of stat for filesearch on windows
...
this is slightly faster and the recommended way of doing this
apparently stat on windows has to emulate some POSIX stuff for that which may slow it down
2025-08-09 21:26:15 +02:00
Alug
bbb4749815
speedup addon search
...
by adding a blacklist of folders
logs, luafiles, replay etc shouldnt ever contain addons so those can be skipped entirely
this massively speeds up searching for addons on windows
also will make findfile try to search in the designated addon folders first so it doesent look in the home or kart folders before it
this is probably not the best way to do things
but idk what im even doing, im not a coder just some chao who likes to sleep all day
2025-08-09 17:21:21 +02:00
Alug
4fc780298f
remove I_BaseTiccmd
...
just complicates things, can just memset our ticcmnds instead
psure this was used ages ago for smth but its not needed here at all
2025-08-09 17:21:18 +02:00
Alug
f24f3b5b23
Merge branch 'Saturn-Next' into Saturn-Testing
2025-08-09 17:21:15 +02:00
Alug
ff6279a406
add P_GetLocalPlayerForNum
...
just to get rid of ternaries lel
2025-08-09 17:21:08 +02:00
Alug
c36f64e97b
use memcmp for legacy sky check
...
just gotta know if first three letters match it
2025-08-09 17:21:05 +02:00
Alug
2c4bee6e6a
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-08-09 00:50:50 +01:00
Alug
7b776f01bd
change flow of K_drawKartStats a bit
...
nothing notable, just the non splitscreen path will return early now
2025-08-08 22:43:43 +02:00
Alug
43b7492300
disable pointless "Couldn't read mobj_t" warnings in replays
...
mobjs just cannot be unarchived in replays ever
so this will always spam those for something that WILL never work in kart
maybe if i decide to fix this for 32p or smth those become useful again
2025-08-08 22:29:29 +02:00
indev
1fe79fe236
Add -strict, -strict-soc and -strict-lua cli params
...
Both trigger I_Error if a warning occurs during addon load in a SOC or lua
script
2025-08-08 18:59:07 +03:00
Alug
222b63d2c3
move the windoze thing to windoze makefile
2025-08-08 17:53:25 +02:00
indev
a7c41b458a
Use NOLIBGME instead of NOGME
2025-08-08 18:33:24 +03:00
indev
3901c7c7da
Revert "Fix makefiles checking for NOLIBGME instead of NOGME"
...
This reverts commit 932a08b2da .
2025-08-08 18:31:45 +03:00
indev
932a08b2da
Fix makefiles checking for NOLIBGME instead of NOGME
2025-08-08 18:29:05 +03:00
indev
4c97a4f9e0
Fix potential buffer overflow in DEH_LoadDehackedFile
2025-08-08 17:53:46 +03:00
indev
a1d16b4613
Update dedicated/i_sound.c I_StartSound and I_UpdateSoundParams
2025-08-08 17:43:40 +03:00
Alug
16e1e00c67
"reenable" midi support
...
well it was never really disabled, but like this we can atleast change its volume lel
menu entry is still disabled, i dont think theres a single map with midi music, so this would just clutter the menu
2025-08-08 00:55:06 +02:00
Alug
b76fc9699a
fixup midi menu stuff
...
i love M_DrawSkyRoom
2025-08-08 00:55:03 +02:00
indev
cb3638e3ab
Add SetupVote hook
2025-08-07 23:48:11 +03:00
Alug
e85d91e682
save a few checks for st debug drawer
...
if we dont use it
2025-08-07 22:27:28 +02:00
Alug
2653b59af4
dont double free our vote patches
...
those may point to the same thing so uhhhh
PU_PATCH_LOWPRIORITY will ensure the memory will be freed on mapload
2025-08-07 22:26:27 +02:00
Alug
caff071a1b
fix spacing in Z_CheckHeap errors
2025-08-07 22:10:03 +02:00
JugadorXEI
86ccf40884
Fix displayplayers.iterate hang when multiple viewports view the same player
2025-08-07 20:51:31 +02:00
Alug
85dba64b84
Merge branch 'Saturn-Next' into Saturn-Testing
2025-08-07 20:51:28 +02:00
Alug
40165fd6db
make leveltitlecard be affected by colour hud
2025-08-07 19:42:39 +02:00
Alug
c701e1fe7e
make inputdisplay colour match the rest of colourhud better
2025-08-07 19:38:03 +02:00
Alug
525e19566e
smol refactor hwr precache
...
not faster or anything
real time consuming thing is he actual calls to getetxture and getflat
2025-08-07 19:38:00 +02:00
Alug
27e734bde0
make music toggle/volume handling less of a mess
...
based on work in srb2 from sphere
this gets rid of all the duplicated midi stuff
since we dont really have a whole midi soundtrack like srb2, S_GetMusicLumpNum will always prefer non midi music
2025-08-06 19:49:35 +02:00
Alug
fa10eb5801
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-08-06 18:09:24 +01:00
Alug
2e44a50f7f
Merge branch 'Saturn-Next' into Saturn-Testing
2025-08-06 00:13:39 +02:00
Alug
bd53786887
fix LoadElevatorThinker interp oopsie
2025-08-06 00:12:34 +02:00
Alug
ad1b1eabe4
fix levelstuff not being interpolated on netgame join or resynch
...
i love polyobjects
2025-08-06 00:10:47 +02:00
Alug
2de9a2be68
fix a desynch due to wrong assumption
2025-08-05 18:33:02 +02:00
Alug
e120907e0f
make driftgauge stuff a bit more readable
2025-08-03 20:12:13 +02:00
Alug
b0c217201e
move flat cyan check into a function
...
and also limit it to software renderer only
we dont need this anywhere else, so can save a bit of work
2025-08-03 15:59:57 +02:00
Alug
dac7026739
use R_GetFlat here
...
does the exact same thing
2025-08-03 15:59:23 +02:00
Alug
91a4646f19
dont PU_CACHE our planeflats
2025-08-03 15:51:52 +02:00
Alug
8963e17b83
check if __THROW is defined
...
Windows does not have it at all, so we gotta check this otherwise compile may fail
2025-08-03 14:40:09 +01:00
Alug
8ba52e2530
check if __THROW is defined
...
Windows does not have it at all, so we gotta check this otherwise compile may fail
2025-08-03 14:40:01 +01:00
Alug
bf2184582a
delet those
2025-08-03 16:30:56 +02:00
Alug
501a770fee
Merge branch 'optional-freeslot-test' into Saturn-Testing
2025-08-03 16:30:25 +02:00
Alug
327f7085f6
idk whats up here with the win libs
2025-08-03 16:30:17 +02:00
Alug
8aef549cfc
restore optional freeslot stuff
2025-08-03 16:24:35 +02:00
Alug
8dd268b83e
fix conflicts
2025-08-03 16:23:00 +02:00
Alug
5fddc3156b
Merge branch 'Saturn-Next' into optional-freeslot-test
2025-08-03 16:22:30 +02:00
Alug
d6976ca64f
inline most of lua lib stuff
...
a bit faster
2025-08-03 16:15:15 +02:00
Alug
809219d5e8
Merge branch 'Saturn-Next' into Saturn-Testing
2025-08-03 16:08:20 +02:00
Alug
278dd12ced
Merge branch 'Saturn-Next' into Saturn-Testing
2025-08-03 15:51:58 +02:00
Alug
f3cfa969c9
TEST:raise size of sectors considered too smol for precip
...
theres been a bunch of very smoll sectors that still get precip spawned (see howling bogs, outside of the actual map)
this i just an abitrary value, so gotta see how thi s goes
2025-08-03 15:39:01 +02:00
Alug
7b64b22012
some tiny optimizations
2025-08-03 15:38:58 +02:00
Alug
267ccae3a9
Add driftpulse controller rumble
...
inspired by radioracers, this does a "weak" rumble pulse the moment the sparks pulse (this is slightly after reaching the new driftlevel)
may want a toggle for this
2025-08-03 15:38:55 +02:00
Alug
5f77dbb946
cleanup the wadpath mess
2025-08-03 15:38:51 +02:00
Alug
1a46d7d16c
HACK reset demo.inreplayhut on levelload when not in replay playback
...
this is really hacky, but M_QuitReplayHut will be skipped if we change maps, connect to a server or basically anything in that manner from within a replay that we started from the replayhut
which can lead to crashes or the replayhut to become nonfunctional
note, like this demolist is not freed, but that shouldnt matter much since it will be freed anyways the moment you open the replayhut again
2025-08-03 15:27:55 +02:00
Alug
c8a2278cb7
Testing again
2025-08-03 15:25:13 +02:00
Alug
75b269d4bb
Merge branch 'updatemd5' into Saturn-Testing
2025-08-03 15:24:39 +02:00
Alug
35e499027d
Merge branch 'texhash' into Saturn-Testing
2025-08-03 15:24:34 +02:00
Alug
356b2f279c
Merge remote-tracking branch 'origin/winzlib-ng' into Saturn-Testing
2025-08-03 15:24:30 +02:00
Alug
eba5965220
move rainbow color calc into K_Rainbowcolor
2025-08-03 14:42:49 +02:00
Alug
feda0bae80
update md5 lib
...
no real changes, mostly just cleanup and some memory alignment fixes
2025-08-03 00:38:52 +02:00
Alug
44ecb677ad
fix merge conflicts texturehashing
2025-08-03 00:37:28 +02:00
Alug
3e99f4d142
Do not reload every texture when adding a wad (squashed)
...
port of https://git.do.srb2.org/STJr/SRB2/-/merge_requests/1725#c829d21709a4f5cd81d140271e883bc40dd00b1b
2025-08-03 00:35:46 +02:00
Alug
2891983cde
replace zlib with zlib-ng on windows
2025-08-03 00:32:40 +02:00
Alug
612f910b9c
Merge remote-tracking branch 'origin/Saturn-Next' into winzlib-ng
2025-08-03 00:29:50 +02:00
Alug
a9d0e2154b
clamp software lightlevels before shifting it
...
was a little oopsie porting this over
,after shifting we only get 32 lightlevels
decided to clamp this in range aswell, just incase
2025-08-02 19:13:23 +02:00
Alug
16a0953d1d
fix the "is valid for C/ObjC but not for C++" warnings
...
fixes https://github.com/Indev450/SRB2Kart-Saturn/issues/192
2025-08-02 01:54:57 +02:00
Alug
737ae08355
dont need to reinit those ever
2025-08-02 01:01:06 +02:00
Alug
6d83a7e187
remove usefulness and volume from sfxinfo_struct struct
...
those are unused anyways, hope this doesent break shit lol
2025-08-02 01:00:58 +02:00
Alug
56df9b6af3
who tf needs 999999999 sound channels
...
:chaobaba:
even 255 are kinda overkill lol
2025-08-02 01:00:51 +02:00
Alug
7f2435d821
add an Accessibility options menu
...
still a work in progress, feel free to suggest more things to add!
2025-08-01 22:26:00 +02:00
Alug
b180f29fd9
readd secbright to menu
...
into advanced video options menu
2025-08-01 21:27:38 +02:00
Alug
32c85f96a4
remove secbright from menu
...
need to slot it somewhere else but little too lazy atm
2025-08-01 21:27:35 +02:00
chromaticpipe
ec83c60320
Configurable sector brightness in software
2025-08-01 21:27:32 +02:00
chromaticpipe
fb4a912dba
Clamp the lightlevel at the start of HWR_Lighting()
...
Allows secbright to work without shaders
2025-08-01 21:27:29 +02:00
James R
123b2aa60b
lua_hooklib.c: refactor HUD hook call
2025-08-01 21:04:30 +02:00
Logan Aerl Arias
bd82a8db29
Update lauxlib.h
...
lauxlib.h: mark luaL_error as a REPORT function
2025-08-01 21:04:27 +02:00
Alug
6f71fc17c2
mark this as unlikely
...
those will never run ever after displaying once
2025-08-01 21:04:24 +02:00
Alug
d8c3e9f41c
fix windows being unable to link with LTO and openmpt
...
idk why this works but it does, mirrors how it was before the new makefiles
2025-08-01 17:55:02 +01:00
Alug
e10345b4de
pass "-g" again for lto and asan on windows
...
for some weird reason it will omit all debug symbols otherwise, which we need for crashlogs and stuff
2025-08-01 17:31:12 +01:00
Alug
2ab66b113c
we dont need cv_samplerate with sdl mixer
2025-08-01 04:51:00 +02:00
Alug
f64263cf6f
remove some unused stuff s_sound
2025-08-01 04:50:57 +02:00
Alug
55c72f32da
rename buffersize to audiobuffersize
...
buffersize was not a good name lel
2025-08-01 04:50:54 +02:00
Alug
53bc12baad
init "lenght" in S_AddSoundFx
...
seems like this never init this lel
2025-08-01 03:58:41 +02:00
Alug
b391e763bc
fix gme
2025-08-01 03:56:47 +02:00
Alug
2bae0bdb0f
indent deez
2025-07-31 23:34:29 +02:00
Alug
d42df54901
fix borderless sometimes not toggling on windows
...
idk why windoze is like this, but gotta call this after SDL_SetWindowFullscreen here
2025-07-31 23:34:28 +02:00
Alug
e6256d448f
TEST: banish LUA_Step
...
checking stuff there never seemed to be any garbage left here
so we can just skip this
2025-07-31 21:23:33 +02:00
Alug
ad1a980eb1
memset listener outside the loop S_StartSoundAtVolume
...
same effect, but we dont need to call it multiple times and can be sure this is never unitialized
2025-07-31 19:55:29 +02:00
Alug
1b50858fa6
add a configurable same sound limit
...
inspired by dsda-doom
in alot of cases the game may play a crapton of the same sound at once, becoming unbearably loud
2025-07-31 19:42:56 +02:00
Alug
3276bbb7b6
restore mumble postional sounds for displayplayers
...
we essentially always passed 0 before lol
2025-07-31 19:42:53 +02:00
Alug
dc00fa3429
fix passing garbage to mumble outside of levels
...
this just deadass passed the unitialized listener array into mumble
2025-07-31 19:42:37 +02:00
indev
dc9276b73c
Make 'visit mb.srb2.org/addons' text fit on default resolution ('& make' bit refers more to wiki than mb anyway)
2025-07-31 13:33:48 +03:00
Alug
271d70d6f3
inline HWR_GetTexturePalette
...
makes ui draw slightly faster from quick test
should be in hw_glob, but cant include hw_main there Zzz...
2025-07-30 15:29:56 +02:00
Alug
e52a6c430b
smol changes k_hud
...
nothing crazy mostly just smol reordering
2025-07-30 14:55:44 +02:00
Alug
d77d25acf8
use hypotf for P_SegLengthFloat
...
well its hypot but for floats lel
2025-07-29 19:21:34 +02:00
Alug
9898809f0a
remove erronous HWR_FreeExtraSubsectors call
...
this will be called from within HWR_CreatePlanePolygons anyways
2025-07-29 18:48:02 +02:00
Alug
48768aa13c
fix the rare infinite loop hang in ogl (sunset hill map)
...
use new doom-legacies PointInSeg and add a selfref check to CutOutSubsecPoly
(somewhat related, but it appears this whole file is able to mess with the actual sector planes outside of rendering, this is not really good since it may actually lead to some super hard to debug desynchs)
2025-07-29 18:40:40 +02:00
Alug
b1c01a763f
cleanup hw_bsp a little
...
mostly just get rid of debug bloat that isnt even used
adding some branching hints for the I_errors (never seen any one of them happen tbh lel)
and remove some redundant checks
2025-07-29 18:40:02 +02:00
Alug
d9bcd6007c
move horizonline check to hw_bsp
...
to where maps also get checked for portals
should speed up levelload slightly
2025-07-29 15:37:14 +02:00
Alug
d1b478b3b1
oop
2025-07-29 02:36:45 +02:00
Alug
14b421f533
camera noclip sec special is effectively unused in kart
...
its not even in the kart zb config
so mark it with unlikely
2025-07-29 02:35:58 +02:00
Alug
7310a8e4df
add slope check here
...
not necessary but may skip more uneeded checks and stuff
2025-07-29 01:23:01 +02:00
Alug
c1c3a7dc78
remove unecessary casts for colormap
2025-07-29 00:48:26 +02:00
chromaticpipe
ff10b77414
Fix OpenGL flash palettes ignoring saturation
2025-07-29 00:31:10 +02:00
chromaticpipe
4667c332b4
Fix brightness issues with blend textures in Pallette Rendering
2025-07-29 00:31:07 +02:00
Alug
4a9f6b6a22
we dont need to clamp sprite lightlevels everywhere in ogl
...
theyre an int32 due to the directional light system stuff and get clamped in HWR_Lighting as a result
2025-07-29 00:31:04 +02:00
indev
f1d78243d0
Move setting c++ standard bit below
2025-07-27 19:45:10 +03:00
Alug
6e41c8a2a0
readd std=c++17 to cxxflags
2025-07-27 18:42:16 +02:00
Alug
9c5955feb0
Store last ticcmd in a buffer rather than in netcmd
...
port of https://codeberg.org/srb2classic/srb2classic/commit/fe663f799e733e9a59a95dfd561e506571838554
testing this, since the faketic calc seems a bit "off" to me
2025-07-27 18:29:55 +02:00
Alug
0764b180f7
fixup! next branch
...
- remove a bunch of clutter
- Fix AATtree stuff by properly balancing it
- replace getcolumn calc with modulo calc
- use strlcpy for some things
- cache wadfile start and endfolders
2025-07-27 18:28:19 +02:00
Alug
b883e4e4fe
Merge branch 'Saturn-Testing' into Saturn-Next
2025-07-27 18:21:07 +02:00
Alug
f78688b684
Merge pull request #189 from Indev450/mmenucleanup
...
Cleanup m_menu a bit
2025-07-27 17:18:07 +01:00
Alug
097cd5e2ca
Merge remote-tracking branch 'origin/Saturn-Next' into mmenucleanup
2025-07-27 18:17:49 +02:00
Alug
cd4836ae99
Merge pull request #187 from Indev450/emotes
...
Add emotes support
2025-07-27 17:16:23 +01:00
Alug
f0acf179c2
Merge pull request #185 from Indev450/fixupnet
...
Cleanup netcode a bit
2025-07-27 17:16:16 +01:00
Alug
836ad12c40
Merge pull request #180 from Indev450/fixgnu23
...
Make codebase C23 compliant
2025-07-27 17:16:02 +01:00
Alug
a147fa3100
Merge pull request #179 from Indev450/unnestmothink
...
Unnest mobj thinker stuff + cleanup p_mobj
2025-07-27 17:15:55 +01:00
Alug
4f0cf44e78
Merge branch 'unnestmothink' into fixgnu23
2025-07-27 18:15:31 +02:00
Alug
2417647110
Merge branch 'Saturn-Next' into fixgnu23
2025-07-27 18:15:04 +02:00
Alug
982cd7bde2
add mobj islocal field
...
so we can skip the pushable trigger stuff for local mobjs for synch reasons
very sketchy
2025-07-27 18:14:27 +02:00
Alug
d6bd289fcf
Merge branch 'Saturn-Next' into unnestmothink
2025-07-27 18:14:17 +02:00
Alug
a68a05a838
fix conflict
2025-07-27 15:18:46 +02:00
Alug
95504547df
add mobj islocal field
...
so we can skip the pushable trigger stuff for local mobjs for synch reasons
very sketchy
2025-07-27 15:17:51 +02:00
Alug
ceb2a70664
reduce netbuffer scope even further
2025-07-27 15:17:17 +02:00
Alug
8593a1975c
Merge branch 'Saturn-Next' into Saturn-Testing
2025-07-27 15:17:09 +02:00
Alug
2049353647
move this out of maptitle condition
...
it does not rely on it and may even fail
idk why i threw it in there
2025-07-27 15:11:07 +02:00
Alug
ba44e61733
Merge branch 'Saturn' into Saturn-Next
2025-07-27 15:09:58 +02:00
chromaticpipe
845652cbfe
Make it a part of fullscreen cvar
2025-07-27 15:02:24 +02:00
chromaticpipe
ceafa06efc
Borderless window toggle
2025-07-27 15:01:47 +02:00
Alug
e6f487474b
register chasecam with the other cam vars
...
why dupe a loop
2025-07-27 14:53:31 +02:00
Alug
d8461bb44f
dont apply player camfade when exiting or in freecam mode
...
also renames it and moves the check outside
2025-07-27 14:53:07 +02:00
Alug
e25d366728
add toggable player close to camera fade
...
similar to some other kartracers
only takes other players into account
2025-07-27 14:51:10 +02:00
Alug
2abf0b98ac
dont do this in dedi
...
dont need to, its pointless and prob causes more issues than anything
2025-07-27 14:32:38 +02:00
Alug
0f087d13bb
dont do this in dedi
...
dont need to, its pointless and prob causes more issues than anything
2025-07-27 14:18:41 +02:00
indev
2e914c61d1
Init displayplayers to {0}
2025-07-27 14:33:01 +03:00
indev
3f599d5a28
Fix smol typo :3
2025-07-27 14:03:35 +03:00
indev
6ef1f73d4d
Init displayplayers to {0}
2025-07-27 13:54:27 +03:00
Alug
38b84baf9d
Merge pull request #193 from chromaticpipe/borderlesswindowtoggle
...
Borderless window toggle
2025-07-26 21:42:50 +01:00
chromaticpipe
fae50c0e19
Make it a part of fullscreen cvar
2025-07-26 15:18:03 -05:00
Alug
50f7e2084c
seenames stuff is always unlikely
2025-07-26 21:29:25 +02:00
Alug
67cc5402cf
move assignments after early returns ST_drawLevelTitle
2025-07-26 21:29:21 +02:00
Alug
2259d4f309
get rid of code dupe for fpscapping stuff
2025-07-26 21:29:16 +02:00
Alug
f8d903e7d2
simplify this
2025-07-26 21:29:13 +02:00
Alug
805cde8ae8
D_CleanFile can be static
2025-07-26 21:29:09 +02:00
Alug
b23906e327
update link in addon menu to "mb.srb2.org/addons"
...
:chonkbuncle:
2025-07-26 21:29:04 +02:00
Gustaf Alhäll
2052afdb66
Fix custom addon directory being ignored when downloading addons
2025-07-26 21:29:01 +02:00
chromaticpipe
d9c7a40d4a
Borderless window toggle
2025-07-26 11:58:55 -05:00
Alug
48d9b2bc98
reduce netbuffer scope even further
2025-07-26 16:19:13 +02:00
Alug
939bf588b3
Merge branch 'Saturn-Next' into fixupnet
2025-07-26 16:19:09 +02:00
Alug
cb2e017bcf
seenames stuff is always unlikely
2025-07-26 16:18:59 +02:00
Alug
d91fbf5d36
move assignments after early returns ST_drawLevelTitle
2025-07-26 16:18:56 +02:00
Alug
9859e43be7
get rid of some redundancy R_Frame stuff
...
R_SetupCommonFrame already checks the actual sector for us, so we dont need to do this before
2025-07-26 16:18:52 +02:00
Alug
306fec6f9e
get rid of code dupe for fpscapping stuff
2025-07-26 16:18:25 +02:00
Alug
3e8b3e868b
simplify this
2025-07-26 16:18:22 +02:00
Alug
9261d9c5b2
D_CleanFile can be static
2025-07-26 16:18:20 +02:00
Alug
f97941f86e
update link in addon menu to "mb.srb2.org/addons"
...
:chonkbuncle:
2025-07-24 23:47:41 +02:00
Gustaf Alhäll
a4810bd6c8
Fix custom addon directory being ignored when downloading addons
2025-07-24 23:45:55 +02:00
Alug
93cbba218a
add mobj islocal field
...
so we can skip the pushable trigger stuff for local mobjs for synch reasons
very sketchy
2025-07-24 22:33:53 +02:00
Alug
e749346f0c
fix console taking minutes to open during frameskipping
...
prob not the best way to handle this, but its the simplest
the console should always be openable without issues unless during wipes, since in some cases you end up having to kill the game to do anything
2025-07-24 20:47:31 +02:00
Alug
a658883664
fix console taking minutes to open during frameskipping
...
prob not the best way to handle this, but its the simplest
the console should always be openable without issues unless during wipes, since in some cases you end up having to kill the game to do anything
2025-07-24 20:47:21 +02:00
indev
d94c10014f
Move server search below refresh option
2025-07-24 21:20:19 +03:00
Alug
45629386bb
update credits
...
this is super full and we need to think about something better for this X)
2025-07-24 19:03:06 +02:00
Alug
ffec9d64d5
delet windoze users (winuser.h)
...
apparently this makes cross compile commit sudoku, need to test this on actual windoze and see if this breaks anything since idk how this file even works
thx nep for the tip!
2025-07-24 15:22:44 +01:00
Alug
3e9f17af86
raise version number to 8.3
...
so i dont forger before release lul
2025-07-24 17:18:57 +02:00
Alug
03ff2fc007
enable ZDEBUG by default
...
this is just quite useful honestly
2025-07-24 17:03:23 +02:00
Alug
4492c00840
move prints to ZDEBUG2
...
as it seems to be for this purpose
2025-07-24 17:03:18 +02:00
Alug
e15319ac9b
move this stuff behind ZDEBUG
2025-07-24 17:03:10 +02:00
Alug
fa012aefe1
let Z_CheckHeap print file and line of where it occured
...
like its supposed to lel
2025-07-24 17:03:06 +02:00
Alug
e681d2d24d
remove itemamount check here
...
replicate vanilla
even if this becomes negative
this does not seem to crash, so id rather do whatever vanilla does
2025-07-24 16:41:28 +02:00
Alug
76e54762d8
add toggle for quake screenshake effects
...
TODO: make an accessability option menu for certain effects
2025-07-24 16:39:06 +02:00
GenericHeroGuy
3b7d517be2
bruh
...
Let's try that again, this time putting the camera in a local...
2025-07-24 16:38:55 +02:00
Alug
f4da64e3fa
remove prob pointless check
...
viewplayer will be the currently viewed displayplayer lel
2025-07-24 16:38:44 +02:00
GenericHeroGuy
384acf8e31
Fix fake floors in Donut Plains disappearing when chasecam is off
...
Also remove the useless R_PointInSubsector calls
2025-07-24 16:37:18 +02:00
indev
a423451383
SF_HIRES is already handled via spritexscale and spriteyscale
2025-07-24 16:37:08 +02:00
indev
66cfceedaf
If gamestate resend took too long, abort resynching
2025-07-24 16:36:26 +02:00
Alug
fe9107fa9d
fix the fov adjust check
...
lmao oops
2025-07-24 16:33:29 +02:00
chromaticpipe
e4f2db54e7
Fix level interpolators jittering during objectplac
2025-07-24 16:33:01 +02:00
chromaticpipe
2f5fe01ae0
Truncate trailing zeroes in float CVars
2025-07-24 16:32:04 +02:00
chromaticpipe
1bb7bd0abc
Fix help command for CV_FLOAT CVars
2025-07-24 16:31:57 +02:00
indev
a84ec88bc3
dedi's do run got_mapcmd :p
2025-07-24 16:29:09 +02:00
Alug
4a2e78081a
shut up curl im already long
2025-07-24 16:27:56 +02:00
Alug
d09d2cb445
use memcmp during startup map check
...
prob not faster just looks a bit better tbh
2025-07-24 16:27:30 +02:00
Alug
1faa585e83
fix memoryleak in pk3 verify functions
2025-07-24 16:27:16 +02:00
Alug
7479c82691
some crap from ceepeepeecheck
2025-07-24 16:27:04 +02:00
Alug
cfab2236da
fix awayview join crash
...
player->awayviewmobj may not exist yet in some cases
2025-07-24 16:26:48 +02:00
Alug
d2ee344b22
Fix underflow in consistancy checking code
...
https://git.srb2.org/Hanicef/SRB2Classic/-/commit/9f5686ef48956cd64ef92f737e59cbbaa27d8cf9
2025-07-24 16:25:57 +02:00
Alug
b22737223e
didnt mean to change this lel
2025-07-24 16:25:06 +02:00
Alug
578158c060
move HWR_GetTexturePalette calls
...
to after early returns/where they are used
2025-07-24 16:24:48 +02:00
Alug
8eda0f78f7
call HWR_LoadMapTextures in paletterender toggle callback
...
from srb2 pr
2025-07-24 16:24:45 +02:00
Alug
2c2c82dc1a
add mo checks to automap stuff
2025-07-24 16:24:22 +02:00
Alug
d8c9522ec9
add a bunch of checks for if G_BuildMapTitle returns NULL
2025-07-24 16:24:14 +02:00
Alug
492aef2165
no need for an else here
2025-07-24 16:23:50 +02:00
Alug
fc0409e967
readd cubeapply check here
2025-07-24 16:23:32 +02:00
Alug
8a89b57e48
this memset is incorrect and does nothing
2025-07-24 16:22:45 +02:00
Alug
0f6b9ba181
remove this
...
prob wrong assumption, our netcode sucks massive ass
2025-07-24 16:22:23 +02:00
Alug
8f1b4004c9
fix compiler warning bout playeringame
2025-07-24 16:21:45 +02:00
Alug
bee5250940
readd flexible array for softwarepatch columnofs
...
how did this ever work lel
2025-07-24 16:20:48 +02:00
Alug
c61a2e6ba2
fix https://github.com/Indev450/SRB2Kart-Saturn/issues/191
...
was an oversight when i cleaned up the gamepad stuff a bit
2025-07-24 16:16:04 +02:00
Alug
d293bb9672
fix https://github.com/Indev450/SRB2Kart-Saturn/issues/190
...
doing it like this, so potentially wonky socked maps dont show up if its disabled
2025-07-24 16:15:57 +02:00
Alug
9fb3f4c9a3
fix https://github.com/Indev450/SRB2Kart-Saturn/issues/191
...
was an oversight when i cleaned up the gamepad stuff a bit
2025-07-24 15:38:05 +02:00
Alug
9a60441e54
few more things for hw renderer
...
just moving aaround some things and declaring more stuff as const
2025-07-23 17:07:38 +02:00
Alug
a61b028e97
Merge branch 'Saturn-Next' into Saturn-Testing
2025-07-22 17:35:21 +02:00
Alug
29cf728fac
enable ZDEBUG by default
...
this is just quite useful honestly
2025-07-22 17:33:23 +02:00
Alug
3c78c5c57d
ok git very cool
2025-07-22 17:33:11 +02:00
Alug
7f3f332821
Remove aligned allocation functions
2025-07-22 17:33:07 +02:00
Alug
38576082fb
move prints to ZDEBUG2
...
as it seems to be for this purpose
2025-07-22 17:31:44 +02:00
Alug
4a4b5661f2
move this stuff behind ZDEBUG
2025-07-22 17:31:22 +02:00
Alug
1e879dc432
let Z_CheckHeap print file and line of where it occured
...
like its supposed to lel
2025-07-22 14:18:00 +02:00
Alug
e29bdd09c5
Merge branch 'Saturn-Next' into Saturn-Testing
2025-07-21 19:45:01 +02:00
Alug
f3c8ff19b9
remove redundant R_SetColumnFunc call
...
this would only be needed if we had brightmap support, but like this it just sets the column function to what it already is
2025-07-21 19:11:01 +02:00
Alug
fdd19632bf
Use R_RenderSegLoop if the back sector has any 3D floor planes
...
fixes issues in northern district zone
2025-07-21 19:10:58 +02:00
Alug
74b082760d
abuse c++ templates for Hwr_AddSprites
...
test this, but we can avoid a bunch of branching and functions calls like this when drawdist is inifite
2025-07-21 11:56:00 +02:00
Alug
4460fa608b
merge fix
2025-07-21 11:55:39 +02:00
Alug
949192c570
branch hints for nights and 2d stuff
...
gotta keep em for compat reasons Zzz..
2025-07-21 11:49:49 +02:00
Alug
4fa0ca2304
move a bunch of stuff after early returns
...
+ add some branching instrincts to stuff
maybe saves a bit of time if we dont need the thing
2025-07-21 11:49:44 +02:00
Alug
d9d2f043fa
use branch instrincts for P_MobjThinker
...
based on observations from kart stuff
2025-07-21 11:49:00 +02:00
Alug
1ea51f29c5
Merge branch 'Saturn-Next' into Saturn-Testing
2025-07-21 11:48:35 +02:00
Alug
b0653416f6
Merge branch 'Saturn-Next' into fixupnet
2025-07-20 17:03:30 +02:00
Alug
efc4a513ce
Merge branch 'Saturn-Next' into fixgnu23
2025-07-20 17:02:31 +02:00
Alug
b13793b2a4
Merge branch 'Saturn-Next' into unnestmothink
2025-07-20 17:00:53 +02:00
Alug
e102d218ff
add toggle for quake screenshake effects
...
TODO: make an accessability option menu for certain effects
2025-07-19 22:54:37 +02:00
Alug
20cdec33fb
fix https://github.com/Indev450/SRB2Kart-Saturn/issues/190
...
doing it like this, so potentially wonky socked maps dont show up if its disabled
2025-07-19 22:42:37 +02:00
indev
12d4a6d291
Also add scoll into level select for displaying map source filename
2025-07-18 23:19:19 +03:00
Alug
d2b1ff595d
remove itemamount check here
...
replicate vanilla
even if this becomes negative
this does not seem to crash, so id rather do whatever vanilla does
2025-07-18 17:57:45 +02:00
indev
03d79fba16
Add filename scrolling for addons menu
2025-07-18 14:48:45 +03:00
indev
989c29f7a0
Move scrollMusicName into m_misc as M_ScrollString
2025-07-18 14:21:05 +03:00
Alug
8a79c0a4e0
simplify free block in P_RemoveMobj
...
should be functionally the same
2025-07-18 11:01:58 +02:00
Alug
307c333c50
use branch instrincts for P_MobjThinker
...
based on observations from kart stuff
2025-07-18 11:01:28 +02:00
Alug
3ce8b9f09c
oop move this back
...
this is some global, dont wanna mess things up
2025-07-18 10:57:15 +02:00
Alug
4dbe637510
remove pointless var P_TryCameraMove
2025-07-17 00:28:22 +02:00
Alug
c0e97e7f43
store sector directly P_CheckPosition
...
hopefully this makes pointer access faster here
2025-07-17 00:28:19 +02:00
Alug
37fc64e97d
optimization K_KartUpdatePosition
...
this checked the distance to every single waypoint on the map always and unconditionally, but we dont need the distance unconditionally so only check if we need to
+5fps in techbatics hadal classic timedemo
2025-07-17 00:06:59 +02:00
Alug
ca93f08230
use branch instricts for blua
...
mostly just for error handling
similar to upstream lua and bluajit
hope this speeds this up a little
2025-07-16 23:01:16 +02:00
Alug
3581ce811c
cache those things
2025-07-16 23:01:12 +02:00
Alug
b4570cbdaa
Merge branch 'mmenucleanup' into Saturn-Testing
2025-07-16 20:42:45 +02:00
Alug
f2dc344bf8
copy paste oopsie
2025-07-15 19:55:13 +02:00
Alug
c0654448f0
oop this was unsigned
2025-07-15 19:18:52 +02:00
Alug
2bf3912633
unmangle localskin menu mess a bit
2025-07-15 19:17:06 +02:00
Alug
4d71fb8409
few more things i missed
2025-07-15 18:59:28 +02:00
Alug
8543a099f4
split m_menu definitions to m_menudefs
...
idk if this is a good idea lel
2025-07-15 18:59:25 +02:00
Alug
9c6ec02b18
do some cleanup m_menu
...
gets rid of a bunch of duplicated splitscreen shit
unused srb2 stuff
commented out stuff aswell
we dont need any of this
this is def still far from tidy and itll never be like this
2025-07-15 18:59:22 +02:00
Alug
bb9118ee32
Merge branch 'Saturn-Next' into Saturn-Testing
2025-07-15 18:57:23 +02:00
Alug
0411c40fae
discord rpc my butt
2025-07-15 17:04:32 +02:00
Alug
68cb96ab97
💀 fix menu screentex toggle lel
...
thx neppy!
2025-07-15 15:30:34 +02:00
Alug
0159b8d0a3
use the tooltips array in the menu_t struct for tooltips
...
so this was always there lel
gets rid of massively duplicated tooltip calls and is generally cleaner
2025-07-15 15:03:00 +02:00
Alug
aea3b49a51
💀 fix menu screentex toggle lel
...
thx neppy!
2025-07-15 14:00:57 +02:00
GenericHeroGuy
1a6f775cc3
bruh
...
Let's try that again, this time putting the camera in a local...
2025-07-15 14:00:53 +02:00
Alug
ddd192fad0
declare all the kart "time" stuff as const
...
as far as i can see those never get overwritten and cant be overwritten
2025-07-15 14:00:49 +02:00
Alug
2e4fb32dac
dont apply player camfade when exiting or in freecam mode
...
also renames it and moves the check outside
2025-07-15 14:00:46 +02:00
Alug
7d6e210625
use c++ template for HWR_DrawSprites
...
works just as well without code dupe
2025-07-13 23:11:52 +02:00
Alug
3ca42ce42f
register chasecam with the other cam vars
...
why dupe a loop
2025-07-13 21:52:26 +02:00
Alug
e4e40cf049
remove prob pointless check
...
viewplayer will be the currently viewed displayplayer lel
2025-07-13 21:52:23 +02:00
Alug
d4f912e3b0
add toggable player close to camera fade
...
similar to some other kartracers
only takes other players into account
2025-07-13 21:52:20 +02:00
Alug
eec4443c95
smol stuff i missed i_video
2025-07-13 16:31:59 +02:00
Alug
b938c75892
clean up i_video.c a little
...
what a mess
this is still far from tidy
2025-07-13 16:17:32 +02:00
Alug
455cb9ca24
delet windoze users
...
apparently this makes cross compile commit sudoku, need to test this on actual windoze and see if this breaks anything since idk how this file even works
thx nep for the tip!
2025-07-12 14:56:34 +02:00
Alug
24e7f5f864
readd R_PointInSubsectorFast
...
use it for camera, viewpoint, some precip and sound stuff and (visual) banana slope calc
after profiling it a bit, this may be 2-4x faster in a bunch cases
2025-07-12 13:39:57 +02:00
Alug
298fa36c5d
uninline R_IsPointInSubsector
...
this gets used like once or twice, we dont need that inlined
2025-07-12 13:35:12 +02:00
indev
d31e9c5b55
Strip colors from server name when searching through server list
2025-07-11 23:15:19 +03:00
Alug
30f53f398f
move CopyCaretColors to m_misc
2025-07-11 21:56:10 +02:00
indev
eee217deec
Add server search
2025-07-11 22:43:36 +03:00
Alug
1847aac223
fix windoze for the 50 trillionth time
...
when do we finally remove windows support?
those two things do absolutely fucking nothing but shit dies without em for whatever reason
2025-07-08 17:06:06 +01:00
Alug
487ef6f1b9
fix windoze for the 50 trillionth time
...
when do we finally remove windows support?
those two things do absolutely fucking nothing but shit dies without em for whatever reason
2025-07-08 17:05:44 +01:00
Alug
14be968089
fix for non pow2 width textures in software from doom-legacy
2025-07-08 16:52:56 +01:00
Alug
9f678263d0
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-07-08 16:52:32 +01:00
Alug
a554b886c6
fix peeindex overflow
...
lelelele thx indev <3
2025-07-08 14:23:34 +02:00
Alug
f2d68b075c
texturewidthmask can be static
2025-07-08 13:48:18 +02:00
Alug
dc24de3501
fix color translated spans lmao
...
oopsie
well atleast we got some extra safety with the spandata source lel
2025-07-08 13:48:14 +02:00
Alug
d2c73f072e
reuse "i"
2025-07-08 12:02:10 +02:00
GenericHeroGuy
96bc7f7aa6
Fix fake floors in Donut Plains disappearing when chasecam is off
...
Also remove the useless R_PointInSubsector calls
2025-07-08 12:01:49 +02:00
Alug
bd48b24000
some micro optimize
2025-07-08 12:01:46 +02:00
indev
a26867bbdb
Add separate option to toggle parallel rendering in R_DrawMaskedList
2025-07-08 00:36:25 +03:00
indev
8d570b7ba3
Revert "Disable multithreading in R_DrawMaskedList"
...
This reverts commit 5a44afcd9f .
2025-07-08 00:10:08 +03:00
Alug
96f5a8adb3
fix for non pow2 width textures in software from doom-legacy
2025-07-07 21:47:48 +02:00
indev
3b34f0a972
Sort replays in replay hut
2025-07-06 15:48:18 +03:00
Alug
fe5a0b7c64
GL_
2025-07-05 15:51:30 +02:00
BlueStaggo
2aa5324225
Manual mipmapping + Texture padding
2025-07-05 15:51:27 +02:00
Alug
22f50402fe
remove this
2025-07-05 15:51:15 +02:00
Gustaf Alhäll
4e2f1bcf2b
Fix invalid formats being passed to interal texture formats
...
The effects that this had on the engine is unknown, but the reference
pages makes in very clear that the old behavior is wrong.
2025-07-05 15:50:48 +02:00
indev
ca34b0c8d6
Add /mute chat command
2025-07-05 00:27:17 +03:00
indev
0df5ef996c
(kinda) unify LookupPlayer and nametonum, rename first into D_LookupPlayer
2025-07-04 23:15:31 +03:00
Alug
4c0ea2695e
remove smoothpos cvar and add it as setting for "postitionanimation" cvar
2025-07-04 12:32:49 +02:00
Alug
48556ca428
oop lmao
2025-07-04 12:23:34 +02:00
Alug
cb0667921e
oop lmao
2025-07-04 12:07:56 +02:00
Alug
52ab27a825
Merge branch 'Saturn-Next' into Saturn-Testing
2025-07-04 11:23:26 +02:00
NepDisk
5db50bbaff
Port HEPII(I) position number scaling
2025-07-04 11:19:48 +02:00
Alug
416da7cdc8
use memset for S_ClearQueue
...
just simpler
2025-07-04 11:19:45 +02:00
Alug
f47057e800
update credits
...
this is super full and we need to think about something better for this X)
2025-07-03 10:17:12 +02:00
Alug
090559a766
move this out of maptitle condition
...
it does not rely on it and may even fail
idk why i threw it in there
2025-07-03 00:34:19 +02:00
Alug
1a6a3de443
double fpscounter samples
...
slightly more readable
2025-07-03 00:32:15 +02:00
Alug
0293fbfe99
why are you still here wtf
2025-07-01 21:51:28 +02:00
Alug
ecfb52eabe
delet GETTEXT and translation stuff
2025-07-01 21:50:56 +02:00
Alug
999e1a525e
use quickcamdist for render distance culling stuff
...
we do not need this to be accurate at all in these cases, so this is probably faster than doing le fixedhypot
2025-07-01 21:24:58 +02:00
Alug
ef530c2f7d
tiny optimizations hw_main again
2025-07-01 21:15:17 +02:00
indev
3e5d1a436c
Add option for smallminimapplayers to only downscale non-displayplayers icons
2025-07-01 22:07:12 +03:00
Alug
38b89093fa
Merge remote-tracking branch 'origin/emotes' into Saturn-Testing
2025-07-01 19:22:07 +02:00
Alug
224ce007e1
Merge branch 'Saturn-Next' into Saturn-Testing
2025-07-01 19:21:58 +02:00
indev
2800685cfc
Merge branch 'Saturn-Next' into emotes
2025-07-01 20:15:44 +03:00
Alug
962eb531ff
clamp the sprite lightlevel stuff + ensure proper type cast
...
this is a mess
lets hope this doesent change how the game looks lel
2025-07-01 19:12:54 +02:00
Alug
07e1ca40a4
oop dont need those
2025-07-01 19:12:32 +02:00
sphere
c479d9d706
Merge branch 'allowdesync' into 'next'
...
Add a console variable that will allow individual demos to desync....
See merge request STJr/SRB2!2361
2025-07-01 19:06:10 +02:00
Alug
338fbfbeaf
whoops those are demo related lol
2025-07-01 19:06:07 +02:00
Alug
5ca12bb421
split replay stuff into g_demo
2025-07-01 18:48:46 +02:00
Alug
6c94e0c9bf
conflict moment
2025-07-01 18:29:45 +02:00
Alug
83d0f6bb50
move kart hud stuff into k_hud
...
hope i got everything lol
2025-07-01 18:27:39 +02:00
Alug
0241d7fe00
Merge branch 'Saturn-Next' into Saturn-Testing
2025-07-01 15:27:39 +02:00
Alug
7e06fc986f
this is INT32 so cast to that lel
2025-07-01 15:26:21 +02:00
Alug
3f5328371a
put interp distance stuff into a function
...
just some code dupe cleanup
also account for c++ so we can use the same macro lel
2025-07-01 15:26:18 +02:00
Alug
148fcc8dab
friendship with constexpr started
2025-07-01 15:26:02 +02:00
Alug
72a67d306f
slightly cleanup addline stuff
...
no clue why i just didnt do this before lel
2025-07-01 15:25:57 +02:00
Alug
0dcdcc3da1
fix hw_main compiler warning
2025-07-01 15:25:53 +02:00
Alug
729c60c9b0
thanks michaelsoft very cool
2025-07-01 15:25:26 +02:00
Alug
1b418caf6b
ceepeepeefy hw_main, abuse templates for portal stuff
...
no idea if this is faster at all lmao
2025-07-01 15:25:23 +02:00
Alug
d275db9bb4
turn TC_ stuff into enum
2025-07-01 15:25:14 +02:00
Alug
21cfd7c361
Merge pull request #186 from Indev450/softwarecrap
...
Give the software renderer some love!
2025-07-01 15:21:48 +02:00
indev
5a44afcd9f
Disable multithreading in R_DrawMaskedList
2025-07-01 16:09:18 +03:00
Alug
3c282b5022
this can use min/max
2025-07-01 14:42:28 +02:00
Alug
f4d40bd55f
"-Wno-aggregate-return" for c++
2025-07-01 14:38:42 +02:00
indev
5d8bb3223f
No need for this now
2025-07-01 15:25:48 +03:00
indev
5e1f943a38
Merge branch 'Saturn-Next' into emotes
2025-07-01 15:24:42 +03:00
Alug
612431c1f1
dont define min and max with c++
2025-07-01 14:22:49 +02:00
indev
fca7b4a837
Use std::min
2025-07-01 15:15:36 +03:00
Alug
02ce2ff5ec
Merge remote-tracking branch 'origin/emotes' into Saturn-Testing
2025-07-01 10:31:58 +02:00
indev
d2bab80b29
Add emote suggestions and autocompletion
2025-06-30 16:43:14 +03:00
Alug
667a8bb166
"restrict" macro for c++
...
since it does not have it, use __restrict instead
2025-06-30 12:18:32 +02:00
Alug
465fea8bb3
"restrict" macro for c++
...
since it does not have it, use __restrict instead
2025-06-30 12:18:21 +02:00
Alug
76a18d001f
friendship with constexpr started
2025-06-30 12:11:45 +02:00
Alug
78ab90c1a6
"restrict" macro for c++
...
since it does not have it, use __restrict instead
2025-06-30 12:54:15 +03:00
Alug
45b9aeb85a
slightly cleanup addline stuff
...
no clue why i just didnt do this before lel
2025-06-30 08:17:41 +02:00
Alug
d580306b8a
fix hw_main compiler warning
2025-06-30 08:17:38 +02:00
indev
102e944fd5
Preview emotes in chat input
2025-06-30 00:28:14 +03:00
Alug
04385d9700
add "songcredits" to saturn hud menu
...
since we have a new style for this now, want to have it in the menu instead
2025-06-29 12:02:11 +02:00
Alug
d47e20b54e
those can be const
2025-06-29 11:44:29 +02:00
Alug
7ef2da5922
tiny cleanup hw_batching
2025-06-29 11:44:12 +02:00
Alug
5638709670
some cleanup k_kart
...
perhaps we could also move the saturn stuff into arrays, those massive walls of variables are kinda ugly lel
2025-06-29 11:44:04 +02:00
Alug
3748896ebc
thanks michaelsoft very cool
2025-06-29 10:20:33 +01:00
Alug
79988dea3d
this makes no sense lol
2025-06-29 10:13:00 +01:00
Alug
4409a5848f
Merge branch 'Saturn-Next' into Saturn-Testing
2025-06-29 12:08:06 +02:00
Alug
07c13636fc
ceepeepeefy hw_main, abuse templates for portal stuff
...
no idea if this is faster at all lmao
2025-06-29 11:49:36 +02:00
Alug
51cc706b1e
Merge remote-tracking branch 'origin/emotes' into Saturn-Testing
2025-06-29 11:48:33 +02:00
Alug
54bd31c80a
Merge branch 'Saturn-Next' into Saturn-Testing
2025-06-29 11:48:18 +02:00
Alug
61534d7356
Merge branch 'softwarecrap' into Saturn-Testing
2025-06-29 11:48:12 +02:00
indev
9bd4a933cf
Check if text is inside chat log box for emotes
2025-06-29 00:30:24 +03:00
indev
e233635783
huh?
2025-06-29 00:05:25 +03:00
indev
da24ba20c7
Fix emotes having not enough 'background' rendered :chonkbunckle:
2025-06-28 22:39:44 +03:00
indev
74bdabc636
Load emotes from base wads too at boot (so it loads ones from -file wads)
2025-06-28 22:31:33 +03:00
indev
4b129314d3
Right that got removed in the end :chonkbunckle:
2025-06-28 21:04:09 +03:00
indev
3a55972997
Initial emote support
2025-06-28 21:03:15 +03:00
Alug
6e04e4171e
fix the goddamn boolean
2025-06-28 19:21:45 +03:00
Alug
4e9f9b7e0e
Revert "add "for_each" to srb2 threadpool"
...
This reverts commit 604bc40021 .
2025-06-27 16:38:19 +02:00
Alug
9650139470
Revert "allocate tiltlighting buffer in R_AllocViewMemory again"
...
This reverts commit b541de4f8c .
2025-06-27 16:38:16 +02:00
Alug
054a40a4b2
Revert "omit realloc and use unique_ptr for our tiltlighting buffer"
...
This reverts commit e351c1e62a .
2025-06-27 16:38:13 +02:00
indev
db67176eca
Revert "Replace '\' symbols with '\\' in comptime.sh"
...
This reverts commit 0b7a4ff4e0 .
2025-06-26 22:50:59 +03:00
indev
0b7a4ff4e0
Replace '\' symbols with '\\' in comptime.sh
2025-06-26 21:18:22 +03:00
Alug
972ee5cf76
remove erronous BACKSLASH
...
was from when this was a macro lel
edit: screw you comptime
2025-06-26 20:17:33 +02:00
Gustaf Alhäll
aef02cb347
Fix one-pixel wide gaps in tall sprites
2025-06-26 20:09:16 +02:00
Alug
36e485b2a3
move gl portalcullsector check back to the right place lel
...
oopsie
2025-06-26 15:13:54 +02:00
Alug
d23c51e707
mark node as restrict again pointonside
2025-06-26 13:22:17 +02:00
Alug
0db437aadd
do some more tiny optimizations
...
-those can all be declared with restrict
-our ternary clamp macro is slightly faster than std::clamp
2025-06-26 13:22:15 +02:00
Alug
e351c1e62a
omit realloc and use unique_ptr for our tiltlighting buffer
...
this makes asan shut up, since those effectively clean up after themselves
2025-06-26 13:22:11 +02:00
Alug
b541de4f8c
allocate tiltlighting buffer in R_AllocViewMemory again
...
just removes the ugly stuff in the span drawers
needs to be tested a little, but should be fine
2025-06-26 13:21:56 +02:00
Alug
604bc40021
add "for_each" to srb2 threadpool
...
this exectures something for EACH thread not some abritatrily choosen ones
2025-06-26 13:21:52 +02:00
Alug
be8ddebd80
forgor about the new signal handler oop
2025-06-26 00:39:01 +02:00
Alug
02feb3ad5c
Merge pull request #177 from Indev450/votebgstuff
...
Cleanup Votescreen stuff
2025-06-25 13:24:48 +02:00
Alug
49f13d2a59
Merge pull request #176 from Indev450/luamusicdef
...
Expose musicdefs to lua
2025-06-25 13:24:37 +02:00
Alug
b2a36850cb
Merge branch 'Saturn-Next' into softwarecrap
2025-06-25 12:47:43 +02:00
Alug
8353c1efdd
add toggle for software cyan cut stuff
...
"softwarecyancut"
this is disabled by default, since some vanilla maps were designed around this
also costs a bit of performance (splat span drawers are slooooow)
2025-06-25 12:47:25 +02:00
Alug
d19a2e0912
attempt to make fofs in software always cut cyan pixels
...
if they do contain cyan pixels lel
kinda meh, and needs a toggle
2025-06-25 12:45:14 +02:00
Alug
07432c0381
turn angle stuff into a switch in R_SetupSkyScale
2025-06-25 12:29:58 +02:00
Alug
4fb3b63152
optimize R_StoreWallRange with cut down version of rendersegloop when a seg is untextured
...
from srb2, its just a cut down rendersegloop with alot less things to check and such
2025-06-23 19:38:57 +02:00
Alug
85b736620a
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Next
2025-06-23 19:26:07 +02:00
Alug
9f770993d4
proper init enterprecise
2025-06-23 19:25:50 +02:00
Alug
4bd02ad325
check if player is local here
2025-06-23 19:25:46 +02:00
Alug
6e7b45d15c
simplify R_SetupAimingFrame
2025-06-23 19:25:34 +02:00
Alug
99ebca51d5
use const_cast for colfunccopy
...
idk its from rr idk why it was like this
2025-06-23 19:23:56 +02:00
Alug
24eb888af3
make skytextures support texture offsets in software
2025-06-23 19:20:20 +02:00
Alug
09ce33abb9
just always clamp the non psprite texture column
...
this may underflow, which the check in the lööp body does not account for
2025-06-23 19:18:11 +02:00
indev
044ff158a1
SF_HIRES is already handled via spritexscale and spriteyscale
2025-06-23 18:37:57 +03:00
Alug
36c68d055c
minor optimizations r_things
2025-06-21 18:07:44 +02:00
Alug
ddf7d7cdcb
use templates for R_ClipWallSegment
...
actual slight speedup
2025-06-21 18:07:41 +02:00
Alug
38950d580f
fix a clang warning
2025-06-20 09:54:20 +02:00
Alug
707701f317
do palette stuff in st_ticker
...
cleanup and dont call it in normal ogl at all unless palette render with flashpals is enabled
inspired by Nyan-Doom/Woof
2025-06-20 09:54:17 +02:00
Alug
cccfaaabfd
proper init enterprecise
2025-06-19 17:48:12 +02:00
Alug
eadbe9c2e5
delet this
2025-06-19 17:47:57 +02:00
Alug
9bbabcee06
delet this
2025-06-19 17:47:42 +02:00
Alug
7ca6fa6772
turn translation colormaps stuff into an enum
2025-06-19 17:44:04 +02:00
Alug
6317e9c510
cleanup colormap translation stuff
...
needs testing
2025-06-19 17:43:56 +02:00
Alug
0a80985771
check if player is local here
2025-06-19 17:41:49 +02:00
Alug
548d52cc60
simplify R_SetupAimingFrame
2025-06-19 17:41:42 +02:00
Alug
11c6c69a00
Merge branch 'softwarecrap' into Saturn-Testing
2025-06-19 17:41:33 +02:00
Alug
09507d635b
remove now unecessary type cast
2025-06-19 17:41:26 +02:00
Alug
ab85d6a693
shut the up -Waggregate-return
2025-06-19 17:41:23 +02:00
Alug
08025d2da3
ok git very cool
2025-06-19 17:41:12 +02:00
Gustaf Alhäll
4169e7bd71
Remove aligned allocation functions
2025-06-19 17:41:09 +02:00
Gustaf Alhäll
bfb7a6b08d
Fix potential NULL deference if memory runs out during cURL request
2025-06-19 17:41:06 +02:00
Alug
58abb0d4c3
Merge remote-tracking branch 'origin/softwarecrap' into Saturn-Testing
2025-06-19 17:40:42 +02:00
Alug
9658279cb1
Merge branch 'fixupnet' into Saturn-Testing
2025-06-19 17:40:34 +02:00
Alug
5011b17f88
attempt at optimizing drawcolumn drawers a bit more
...
inspired by dsda/prboom
seems to be super slighty faster
2025-06-19 15:57:21 +02:00
Alug
83bb908ff0
Merge remote-tracking branch 'origin/Saturn-Next' into unnestmothink
2025-06-19 15:56:32 +02:00
Alug
515c18c855
Merge remote-tracking branch 'origin/Saturn-Next' into fixgnu23
2025-06-19 15:55:58 +02:00
Alug
d1a6394e52
Merge remote-tracking branch 'origin/Saturn-Next' into fixupnet
2025-06-19 15:55:22 +02:00
Alug
7bef45f701
Merge remote-tracking branch 'origin/Saturn-Next' into softwarecrap
2025-06-19 15:50:55 +02:00
indev
40cbce8f9f
Merge pull request #178 from Indev450/newmakefiles
...
Port over SRB2´s makefile rewrites + Port Dedicated server build
2025-06-19 16:47:34 +03:00
Alug
70a70084c9
macrofy ogl function pointer setup
...
should make it a little less annoying to add new functions
2025-06-17 19:21:09 +02:00
indev
b6da6359d3
If gamestate resend took too long, abort resynching
2025-06-16 21:43:54 +03:00
Alug
97075ca5c5
remove some code dupe
...
starting to like those lambda things
2025-06-13 16:08:06 +02:00
Alug
e94737945a
fix double sided skies per addline clipping code
...
fixes greencave skybox
hopefully this is it and doesent break anything else sigh
2025-06-13 08:11:45 +02:00
Alug
57f15e0213
R_GenerateBlendTables can be static
2025-06-13 03:23:31 +02:00
Alug
2eae9b197c
port the span and column drawer templates + tilted translucent splat drawer
...
took the liberty to also carry over our optimizations, this is actually slightly faster than what we had before
2025-06-13 03:23:25 +02:00
Alug
68c7620349
Merge branch 'Saturn-Next' into softwarecrap
2025-06-13 00:53:30 +02:00
Alug
7a3faf34e7
move this into an if else
...
saves us a little work
2025-06-13 00:20:59 +02:00
Alug
d401644447
tweak the sky checks even more
...
apparently koda has a skybox, and checking like this makes it not trigger, lets hope this has no bad side effects Zzz...
2025-06-13 00:20:48 +02:00
Alug
dfc349b230
Merge branch 'newmakefiles' into softwarecrap
2025-06-12 23:33:49 +02:00
Alug
be3e5a964d
pass -flto to linkerflags too
...
lel forgor
somehow this still worked anyways
2025-06-12 23:33:41 +02:00
Alug
687d2bd894
Merge remote-tracking branch 'origin/Saturn' into Saturn-Next
2025-06-12 23:18:45 +02:00
Alug
78b642cf2d
Merge pull request #183 from P-AS/mac-fixes
...
Fix build on macOS
2025-06-12 21:46:39 +01:00
Alug
6f4e387061
Merge branch 'softwarecrap' into Saturn-Testing
2025-06-12 21:47:29 +02:00
Alug
33ef566fd2
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-06-12 21:47:26 +02:00
Alug
cb3b6ca34b
Merge pull request #184 from chromaticpipe/levelinterpolatorjitter
...
Fix level interpolators jittering during objectplace
2025-06-12 20:46:31 +01:00
Alug
ad15bf0ea3
readd some lost comments in r_bsp
2025-06-12 19:48:58 +02:00
Alug
56021ed999
dont compile with software multithread if NOTHREADS/HAVE_THREADS=0
...
might be useful for smth ig
2025-06-12 19:48:55 +02:00
chromaticpipe
3d22a5906f
Fix level interpolators jittering during objectplac
2025-06-12 11:37:25 -05:00
Alug
eeecd954e2
Merge branch 'softwarecrap' into Saturn-Testing
2025-06-12 17:19:38 +02:00
Alug
ccb804a4ed
Merge branch 'fixupnet' into Saturn-Testing
2025-06-12 17:18:09 +02:00
Alug
a21029ee9e
Merge branch 'Saturn-Next' into Saturn-Testing
2025-06-12 17:17:54 +02:00
Alug
b6d771b48f
unnest the skybox scale setup stuff
2025-06-12 17:10:26 +02:00
Alug
ab30fb2e5e
check if seg has any texture at all
...
seems to work even better and less "false positives"
also removing some redundant conditons
2025-06-12 17:10:22 +02:00
Alug
ccc90842a7
move CopyCaretColors to m_misc
2025-06-12 17:10:08 +02:00
Alug
dc069d7bb5
unnest HandlePacketFromPlayer
...
+ some cleanup
2025-06-12 00:53:47 +02:00
Alug
f4a827dfc2
fix conflicts
2025-06-12 00:02:55 +02:00
Alug
4f3232b6cc
Merge branch 'Saturn-Next' into fixupnet
2025-06-12 00:02:05 +02:00
Alug
618d9e4cdf
add lugent to credits
2025-06-11 20:55:26 +02:00
Alug
bf78ad9c75
absolute insanity to hopefully fix all sky issues while keeping skyvisible
2025-06-11 20:28:16 +02:00
Alug
918a4e8cd9
add tilted fog span drawer
...
fixes the red fog blocks on mkrevamp
2025-06-11 17:10:47 +02:00
Alug
e90c84c9ac
we have a var for that lul
2025-06-11 16:32:36 +02:00
PAS
a9209a4887
Include errno.h on macOS
2025-06-10 21:53:43 -04:00
Eidolon
0a3e7ba09f
Include poll.h on UNIXCOMMON
...
Apple was not including poll.h despite needing it.
2025-06-10 21:49:00 -04:00
Alug
eb132b08c0
make the check a little more robust + account for slopes a little
2025-06-11 00:31:01 +02:00
Alug
82407c3560
add missing plane bounds check to R_DrawSkyPlane
2025-06-11 00:30:59 +02:00
Alug
f1a8210663
another attempt at actually fixing sky issues
...
absolutely fucking horrible
but this also does account for single sided lines aswell and gets rid of artifacts and perf
2025-06-10 18:33:20 +02:00
Alug
1d722be4bc
few smoler optimizations r_segs
2025-06-10 01:21:36 +02:00
Alug
62a660bfe1
maybe this makes perf better somehow
2025-06-10 01:21:34 +02:00
Alug
2984795175
kill the splitscreen lööps from R_RenderPlayerView
...
this already gets called from within the one that assigns viewssnum which we can just use here
2025-06-09 23:45:02 +02:00
Alug
da706d89a5
absolutely disgusting hack for sky issues
...
instead of homremoval, we draw the fucking skyplane before everything lmao
there probably is a right way to fix this, but im too dumb for that
needs some performance testing, but since i could move the semaphores back, its even better in some instances
2025-06-09 22:59:52 +02:00
Alug
a8005d5cec
fix portals dying
...
due to nummasks being too small and causing an overflow
ty hannu!
2025-06-09 20:57:19 +02:00
Alug
793ccff6e6
fix the goddamn portal use after free
...
https://git.do.srb2.org/STJr/SRB2/-/commit/f536ab34674fb8d3ee262a0009753f552074305c
2025-06-09 19:02:58 +02:00
Alug
e7db9bf1fd
fix bad copy paste lul
2025-06-09 17:09:57 +02:00
Alug
88d62c93a1
fix SHITPLANESPARENCY and QUINCUNX
...
maybe
2025-06-09 17:06:31 +02:00
Alug
d73532d019
fix some fofs not rendering in software
...
i did an oopsie in 7.2 X)
2025-06-09 17:06:23 +02:00
Alug
84d3d23936
declare fracstep as const
2025-06-09 17:06:20 +02:00
Alug
717947843b
memset those
2025-06-09 17:06:16 +02:00
Alug
968584a316
make skyportals account for how kart sets the viewheight
...
no we still dont use it
2025-06-09 17:06:14 +02:00
Alug
ccd67f621a
dont set any texture mapped drawer when fog
2025-06-09 17:06:10 +02:00
Alug
80b301dbbe
unnest the overflow_test stuff
...
its also a ternary now lul
2025-06-09 17:06:07 +02:00
Alug
001e61d39d
Merge branch 'Saturn-Next' into softwarecrap
2025-06-09 17:06:02 +02:00
Alug
19c98a436a
fix some fofs not rendering in software
...
i did an oopsie in 7.2 X)
2025-06-09 17:05:42 +02:00
Alug
8dd6d7cfdd
fix the fov adjust check
...
lmao oops
2025-06-09 16:59:00 +02:00
Alug
7456b6e02c
Revert "bring back old clipwallsegment stuff"
...
This reverts commit 6af77afc44 .
2025-06-09 04:27:58 +02:00
Alug
5e8096f74c
move hom removal to D_Renderview
...
removes the hwr code dupe and moves this out of the splitscreen loop
2025-06-09 00:21:41 +02:00
Alug
6af77afc44
bring back old clipwallsegment stuff
...
i just didnt like the flow of the new ones
2025-06-08 21:38:57 +02:00
Alug
42eeb7bdf5
fix the massive slowdown on ante
...
due to really bad loop layout
std::fill is only cause it looks fancy :3
2025-06-08 21:38:54 +02:00
Alug
6f4b1e5125
fix portals on slopes
...
idk this is quite the hack, but it works
this adjustment somehow got omitted from srb2 during the portal refactor
2025-06-08 20:03:09 +02:00
Alug
22e65cdda8
readd portalcullsector
...
+ sprite clipping improvements with portals
2025-06-08 20:03:06 +02:00
Alug
9d342d0f3d
fix lightlist memory leak
...
not sure if we need to copy over the old shit, but this seems to work aswell
2025-06-08 17:24:18 +02:00
Alug
9583bed718
fix da rippled wöter
...
i hate fixed point maths lmao
2025-06-08 00:43:15 +02:00
Alug
b69ce75712
do NOT use Z_ functions in threaded stuff
...
shit dies
2025-06-08 00:25:03 +02:00
Alug
a1cd19b023
make the fov dependant init stuff bit more safe and stuff
2025-06-07 23:54:12 +02:00
Alug
6e50710b25
fix column data colormap shit in R_RenderThickSideRange
...
too lazy to explain so https://git.do.srb2.org/KartKrew/RingRacers/-/commit/1ccd41c3dbb3132ce7467edf0c12c9d420b189f9
2025-06-07 23:31:51 +02:00
indev
989a971d27
Fix 'C++11 requires a space between literal and string macro' warning
2025-06-07 23:18:55 +03:00
indev
24ee56ce7a
ceepeepee 17 :3
2025-06-07 23:15:55 +03:00
Alug
52f99dd9c1
fix span corruption due to wrong types being used
...
i did not realise srb2 changed this at some point to use fixed_t
2025-06-07 20:05:51 +02:00
Alug
6374fda570
convert i_system to cpp add missing exit for threading errors
2025-06-07 20:05:48 +02:00
Alug
cdd2d6323e
dont think we need this twice lel
2025-06-07 20:05:03 +02:00
Alug
c508a7ea78
smol makefile stuff
2025-06-07 20:05:01 +02:00
Alug
1380a394c7
remove duped declaration
2025-06-07 20:04:58 +02:00
Alug
2c937099d4
this does nothing lel
2025-06-07 20:04:55 +02:00
Alug
0a936b3bba
fix le sourcefile
2025-06-07 20:04:52 +02:00
Alug
7393eb728c
Merge branch 'Saturn-Next' into Saturn-Testing
2025-06-07 11:56:17 +02:00
Alug
1e715f8cd7
Merge branch 'newmakefiles' into Saturn-Testing
2025-06-07 11:56:13 +02:00
Alug
0a31e0a65e
use realloc for batching stuff
...
seems to strangely speed things up even
didnt think those happen often?
2025-06-07 11:55:52 +02:00
Alug
8627a18452
Merge pull request #182 from chromaticpipe/fixedhelp
...
Fixed help command
2025-06-07 10:54:36 +01:00
Alug
be528adea5
thanks michaelsoft!
2025-06-07 10:21:25 +01:00
James R.
5eb4ed8391
R_FindPlane: fix offsets rotation overflow for non-sloped planes
2025-06-07 11:43:13 +02:00
James R
9a00d30c0c
Do not factor height into sprite thickseg sorting
2025-06-07 11:43:10 +02:00
James R
71237c5e11
Check that top of sprite is above plane or bottom is below
...
This fixes slightly raised fofs drawing on top of sprites that should be in
front of them. Previously would check that the bottom of the object was above
the plane. Now also uses sprite offsets like the fof seg sorting does.
2025-06-07 11:43:07 +02:00
Alug
9c6e32a1ab
HACK: dont pass wflags to c++
...
silences some annoying compiler complaints lel
2025-06-07 11:43:04 +02:00
Alug
1bc18801c8
cleanup the software drawers even more + unroll them
...
looks pretty clean now, not sure if i want to port the templates, this is good enough for now
2025-06-07 11:43:01 +02:00
Alug
221f2a956e
tiny optimizations
2025-06-07 11:42:58 +02:00
Alug
b450abdf4d
simplify R_ExpandPlane
2025-06-07 11:42:55 +02:00
Alug
d36eed3c09
convert r_segs to ceepeepee + overflow fix from RR R_DrawRepeatMaskedColumn
...
+ alot of cleanup
should more or less function the same, just alot less messy
2025-06-07 11:42:52 +02:00
Alug
43ee791d4a
fix slopes and slope flat alignment
...
software slopes finally are sane........
fixes certain maps like stardust speedway looking like complete butt
need to test ogl, not sure if theres any real change there
2025-06-07 11:42:48 +02:00
Alug
c921945922
cleanup software drawer handling stuff
...
mostly ported from rr
is alot more readable and less confusing
2025-06-07 11:42:45 +02:00
Alug
5f8c77e752
test: allow multithreading for masked planes
...
quite a neat speedup on some maps
needs testing
2025-06-07 01:20:52 +02:00
Alug
064db977aa
HACK: move semaphores into the drawplane loop, to fix a few visual glitches
...
a bit of slowdown, but i have no clue what exactly causes shit, so this is the best solution for now i guess
2025-06-07 01:20:48 +02:00
Alug
5868cd9777
make drawcolum lightlists use realloc again lel
...
otherwise theres a crapton of overlapping memory lel
2025-06-07 01:20:44 +02:00
Alug
b0ddde996a
forgor this from removing screen size static array stuff lel
2025-06-07 01:20:41 +02:00
Alug
e03c3766f0
forgor to free the mask heads lel
2025-06-07 01:20:37 +02:00
Alug
953c0d7451
convert r_things to ceepeepee
2025-06-07 01:20:34 +02:00
Alug
97b303c362
split skin stuff from r_things into r_skins
...
what a mess
2025-06-07 01:20:31 +02:00
Alug
2ffe736a20
smol cleanup
2025-06-07 01:20:28 +02:00
Alug
21f2032f34
save smol amount of fixed to double conversions in R_StoreWallRange
...
also adds those as actual functions in case we wanna use it for smth else
2025-06-06 17:37:55 +02:00
Alug
2f66207205
make this less ugly
2025-06-06 16:55:38 +02:00
Alug
5a14b09c1f
cache ds->transmap for translucent span drawers
...
super slight speedup
2025-06-06 16:35:26 +02:00
Alug
7e9da92dbe
dont redundantly clamp the sprites texturecolumn
...
we already take care of this in the lööp header
2025-06-06 16:35:23 +02:00
Alug
a27550b95b
fix R_ProjectSprite clipping checks overflowing
...
was causing sprites to disappear in some angles
2025-06-06 14:43:03 +02:00
Alug
556883487d
optimize software hud drawing
...
from srb2classic adjusted to our drawers
2025-06-06 01:17:36 +02:00
Alug
96f8533479
dont check for wraps on 0 height textures in column drawers
...
slight speedup thx srb2classic!
2025-06-06 01:04:20 +02:00
Alug
f3cca27448
cache vid.width in the column drawers
...
shit was really slow lel
2025-06-06 00:55:23 +02:00
indev
252563725d
Make tiltlighting buffer thread_local
2025-06-06 01:42:15 +03:00
indev
9a934a55e2
Revert "ok fuck you tiltlighting static buffer it is"
...
This reverts commit 2a023246be .
2025-06-06 01:39:51 +03:00
Alug
f07d5d381e
fix the goddamn boolean
2025-06-06 00:19:23 +02:00
Alug
3faab66ef4
add toggle for software multithread
2025-06-06 00:04:42 +02:00
Alug
2a023246be
ok fuck you tiltlighting static buffer it is
2025-06-06 00:04:39 +02:00
Alug
006e7fe8f8
move this
2025-06-06 00:04:36 +02:00
Alug
1a7ff21a04
fix some warnings and plane ripple
2025-06-06 00:04:33 +02:00
Alug
98cb0fdcb2
fix slopes and other shit
2025-06-06 00:04:30 +02:00
indev
1fd7e9cdac
Add -lpthread into libs and cxxopts into c++ compilation flags
2025-06-06 00:04:27 +02:00
indev
0a2eac4d3a
Add ifdef __cplusplus into hardware/hw_main.h
2025-06-06 00:04:24 +02:00
Alug
9ac6fffd4d
busted ass multithreading for le soft
2025-06-06 00:04:19 +02:00
Alug
da20f4a087
Merge branch 'newmakefiles' into softwarecrap
2025-06-06 00:04:14 +02:00
Alug
dbf822ced9
dont draw precip in the skybox lel
2025-06-05 15:05:29 +02:00
Alug
095842f4aa
smol cleanup the splat drawers
...
didnt knew we actually use em so kinda didnt care lel
2025-06-05 15:00:35 +02:00
Alug
8c290d7597
kill static buffer for tiltlighting, again
...
kinda ugly but gets the job done lel
2025-06-05 14:48:50 +02:00
Alug
8a6f4db9af
fix precip not drawing
2025-06-05 14:48:47 +02:00
Alug
99186a86db
port masked drawlists for software + portal visplanes
...
Note: need to check if we gotta readd portalcullsector for ogl portals, technically this is alot faster and fixes the occasional portal disappearing, but may introduce occasional visual bugs
2025-06-05 14:48:44 +02:00
Alug
c67bf97f7b
unglobalize drawspandata
2025-06-05 14:48:41 +02:00
Alug
33a1540fcd
unglobalise drawcolumndata
...
from RRs multithread
will follow up with spandata
2025-06-05 14:48:38 +02:00
Alug
529b0d643a
delet dc_hires
2025-06-05 01:41:55 +02:00
Alug
4576efbe5c
remove FIXMEs from draw column stuff
2025-06-05 01:27:34 +02:00
Alug
185375ece1
use ternaries for column clamp
...
it is slightly faster for me lel
also lets us get rid of an extra variable
npow2min is also declared static as its always -1
2025-06-05 01:25:33 +02:00
Alug
d11521954e
move those around + remove NOWATER ifdef
2025-06-05 01:01:31 +02:00
Alug
41c4300ec2
split r_draw8 into r_drawcolumn and r_drawspan
...
+ remove the _8 from the "namespace" since we dont have highcolor stuff
2025-06-05 00:52:53 +02:00
Alug
51d5023f29
those can be just "while" lööps
2025-06-05 00:44:59 +02:00
Alug
d2878f8834
set MAXVIDWIDTH and MAXVIDHEIGHT to 8192
...
should accomidate absolutely everything
2025-06-04 23:03:17 +02:00
Alug
7808159d23
get rid of static screen size buffers, alloc em to current screen size instead
...
mostly taken from srb2s any-resolution branch
2025-06-04 23:03:14 +02:00
Alug
e759431948
clamp shit so vhs effect doesent do oob writes on some resolutions
...
shoddy way but fuckit
2025-06-04 20:46:12 +02:00
Alug
268ccce955
move ripple blit stuff into own function
2025-06-04 20:00:06 +02:00
Alug
f2d3432bf5
make software ripple splitscreen checks less awful to look at
2025-06-04 18:48:33 +02:00
Alug
2da89f1946
remove ylookup, columnofs and topleft lookups
...
move screens array to "vid" struct
remove a bunch of unused stuff
this speeds up 4 player splitscreen ever so slighty
mostly just alot cleaner than the mess it was before
2025-06-04 15:55:46 +02:00
Alug
6153733df4
unroll span drawer loops
2025-06-04 15:55:43 +02:00
Alug
d280b39f9f
use floats flor slope drawing
...
idea from srb2classic
2025-06-04 15:55:40 +02:00
indev
236e7b8d45
Fix game rendering only first splitscreen player in opengl
2025-06-04 03:57:54 +03:00
chromaticpipe
dcccf672c9
Truncate trailing zeroes in float CVars
2025-06-03 13:18:02 -05:00
Alug
03f81bed16
dont initialise those twice lol
2025-06-03 20:00:52 +02:00
chromaticpipe
fc51c1ba88
Fix help command for CV_FLOAT CVars
2025-06-03 11:38:46 -05:00
chromaticpipe
d6b838f7cb
GIF Dynamic Delay
2025-06-02 15:57:43 -05:00
Alug
83d20a72ab
delet this since its mostly wrong anyways
2025-06-02 20:05:09 +02:00
indev
d50c1ab6d7
dedi's do run got_mapcmd :p
2025-06-02 14:21:34 +03:00
Alug
984c2ff8d6
Merge pull request #175 from chromaticpipe/serverinfo
...
Display server information before connecting to it
2025-06-01 21:03:19 +01:00
chromaticpipe
74646acdca
Options.
2025-05-31 16:27:34 -05:00
indev
45ffe87ba6
Add new music credit draw style, 'songcredits Box'
2025-05-31 22:27:17 +03:00
Alug
37eb8cfa57
shut up curl im already long
2025-05-31 21:01:57 +02:00
Alug
a0f903f162
i like switches mhhhm
2025-05-31 21:01:53 +02:00
Alug
7aadc77a69
Merge remote-tracking branch 'origin/luamusicdef' into Saturn-Testing
2025-05-31 19:39:39 +02:00
indev
8fb1775606
Forgot MusicCredit hook
2025-05-31 19:15:04 +03:00
indev
fab7635373
Add musicdef lua stuff into LUASTUFF.md
2025-05-31 19:10:58 +03:00
indev
b29ca13916
Add musicdefs table into lua
2025-05-31 18:54:07 +03:00
Alug
27e1406e6d
Merge branch 'Saturn-Next' into Saturn-Testing
2025-05-31 17:44:33 +02:00
Alug
f1f0782256
fix memoryleak in pk3 verify functions
2025-05-31 17:30:19 +02:00
Alug
0e9a825f63
some crap from ceepeepeecheck
2025-05-31 17:27:07 +02:00
Alug
796204d376
use memcmp during startup map check
...
prob not faster just looks a bit better tbh
2025-05-31 17:20:46 +02:00
Alug
e13ba89f1a
use memcmp during startup map check
...
prob not faster just looks a bit better tbh
2025-05-31 17:20:38 +02:00
Alug
acabd1a03e
Merge branch 'votebgstuff' into Saturn-Testing
2025-05-31 17:13:58 +02:00
Alug
c08aae2622
Merge branch 'Saturn-Next' into Saturn-Testing
2025-05-31 17:13:00 +02:00
indev
68ae880979
Change the way how musicdefs are stored (preparing for exposing them to lua)
2025-05-31 18:04:08 +03:00
Alug
5c53a90eea
hack: reset musiccredits when changing gamestate
...
otherwise they may persist if theyve been currently displayed
2025-05-31 16:20:58 +02:00
Alug
55c6ba6d12
fix awayview join crash
...
player->awayviewmobj may not exist yet in some cases
2025-05-31 15:57:20 +02:00
Alug
d8b2134aef
dont let dedi cache vote patches lol
2025-05-31 15:32:57 +02:00
Alug
c168832f8e
forgor to remove this
2025-05-31 15:32:53 +02:00
Alug
448a603a56
dont let dedi free votepatches lel
2025-05-31 15:32:42 +02:00
Alug
2a95201c6d
free votepatches also in ogl not just software
2025-05-31 15:32:39 +02:00
Alug
a73de55f96
also put votescreen patches into votescreen struct
...
+ more cleanup
2025-05-31 15:32:34 +02:00
Alug
e4a4496be6
rename luaVoteScreen to luaPrefix + make it static buffer
...
since its effectively just a prefix,
2025-05-31 15:32:18 +02:00
Alug
a8f3a8dfb0
fix oopsie that caused use after free
2025-05-31 15:32:14 +02:00
Alug
e19b9d1c60
fix smol mistake votescreen check
2025-05-31 15:32:11 +02:00
Alug
e28ec4e7cb
unnest loop stuff in P_PartialAddWadFile
...
may speed this up ever so slightly since we dont need to go through all wad lumps 3 times per call anymore
2025-05-31 15:31:58 +02:00
Alug
d0f09b467b
Put votescreen background stuff into a struct
...
+ some refactoring and renaming
- removed some unused and redundant variables
- renamed some variables
turns out the lua votescreens always used the animated votescreen drawer, so i renamed it to lua votescreen drawer
2025-05-31 15:30:50 +02:00
Alug
6617382f54
Revert "reset the palette earlier during levelload"
...
This reverts commit 5e532a76cf .
2025-05-30 23:59:08 +02:00
chromaticpipe
dd499a410f
Very bad gamepad support
2025-05-30 13:30:47 -05:00
chromaticpipe
c04ba992a7
Forgort something
2025-05-30 13:26:27 -05:00
chromaticpipe
27c053cd48
Add Server info screen, ported from SRB2Classic
2025-05-30 13:23:36 -05:00
Alug
7d68c0598c
Fix underflow in consistancy checking code
...
https://git.srb2.org/Hanicef/SRB2Classic/-/commit/9f5686ef48956cd64ef92f737e59cbbaa27d8cf9
2025-05-30 02:54:48 +02:00
Alug
201c725dc7
cleanup d_main a little
2025-05-30 02:54:45 +02:00
Alug
e47e58a982
fixup ceepeepee support
2025-05-29 21:40:15 +02:00
Alug
3eba512ad4
Merge branch 'newmakefiles' into Saturn-Testing
2025-05-29 19:35:34 +02:00
Alug
c05068f22f
why are those still here lel
2025-05-29 19:35:15 +02:00
Alug
f5cb473f3d
thanks windoze very cool part 2
2025-05-29 19:33:46 +02:00
Alug
c5b72f24b5
thanks windoze very cool
2025-05-29 19:33:37 +02:00
Alug
57b2316c42
didnt mean to change this lel
2025-05-29 19:01:19 +02:00
Alug
fe682a8071
only make screentexture for postprocess if we need to
...
gives quite a neat perfboost on the gpu side
2025-05-29 19:01:16 +02:00
Alug
c99115d552
thanks windoze very cool part 2
2025-05-29 17:27:38 +01:00
Alug
bf44a054a1
move HWR_GetTexturePalette calls
...
to after early returns/where they are used
2025-05-29 18:17:26 +02:00
Alug
eca9c60d9b
call HWR_LoadMapTextures in paletterender toggle callback
...
from srb2 pr
2025-05-29 18:17:23 +02:00
Alug
bf6c682cc1
thanks windoze very cool
2025-05-29 17:16:51 +01:00
Alug
dc2f0b5707
Merge branch 'Saturn-Next' into Saturn-Testing
2025-05-29 18:23:08 +02:00
Alug
58de672915
add comment
2025-05-29 15:31:32 +02:00
Alug
9488d98cfd
Merge branch 'Saturn-Next' into Saturn-Testing
2025-05-29 12:43:04 +01:00
Alug
906b8165d3
dont use stdbool´s bool type
...
this badly breaks everything
apparently the code assumes boolean to be an interger type or some shit
2025-05-29 12:41:56 +01:00
Alug
16b5037486
dont use stdbool´s bool type
...
this badly breaks everything
apparently the code assumes boolean to be an interger type or some shit
2025-05-29 12:41:45 +01:00
Alug
cf42c35b9f
add mo checks to automap stuff
2025-05-29 13:40:57 +02:00
Alug
a364068abb
add a bunch of checks for if G_BuildMapTitle returns NULL
2025-05-29 13:40:53 +02:00
Alug
e88093d9cf
no need for an else here
2025-05-29 12:30:07 +02:00
Alug
5e532a76cf
reset the palette earlier during levelload
...
generally make this behave like srb2/rr again
2025-05-29 12:30:05 +02:00
Alug
fb9c459269
readd cubeapply check here
2025-05-29 12:30:00 +02:00
Alug
7c34733eea
add nofork parameter to dedibuild
2025-05-28 23:58:10 +02:00
indev
359befd857
Add MusicCredit lua hook
2025-05-28 23:27:30 +03:00
Alug
74c8325987
Merge branch 'updatewinlibs' into Saturn-Testing
2025-05-28 22:16:37 +02:00
Alug
e30efbfe6c
Revert "update lzf to 1.6"
...
This reverts commit 9899747a7f .
2025-05-28 22:16:30 +02:00
Alug
5d4bb0f5ce
Merge branch 'Saturn-Next' into Saturn-Testing
2025-05-28 22:14:17 +02:00
Alug
a6898bd1cd
this memset is incorrect and does nothing
2025-05-28 22:12:00 +02:00
Alug
ff474d18ee
remove this
...
prob wrong assumption, our netcode sucks massive ass
2025-05-28 21:44:38 +02:00
Alug
e63777c7d6
remove this
...
prob wrong assumption, our netcode sucks massive ass
2025-05-28 21:42:29 +02:00
indev
279dfcafc4
Expose S_FindMusicCredit and musiccredit_t to lua
2025-05-28 22:10:25 +03:00
Alug
a34ca05bff
this is testing lel
2025-05-28 20:45:26 +02:00
Alug
f15d3be263
forgor the hw state lel
2025-05-28 18:39:20 +02:00
Alug
19e5366c5b
add wireframe mode for ogl
2025-05-28 18:31:55 +02:00
Alug
346dee019c
fix compiler warning bout playeringame
2025-05-28 18:31:37 +02:00
Alug
18914f22f2
remove crappy memcpy redifine from md5
2025-05-28 18:31:33 +02:00
Alug
bcec8b98f7
make the game c23 compatible properly
...
+ some cleanup and removal of some redundant checks
2025-05-28 18:25:07 +02:00
Alug
af9ffc1f6f
forgor the hw state lel
2025-05-28 16:37:37 +01:00
Alug
18816453f4
add wireframe mode for ogl
2025-05-28 18:31:21 +02:00
Alug
1eb8a75058
fix compiler warning bout playeringame
2025-05-28 18:30:26 +02:00
Alug
5abf42fe75
remove crappy memcpy redifine from md5
2025-05-28 18:29:18 +02:00
Alug
1306a233b8
Further improve sleep accuracy on UNIX systems
...
but not for dedis
https://git.srb2.org/STJr/SRB2/-/merge_requests/2583
2025-05-28 18:28:22 +02:00
Alug
46f8c6b7a5
remove forcing c17 from makefile
2025-05-28 18:26:47 +02:00
Alug
face5cf447
Merge branch 'fixgnu23' into Saturn-Testing
2025-05-28 18:26:24 +02:00
Alug
603267b753
fix W_CheckNumForFolderStartPK3
2025-05-28 17:47:29 +02:00
Gustaf Alhäll
7cf3113d67
Fix long names using the wrong hash field
2025-05-28 17:47:25 +02:00
Alug
397fa962b1
Optimize lump searching
...
https://git.srb2.org/Hanicef/SRB2Classic/-/commit/dc608f084c76cf72de9fc3f3f347752f04acae42
2025-05-28 17:47:22 +02:00
Alug
d2637ab71f
Merge branch 'newmakefiles' into Saturn-Testing
2025-05-28 17:47:01 +02:00
Alug
a6e020adeb
Merge branch 'texloadstuff' into Saturn-Testing
2025-05-28 17:46:43 +02:00
Alug
d50dcac0c0
Merge branch 'unnestmothink' into Saturn-Testing
2025-05-28 17:46:40 +02:00
Alug
dd6bc23a8e
Merge branch 'updatewinlibs' into Saturn-Testing
2025-05-28 17:46:35 +02:00
Alug
1219ecf818
check for 32bit with __SIZEOF_POINTER__ for precip drawdistance
...
thx @chromaticpipe for the tip!
2025-05-28 16:27:40 +02:00
Alug
b6923d0d0d
readd flexible array for softwarepatch columnofs
...
how did this ever work lel
2025-05-28 16:21:57 +02:00
Alug
393ade780c
add missing "time" include from dedi i_system
2025-05-28 14:43:27 +01:00
indev
8b2e6ea17b
libpeethread
2025-05-28 16:54:37 +03:00
Alug
8c31682723
smol adjustments for main
2025-05-28 15:43:21 +02:00
Alug
7c87b5259a
port SRB2s new makefiles + add dedicated build (squashed)
...
also fix some of the new warnings
to make a dedicated build just pass DEDICATED=1 to the compiler
TODO:make this compatible with bluajit
2025-05-28 15:38:25 +02:00
Alug
e8969b0645
dont always print openmpt version to console
...
just use I_OutputMsg instead
2025-05-27 18:31:20 +02:00
Alug
7932c1af6f
Print the current SDL_mixer version
...
when initializing the sound system
2025-05-27 18:30:55 +02:00
Alug
71575f5cf8
Revert "update sdl_mixer to 2.8.1"
...
This reverts commit b8ae656968 .
2025-05-26 22:11:03 +01:00
Alug
3685502edf
Revert "delet tic resending stuff"
...
This reverts commit 17bc8a4a36 .
2025-05-26 18:10:03 +02:00
Alug
9899747a7f
update lzf to 1.6
2025-05-26 18:02:21 +02:00
Alug
d2a415380d
oop we still need libgme.dll
2025-05-26 15:15:46 +01:00
Alug
dd7ffd7dfe
delet GETTEXT and translation stuff
2025-05-26 14:48:31 +01:00
Alug
770f9af5e1
cleanup some stuff
2025-05-26 14:31:53 +01:00
Alug
c2ab5be8b8
Merge remote-tracking branch 'origin/winzlib-ng' into updatewinlibs
2025-05-26 13:21:03 +01:00
Alug
b8ae656968
update sdl_mixer to 2.8.1
...
we can also get rid of a bunch of dlls now
2025-05-26 13:12:43 +01:00
Alug
553b61e1f5
update SDL2 to 2.32.6
...
also removes a bunch of files we dont need
2025-05-26 12:51:45 +01:00
Alug
95b4228d3c
update windoze libbacktrace
...
never was updated since we added this 2 years ago lel
2025-05-26 11:03:56 +01:00
Alug
a0ff44043f
Merge branch 'Saturn' into Saturn-Next
2025-05-25 17:37:40 +02:00
Alug
1e15816057
make screen tilt stuff slightly prettier lel
2025-05-25 17:36:38 +02:00
Alug
a4566e9496
v8.2
2025-05-25 13:59:36 +01:00
Alug
18f88c28dd
Merge pull request #174 from Indev450/Saturn-Next
...
Saturn v8.2
2025-05-25 14:59:06 +01:00
indev
b8dc1b13df
Merge pull request #173 from chromaticpipe/wateramplitude
...
Adjust the amplitude of GL underwater effect
2025-05-24 18:12:38 +03:00
chromaticpipe
33c03f1e7a
Adjust the amplitude of GL underwater effect
...
Also fixed a string truncation warning
2025-05-24 09:02:49 -05:00
Alug
f87bcef079
try fixing some crash with bogus netxcmds
2025-05-23 16:55:47 +02:00
Alug
c3458afe2b
unglobalise holepunchpacket aswell
2025-05-23 16:53:42 +02:00
Alug
17bc8a4a36
delet tic resending stuff
2025-05-23 16:51:26 +02:00
Alug
b04f017ab6
change ticqueue system to be more like srb 2.2
...
mostly just renaming lel
2025-05-23 16:51:10 +02:00
Alug
083ddb6396
Refactor netbuffer out of global namespace
...
https://git.do.srb2.org/Hanicef/SRB2Classic/-/commit/079fd2cef97a9cf22fb5d2b66a9b500914efbc72
+ move some things into functions
2025-05-23 16:48:34 +02:00
Alug
c3129742c3
simplify cmpack
2025-05-23 16:44:52 +02:00
Alug
877bd640f3
fix destinationnode check in Processackpak
2025-05-23 16:43:52 +02:00
Alug
3233df9c6c
do not resolve ipv4 in curl when using ipv6
2025-05-23 16:43:24 +02:00
Alug
9ad5f5189c
split portnum retrieval into own function
2025-05-23 16:43:02 +02:00
Alug
c7718dea79
fixup! i_tcp
...
technically make ipv6 work,, but its disabled by default
2025-05-23 16:40:38 +02:00
Alug
fa3dcdb24f
massive cleanup p_mobj
2025-05-23 16:31:17 +02:00
Alug
311258dda0
more unnesting for mobj think stuff
2025-05-23 16:24:50 +02:00
Alug
a0f8816de7
readd itembox fuse think that was lost somehow lmao
2025-05-23 16:22:03 +02:00
Alug
c546b6225c
move this since it does check for fuse
2025-05-23 16:21:48 +02:00
Alug
f6c6621af8
unnest and cleanup P_MobjThinker
...
everything was moved into seperate functions lel
2025-05-23 16:21:27 +02:00
Alug
5a0fb59b26
Do not reload every texture when adding a wad (squashed)
...
port of https://git.do.srb2.org/STJr/SRB2/-/merge_requests/1725#c829d21709a4f5cd81d140271e883bc40dd00b1b
2025-05-23 16:16:10 +02:00
indev
7e5ae71714
Do backups for custom configs too
2025-05-23 15:14:42 +03:00
Alug
b574ed0b1b
allow capping the game fps seperately for when its unfocused
2025-05-22 23:17:48 +02:00
Alug
01c621832b
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Next
2025-05-21 12:14:51 +02:00
Alug
608cc66d78
try to fix curl crashing if you dont have write access to download folder
2025-05-21 12:14:45 +02:00
indev
35103ad810
Only run song credits drawer and ticker in menu instead of all hud
2025-05-20 16:48:51 +03:00
indev
5ac0262654
Fix 'make clean' keeping depend.dep file
2025-05-20 01:02:03 +03:00
Alug
c361285790
we may fixed the double free, but now we fix the ghost hitlist also crashing
2025-05-19 20:01:29 +02:00
Alug
a168b5e2b9
let resynch method be "toggable"
...
setting gamestate attempts to 0 should disable saturn resynch and setting resynchattempts to 0 should disable vanilla resynch
2025-05-19 16:40:02 +02:00
Alug
f70c38a853
Merge pull request #171 from Indev450/votebgscaling
...
Better Vote Background scaling behaviour
2025-05-19 15:01:07 +01:00
Alug
4c05c063a9
oop this was always true effectively
2025-05-19 15:59:15 +02:00
Alug
ed05a909cb
add vote scaling to menu
2025-05-19 15:56:56 +02:00
Alug
e1e45ad3ad
readd player var to lib_pDoSuperTransformation
...
otherwise this may desynch?
2025-05-19 15:48:29 +02:00
Alug
ca9b001c9f
even more random cleanup 2
...
hope i got everything right lel
2025-05-19 15:30:54 +02:00
Alug
3976d80867
delet old tools
...
they dont work anymore anyways
2025-05-19 00:22:34 +02:00
Alug
1ee10457f8
delet dummy
2025-05-19 00:22:31 +02:00
Alug
116bcd0cb1
random cleanups
...
note: 2d camera didnt work anyways
2025-05-18 16:46:25 +02:00
Alug
fcdccb96aa
move camera to spawn if you press freecam toggle when spectating
...
since we dont use the toggle in spectatormode
might be useful to return to the mapstart fast or smth
this is mostly just copy pasted from P_ResetCamera, which should be fine hopefully since we dont move our spectators anymore
2025-05-17 14:54:11 +02:00
Alug
723286826b
make this switch slighty prettier
2025-05-17 14:02:00 +02:00
Alug
b190f09aea
fix 3d models rollangle on gravflip
...
idk if this is correct, but it works lel
2025-05-17 14:01:57 +02:00
Alug
ff6358b031
make ogl screenflip stuff directly assignable
...
those dont need to be seperate bools lel
also simplify the assignment aswell
2025-05-17 14:01:54 +02:00
Alug
5899a0c453
ok even more cleanup for animvote check
2025-05-16 14:22:19 +02:00
Alug
db4d9a330a
even more tiny cleanup votebg stuff
2025-05-16 14:22:16 +02:00
indev
03264e760f
Allow music credit to be drawn in intermission and main menu
2025-05-16 13:36:05 +03:00
Alug
224e3b25e5
Revert "those appear to do nothing"
...
This reverts commit 5f40ff5a03 .
2025-05-16 01:30:28 +02:00
Alug
03c624a77b
make addon warning not print "(null)" if there is no refreshdirname
...
kinda lazy way but shrug
2025-05-15 21:41:05 +02:00
Alug
1ed76de58a
macrofy redundant splitscreen menus
...
joystick and camera menus to be specific
2025-05-15 21:41:00 +02:00
Alug
5f40ff5a03
those appear to do nothing
...
free performance ig?
2025-05-15 01:26:57 +02:00
Alug
b1baa90b19
move paletterender walllight stuff into HWR_CalcWallLight
...
just slightly cleaner
2025-05-15 01:26:36 +02:00
Alug
f0579de244
HWR_UsePortals
2025-05-15 01:26:33 +02:00
Alug
044836b026
change gamepad powerup led behavior
...
it will instead always take the players mobj color, this makes it indirectly support things like acrobatics and the colourized banana snipe
also just makes it a value for cv_gamepadled instead of its own cvar
2025-05-15 01:26:27 +02:00
Alug
c2a761c895
delet some clutter in screen.c
2025-05-14 16:37:04 +02:00
Alug
5b6e7abd91
fix copy paste error oops
2025-05-14 16:18:18 +02:00
Alug
c47c6aa6e4
make votebg scaling behaviour changable
2025-05-14 16:18:15 +02:00
Alug
5a6a954d4f
make an adaptive votescreen patch scaler
...
attempts to first fill the screen horizontally, if the screen is not filled vertically like that, it will then change the scaling to fill the screen vertically
like this effectively every votebg fills up the screen and accomidates most bgs that added padding for the weird vanilla behaviour
TODO: make the behaviour switchable
2025-05-14 16:18:12 +02:00
Alug
92bf8c0788
Make votescreen backgrounds resolution and dup independant
...
also some slight cleanup
currently this scales vertically to fill out the screen vertically
not sure if horizontally would be preferred, but thatd most likely cut off alot of parts from some votebgs
2025-05-14 16:18:08 +02:00
Alug
058139f52b
dont allow changing grid sorting with item if item button is also enter
2025-05-13 22:38:32 +02:00
Alug
612d01a8ce
disable this
2025-05-13 22:38:29 +02:00
Alug
bc130ce1f9
clamp screentexture size to maximum supported texture resolution
...
also moves everything into GL_SetModelView again
also means screen texture sizes wont be recalculated every frame anymore
2025-05-13 04:39:21 +02:00
indev
8abab58a5c
Fix game crashing when attempting to print '%s has no field named %s' for few lua userdata objects
2025-05-12 18:02:20 +03:00
Alug
740de2babe
fix replay saving during intermission with manual save
2025-05-12 06:12:23 +02:00
Alug
9d54baf544
fix minimap angle display in encoremode
2025-05-11 18:47:45 +02:00
Alug
c68c61975e
Merge pull request #169 from Indev450/Saturn-Next
...
Saturn v8.1
2025-05-11 16:42:59 +01:00
Alug
6f7947dd5f
fix smol oopsie for colourized speedlines
2025-05-11 17:41:25 +02:00
Alug
cb8930fef6
v8.1
2025-05-11 17:13:22 +02:00
Alug
93d87e1132
fix oob write when map has playerstarts for 32 players
...
playerstarts is MAXPLAYERS big, which is 16 for us
2025-05-11 17:13:04 +02:00
Alug
d5583ba040
add "nofork" parameter
...
to disable process forking
might be useful for gdb and perf
2025-05-11 17:12:56 +02:00
Alug
7bb3e4445e
change colourized speeline behaviour slightly
...
"driftonly" will tone the lines completely instead of alternating between blue and driftcharge
"normal" will completely colourize speedlines in the player colour
2025-05-11 17:12:54 +02:00
Gustaf Alhäll
001a38bbd2
Fix off-by-one buffer overflow when getting LUT 255
2025-05-11 17:12:50 +02:00
Alug
463778cd88
fix 3d models tanking performance to hell
2025-05-11 01:23:07 +02:00
Alug
f263585a72
make this check like vanilla did
2025-05-11 01:23:04 +02:00
Alug
ec0ca0d1ab
unlock everything when using modkartdata save
...
doesent make too much sense having to unlock everything again when playing mods
2025-05-10 23:43:04 +02:00
Alug
121540f428
dont check for how many controllers just attempt to reset "all"
...
JoyInfo->dev will be null
The crash before was most likely due to an oob read
2025-05-10 22:00:52 +02:00
Alug
8b5fd5f646
fix saturn menu
2025-05-10 19:16:32 +02:00
Alug
23a9afb727
fix typo in rumble reset
2025-05-10 18:59:56 +02:00
Alug
38b862ff16
Revert "skinlocal deez nuts"
...
This reverts commit 12ec3d11a2 .
i hate localskins so much its unreal
2025-05-10 18:59:50 +02:00
Alug
7e31536ff9
Merge branch 'Saturn-Next' into Saturn
2025-05-10 16:23:03 +02:00
indev
679e582028
jin is with lowercase j
2025-05-10 17:01:14 +03:00
indev
bfc34337a3
Add P_CheckSightFast into LUASTUFF.md
2025-05-10 16:54:53 +03:00
Alug
c2cf6f17d1
Merge pull request #167 from Indev450/Saturn-Next
...
Saturn v8
2025-05-10 09:39:39 +01:00
Alug
5b44c03892
these should be reset in the loop
2025-05-10 08:35:52 +01:00
Alug
69e3722e81
Fix controls getting stuck when opening the pause menu
...
https://git.srb2.org/Hanicef/SRB2Classic/-/commit/ed53d96430dedac42b288bd6a5ca8152e6e6acc4
2025-05-09 15:17:30 +02:00
indev
2fbc1140c4
Fix NOWH compilation (only check if renderer supports palette if HWRENDER is defined, otherwise run subpalette code unconditionally)
2025-05-08 17:39:27 +03:00
indev
9747eab9f3
Add I_Sleep into CONS_Error so if a wad file was not found game won't take 100% of cpu
2025-05-08 17:20:28 +03:00
Alug
f98e7b13f4
cleanup dpad scroll stuff even more
...
mostly just to make this more readable
2025-05-08 10:24:33 +02:00
Alug
5cc6743328
dont keepmusic music that is not flagged as keep on death
...
uuuuuggggghhhhhhhhhhhh
2025-05-06 22:06:53 +02:00
Alug
c0d8f4fbfe
idk where this stuff came from
...
but we can access delayremoved thinkers in kart cause bleh
2025-05-06 19:42:32 +02:00
Alug
d7c1e464d4
Revert "optimize MT_TUBEWAYPOINT"
...
This reverts commit 3d0ac03f06 .
2025-05-06 19:36:38 +02:00
Alug
7e5baeebaf
dont free item patches at levelload lol
2025-05-06 17:37:57 +02:00
Alug
0c7d50b38a
call M_ClearMenus in D_StartTitle
2025-05-06 17:08:54 +02:00
Alug
fa951475ba
fix 32bit windoze compile
...
everything needs time.h idk why it never errored out before lol
2025-05-06 11:53:27 +01:00
Alug
a608676bbd
fix the fast pointonsides
2025-05-05 12:51:37 +02:00
indev
8dd52f278b
Merge pull request #166 from chromaticpipe/interpdebug
...
Add interpolation related stats to perfstats
2025-05-05 13:09:18 +03:00
chromaticpipe
7634859503
Use more correct flags for interpolation stats + misc fixes
2025-05-04 18:29:23 -05:00
chromaticpipe
cf1abbd176
Add interpolation related stats to perfstats
...
These were commented out for some reason..
2025-05-04 12:13:02 -05:00
Alug
b71c1152c6
skinlocal deez nuts
2025-05-04 01:36:01 +02:00
Alug
46f3529165
simplify this slightly
2025-05-04 00:48:01 +02:00
Alug
ce99a3f5a6
print previously supressed warnings into log instead of console
2025-05-03 23:17:33 +02:00
Alug
880db98961
dont mindelay when record attacking
...
theres a few places that do not "lag compensate" at all in RA so this would completely mess things up
2025-05-03 23:10:43 +02:00
Alug
d2d0e0c979
smol cleanup m_perfstats
2025-05-03 20:45:40 +02:00
Alug
7abee5ae11
add USELTO and USEASAN make flags
...
to compile with LTO or Address sanitizer
2025-05-03 17:21:18 +02:00
Alug
e025404bbf
forgor casting this
2025-05-02 11:12:12 +02:00
Alug
f8b9c8290e
let squishy speed be player choosable
...
idk why i just didnt do that lel
also adds stuff to the menus
2025-05-02 10:58:53 +02:00
Alug
d1d9236539
Merge pull request #164 from Chearii/minimapheadlight
...
Add a minimap headlight
2025-05-02 09:36:10 +01:00
Alug
63abd00c6a
that needs to come before old_ stuff gets reset
2025-05-02 10:23:11 +02:00
indev
5f01d1ff84
Refactor /pm draw code a little
2025-05-02 00:23:52 +03:00
Chearii
62fa1777dd
ts pmo fr icl istg
...
me when my code has to be robust!!
(I also Forgot to remove the SHORT marcros oops!)
2025-05-01 15:47:50 -04:00
Chearii
59deb7c8c1
add a minimap headlight
2025-05-01 15:40:58 -04:00
indev
d1c7e08496
Revert "Attempt to fix game freezing on windows when moving game window"
...
This reverts commit 231ff3b502 .
2025-05-01 13:02:26 +03:00
indev
066b12f075
Revert "fix compile"
...
This reverts commit c0aa3e48cd .
2025-05-01 13:02:22 +03:00
Alug
d1bb0b97d2
seriously screw you windoze
2025-05-01 08:56:43 +01:00
Alug
c0aa3e48cd
fix compile
2025-05-01 08:55:08 +01:00
Alug
a1a4b7cfbf
force c17 with gcc 15 for now
...
dont feel like porting stuff over to c24 or whatever for v8 so just force c17 so ppl can still compile
2025-05-01 00:31:37 +02:00
indev
231ff3b502
Attempt to fix game freezing on windows when moving game window
2025-05-01 01:06:00 +03:00
Alug
3fb4c6484d
tiny more cleanup screencoord stuff
2025-04-30 14:58:06 +02:00
Alug
7a6e1bcf6c
readd old nanosleep
...
since it appeared to work just fine in testing
actually forgor to remove it from the lol
2025-04-29 21:56:30 +02:00
Alug
cd60ee1188
fix ghost mobj spritescale and offset interpolation
...
had this laying around in lugstuff since ages lol
2025-04-29 21:43:18 +02:00
Alug
4481911cd4
only check for votescreen replacements if we havent already replaced everything
2025-04-29 21:38:45 +02:00
Alug
53b3a994fc
some reformatting lel
2025-04-29 21:38:28 +02:00
Alug
ebcdb23d34
delet old high color software stuff
2025-04-29 21:13:18 +02:00
Alug
431c0f41d1
raise version number
...
so i dont forger about it later lol
2025-04-29 21:02:56 +02:00
Alug
838379d970
we dont have this on this branch
2025-04-29 18:30:23 +02:00
Alug
68c913a5e1
raise cmake minimum requiered to 3.5
2025-04-29 18:22:33 +02:00
Alug
5f82a3b799
Merge pull request #163 from Indev450/patchntexrefactor
...
Refactor Patch and Texture handling
2025-04-29 17:08:25 +01:00
Alug
2369a0c5a1
Merge branch 'Saturn-Testing' into Saturn-Next
2025-04-29 18:07:56 +02:00
Alug
e995ad0499
Reapply "disable jit compilation for now"
...
This reverts commit a662a0a68f .
2025-04-28 22:19:59 +02:00
Alug
7ba21abacd
tiny more cleanup speedometer stuffs
...
put check for color speedo into a function
and precalc the xtra 3 scale
2025-04-28 17:47:37 +02:00
Alug
4c1cfc91da
quick and dirty gcc 15 compile fix
...
need to fix this properly
2025-04-28 13:26:08 +01:00
Alug
79d440d398
quick and dirty gcc 15 compile fix
...
need to fix this properly
2025-04-28 13:25:30 +01:00
Alug
ace8256d73
Merge branch 'Saturn-Testing' into patchntexrefactor
2025-04-28 15:06:11 +02:00
Alug
984d501ee1
move doaddline block
...
slightly better branching since maps with portals are very uncommon in kart
2025-04-28 11:29:45 +02:00
Alug
e138d540c8
skip rechecking for horizonlines when reloading gamestate
...
map remains the same during desynch, so safe some time
2025-04-28 11:21:24 +02:00
Alug
4f81349ea3
another tiny cleanup p_setup and p_saveg
2025-04-28 10:12:09 +02:00
Alug
b960e3d848
fix replay ghost double free
...
kinda rare, but may happen when you resynch on the exact same time you got hit by something
2025-04-27 13:15:18 +02:00
Alug
9c8aee1bef
tiny optimization
...
we dont need to recalc the bpm stuff
we can also divide the bounce in half just once
2025-04-27 00:57:53 +02:00
Alug
cf453bad5f
make a struct for squishy
...
this is horrid but should fix this speeding up when multiple players squish
2025-04-27 00:30:49 +02:00
Alug
8ad161f061
add a few more branching hints
...
also fix some indentation
2025-04-25 21:37:25 +02:00
Alug
a18e81ee18
invert skywall offset
...
also fixes the issue, but doesent draw skywalls over actual walls in rare cases
lets hope this doesent draw walls over actual skywalls now (:
2025-04-25 21:34:36 +02:00
Alug
4f83d3b36b
whitespace crap
2025-04-25 21:34:33 +02:00
indev
97093dbeb9
Don't free PU_SPRITE memory, since it invalidates some lua patches if they are using sprite frames
2025-04-25 12:15:57 +03:00
Alug
2468277068
Merge branch 'Saturn-Testing' into patchntexrefactor
2025-04-24 13:23:16 +02:00
Alug
cd15c5d380
oops didnt think addskins would be used here lel
2025-04-24 13:17:34 +02:00
Alug
b977cf72b7
deprecate "addskins" command
...
"addskins" is an incredibly ambigous name since its main purpose was to add skins LOCALLY
just prints a notice for now since there may be ppl that still use it
2025-04-24 13:17:31 +02:00
Alug
45506b381e
take mobjscale into account when skipping small sectors for precip spawn
2025-04-24 13:11:24 +02:00
Alug
b6fd7a1e96
put precip purge into a function
...
to reduce code dupe and branching
2025-04-24 13:03:35 +02:00
Alug
58a9e17500
fix spectator key lel
...
oopsie
2025-04-24 09:42:24 +02:00
Alug
c14c28ac1e
attempt at cleaning up gamecontrol splitscreen shit
2025-04-24 09:24:44 +02:00
Alug
5df33e0705
cleanup G_Responder
...
man
2025-04-24 09:24:41 +02:00
Alug
987d18fe99
memset those
2025-04-24 09:24:37 +02:00
Alug
7bb4b74c65
fix potential crash on startup
...
thx hanicef
2025-04-24 09:24:05 +02:00
Alug
cf92df5faa
skip checking skin array if localskin was found in localskin array
2025-04-24 09:24:01 +02:00
Alug
f81488500c
just mark it like this
2025-04-24 09:23:58 +02:00
Alug
a099f825a7
missed removing this
2025-04-24 09:23:55 +02:00
Alug
d75ce094ae
Merge remote-tracking branch 'origin/Saturn-Testing' into patchntexrefactor
2025-04-23 19:24:12 +01:00
Alug
1bb52b9c2d
check ceiling first in encore flat precaching
...
no clue why but this fixes the sides of the road on ORR not being encore remapped
2025-04-23 19:54:58 +02:00
indev
1d15f89433
Remove I_Assert in GetItemId in lua_hudlib_drawlist.c
...
It is legal for lua_getpc to be null (thanks GenericHeroGuy for investigating!)
2025-04-23 19:09:02 +03:00
Alug
117db36ed3
move saturn menu stuff around
2025-04-23 16:14:45 +02:00
Alug
9d1b8ba736
move saturn menu stuff around
2025-04-23 16:14:33 +02:00
Alug
d2844e7087
add P_DivlineCrossedFast
...
to take more advantage of P_DivlineSideFast
2025-04-23 16:07:38 +02:00
Alug
def4028028
add P_DivlineCrossedFast
...
to take more advantage of P_DivlineSideFast
2025-04-23 16:07:14 +02:00
Alug
61a4cb554a
use P_UnlinkThinker
...
idk why it still was like this in here lel
2025-04-23 16:05:17 +02:00
Alug
f75eb0d766
port RRs improved paranoia thinker/mobj prints
...
https://git.srb2.org/KartKrew/RingRacers/-/commit/509a023329ea1cd583c500a3287c488e5ee3e3a6
https://git.srb2.org/KartKrew/RingRacers/-/commit/17aaf178d587970a3a845aa6c2f3807077996a77
2025-04-23 16:05:13 +02:00
Alug
ede95c8ec4
use P_UnlinkThinker
...
idk why it still was like this in here lel
2025-04-23 16:04:53 +02:00
Alug
55704f2ba2
port RRs improved paranoia thinker/mobj prints
...
https://git.srb2.org/KartKrew/RingRacers/-/commit/509a023329ea1cd583c500a3287c488e5ee3e3a6
https://git.srb2.org/KartKrew/RingRacers/-/commit/17aaf178d587970a3a845aa6c2f3807077996a77
2025-04-23 16:02:41 +02:00
Alug
87fd33793d
fix P_RemoveSavegameMobj triggering assert in P_UnlinkThinker
2025-04-23 14:02:28 +02:00
Alug
6509e7fdf9
nooo PARANOIA dont set our thinker next to NULL
2025-04-23 14:02:15 +02:00
Alug
cd7177682a
fix P_RemoveSavegameMobj triggering assert in P_UnlinkThinker
2025-04-23 14:01:38 +02:00
Alug
0ceeac4726
nooo PARANOIA dont set our thinker next to NULL
2025-04-23 14:01:38 +02:00
Alug
0b515939ad
we have a global to check if config was loaded
2025-04-23 13:23:52 +02:00
Alug
abba2a9eac
fix cv_set being called for allowsaturnjoin before its registered
2025-04-23 13:23:47 +02:00
Alug
72ea257a06
we have a global to check if config was loaded
2025-04-23 13:22:53 +02:00
Alug
e87ca3fe1b
fix cv_set being called for allowsaturnjoin before its registered
2025-04-23 13:22:50 +02:00
Alug
ca756fd647
Merge branch 'Saturn-Testing' into patchntexrefactor
2025-04-23 11:40:13 +02:00
Alug
ef93209d40
delet bunch of stuff
2025-04-23 11:23:09 +02:00
Alug
af104c2d12
Merge remote-tracking branch 'origin/Saturn-Testing' into Saturn-Next
2025-04-23 11:20:22 +02:00
Alug
0e3ab1354b
Merge pull request #161 from Indev450/kartstats
...
Kartstats
2025-04-23 09:28:35 +01:00
Alug
5dc1576496
Merge pull request #160 from Indev450/oglprecache
...
Fix up texture precaching + add Opengl texture precaching
2025-04-23 09:28:23 +01:00
Alug
c4aba91e79
shh
2025-04-23 09:04:54 +02:00
Alug
5aca7e12c7
:3
2025-04-23 09:00:52 +02:00
Alug
60e0e50141
try to fix skywalls zfighting
...
just apply a small polygonoffset to them
lets hope this is small enough so they dont end up rendering infront of actual textures and such
2025-04-23 01:04:04 +02:00
Alug
db9435f810
reset palette cvars when toggling paletterendering
...
everything gets wiped anyways, so this would be just confusing
2025-04-22 22:11:02 +02:00
Alug
8edec89a36
fix cloud tops palette not applying
2025-04-22 21:52:55 +02:00
Alug
b43ca1f3c7
let saltyhop work without gravstretch
2025-04-22 20:13:44 +02:00
Alug
89906cf384
Revert "speed up ogl palette stuff"
...
why is windows like this?
This reverts commit 1ffb655131 .
2025-04-22 18:43:40 +01:00
Alug
2a3e4c4c6d
smol cleanup z_zone
2025-04-22 20:28:19 +02:00
Alug
e2b1a87ca5
Merge branch 'Saturn-Testing' into patchntexrefactor
2025-04-22 20:28:16 +02:00
indev
e5e63a56a1
Don't resume music when game is paused (happens when you pause -> lose window focus -> regain window focus)
2025-04-22 18:24:59 +03:00
Alug
1ffb655131
speed up ogl palette stuff
...
doesent wipe all our gpu textures if palette hasnt changed too lol
2025-04-22 05:04:04 +02:00
Alug
4ce111139f
add cv_palette and cv_palettenum
...
so palettes can be changed midgame
note: subpalettes do not work properly in opengl with paletterendering disabled, so palettenum will NOT work there
2025-04-22 04:58:40 +02:00
Alug
7c4b93fba8
add some savety to the hudlib
...
just error instead of crashing so we can track down any issues more easily
2025-04-21 14:16:35 +02:00
Alug
fc7405e542
dont free our hud patches when loading an addon lel
...
appears to work fine in RR so we do it here
fixes some weird issues and crashes with certain hud elements
2025-04-21 14:16:31 +02:00
Alug
a57afd046e
Merge remote-tracking branch 'origin/Saturn-Testing' into patchntexrefactor
2025-04-21 12:36:41 +02:00
Alug
bc6ce84a26
replace instances of malloc + memset with calloc
2025-04-21 12:27:52 +02:00
Alug
9638ae56c5
add missing pglDisableClientState
2025-04-21 12:25:50 +02:00
Gustaf Alhäll
f398c0ceea
Fix use-after-free when loading addons after searching addons
2025-04-21 12:25:47 +02:00
Alug
af544e4e16
Fix server listing refusing to list servers on resolution failure
2025-04-21 12:25:44 +02:00
Alug
7ca201ea1b
Merge branch 'Saturn-Testing' into patchntexrefactor
2025-04-20 23:36:04 +02:00
Alug
b622fbb653
add mindelay and gentlemens stuff to menu
2025-04-20 23:35:55 +02:00
Alug
00e59c480e
remove lagless camera from the menu
...
and change cvar name to reset it for everyone
2025-04-20 23:35:52 +02:00
Alug
cd2f8577a0
big cleanup "GetZAt" stuff
...
GetZAt now takes 4 parameters (slope, x, y, normalheight)
and everything now uses their designated getzatfunction
2025-04-20 23:01:53 +02:00
Alug
fe632340b4
fix P_CameraLineOpening
...
lel this was always botched
2025-04-20 23:01:40 +02:00
Alug
e872f25ce6
check for sloperoll first
2025-04-20 23:01:37 +02:00
Alug
f838ff528e
dont need this anymore
2025-04-20 23:01:29 +02:00
Alug
5ba6021010
dont let postload free our waitingplayer spritepatches
2025-04-20 23:00:49 +02:00
Alug
2e5e753d2e
pass hardware patch to HWR_DrawSpriteShadow
2025-04-20 16:40:35 +02:00
Alug
e195126ac0
Merge branch 'Saturn-Testing' into patchntexrefactor
2025-04-19 10:30:22 +02:00
Alug
7bcf8df6fc
unnest timedemo stop stuff
2025-04-19 10:29:33 +02:00
Alug
ce77a29892
fix titlescreen demos crashing, again
2025-04-19 10:29:30 +02:00
Alug
56392d4e78
whoop this is only used by curl
2025-04-19 07:46:43 +01:00
Alug
6cc37b9160
cleanup http download stuff a little
...
unglobalise a bunch of stuffand put into a struct
also hopefully made the progressbar less funky
2025-04-19 07:46:39 +01:00
Alug
2f736fb28c
a
2025-04-19 01:25:51 +02:00
Alug
127e8b52d1
a
2025-04-19 01:25:45 +02:00
Alug
9e8fb1293f
Merge branch 'Saturn-Testing' into patchntexrefactor
2025-04-19 01:24:02 +02:00
Alug
fa3d2abe13
Merge branch 'kartstats' into Saturn-Testing
2025-04-19 01:23:51 +02:00
Alug
c9faccae64
fix software sprite clipping
2025-04-19 01:19:35 +02:00
Alug
126d26cc98
smol software stuffs
2025-04-19 01:19:32 +02:00
Alug
dc49502884
smol fix for R_AddSingleSpriteDef
2025-04-18 23:29:03 +02:00
Alug
f03a12241d
fix hwrpatch grabbing the wrong patch
...
getmapped patch needs to be called before this is referenced to avoid potential issues
2025-04-18 22:45:27 +02:00
Alug
3fe77da35f
readd missing SHORT macro for patch_create
2025-04-18 22:45:24 +02:00
Alug
c79f986a8f
make a backup of save data before writing to it
2025-04-18 12:52:35 +02:00
Alug
2b299039e6
reword this lel
2025-04-18 12:47:31 +02:00
Alug
167e8e9258
Merge branch 'Saturn-Testing' into patchntexrefactor
2025-04-18 11:43:06 +02:00
Alug
8943b6a3b7
reset record attack state in G_ResetDemoPlayback
...
should fix some wonky issues in a few cases
2025-04-18 11:29:52 +02:00
Alug
08f208e4a0
fix record attack condition in G_CheckDemoStatus
2025-04-18 11:24:49 +02:00
Alug
963eb427cf
reset demo stuff for multiplayer demos when using connect command
...
so if smth happens and we cannot connect the game wont be stuck in some weird replay limbo state
2025-04-18 11:24:46 +02:00
Alug
c4fd47657e
fix crash when using connect command from within replays
2025-04-18 11:24:42 +02:00
Alug
6d15fc1ce4
close menus when replay stops
2025-04-18 10:09:52 +02:00
Alug
db43b90b70
Revert "convert fixed to float with multiplication instead of division"
...
i did not intend to push this to testing lel
2025-04-17 20:49:48 +02:00
Alug
da5aaa7ebf
Revert "SHORT ma balls"
...
This reverts commit 5401cb58bd .
2025-04-17 19:37:17 +01:00
Alug
2c290b7473
Merge branch 'Saturn-Testing' into patchntexrefactor
2025-04-17 19:36:50 +01:00
Alug
541c70498d
we dont use MT_WAYPOINT lel
...
just use starposts
also remove rings cause duh
2025-04-17 14:03:03 +02:00
Alug
f2d1cb5606
aaaa !=
2025-04-17 13:50:35 +02:00
Alug
8702ddca60
those do not exist anymore lel
2025-04-17 13:49:13 +02:00
Alug
f7acf7c2d3
fix up the automap again
...
got the rest of stuff working in a horrible way
automap aswell as minigen stuff looks good now
2025-04-17 13:49:10 +02:00
Alug
bcf82970a4
fix oopsie in automap bounds calc
2025-04-17 13:49:07 +02:00
Alug
285c850628
fix automap colours
...
forgor those revert those when i ported RR code over, now they should match up with what they say
2025-04-17 13:49:04 +02:00
Alug
3b4ffa20bc
why?
2025-04-16 23:21:41 +02:00
Alug
006931eaa8
why are these even seperated like that lel
2025-04-16 22:37:39 +02:00
Alug
5401cb58bd
SHORT ma balls
...
need this for now
2025-04-16 22:33:21 +02:00
Alug
efde25469e
Merge branch 'Saturn-Testing' into patchntexrefactor
2025-04-16 22:31:54 +02:00
Alug
b207a87f8b
fix camera vertical look tooltip for green res
...
Zzz...
2025-04-16 22:31:42 +02:00
Alug
1da62eb63d
add minimap icon dot to saturn hud menu
2025-04-16 22:31:39 +02:00
Alug
3e6f028061
add support for drawing a dot on the minimap showing player angle
...
mostly copy pasted from blankart so thx neppy c:
2025-04-16 22:04:34 +02:00
Alug
7bd835f43e
fix minimap disappearing when having minimap trans on 10
2025-04-16 22:04:27 +02:00
Alug
8ec6b2e737
fix compile without ROTSPRITE
2025-04-16 20:28:07 +02:00
Alug
f4fc185f5b
move patch rotation stuff into their own files
2025-04-16 20:25:56 +02:00
Alug
b28593dba7
turn rotcache into a lumpcache_t aswell
...
no need for slow aatrees
2025-04-16 19:22:28 +02:00
Alug
88dc5f25ad
smol cleanup W_CachePatchNumPwad
2025-04-16 19:21:28 +02:00
Alug
a0062060eb
oop
2025-04-16 16:50:09 +02:00
Alug
8e6633d0bc
fix the sprite shadows Zzz...
2025-04-16 16:36:41 +02:00
Alug
2c8d5f2625
dont clear all our textures if we dont intend to reload em
...
the multipart addfile stuff is awkward asf
2025-04-16 16:25:58 +02:00
Alug
46e10f67b2
more smol fixes
2025-04-16 16:21:13 +02:00
Alug
962b68c5c3
smol opitmizations and cleanup
2025-04-16 16:00:34 +02:00
Alug
fccfcd12fd
fix model blendpatches
...
we already have a functional check in HWR_GetBlendedTexture anyways
2025-04-16 15:58:55 +02:00
Alug
50caffd70f
add tags for model textures
2025-04-16 15:58:45 +02:00
Alug
14a1c391a6
fix models lel
2025-04-16 15:58:40 +02:00
Alug
8ab097f166
dont free our rotsprites aa
2025-04-16 15:58:37 +02:00
Alug
41cb3e932a
readd freeing those
...
dont want kart to use like 4gbs of memory for no reason lel
2025-04-16 15:58:30 +02:00
Alug
70f1a6bf48
readd hud gfx flushing
...
now that stuff doesent completely die lmao
2025-04-16 15:57:59 +02:00
indev
804d9e2e8e
If GLENCORE is enabled, free both encore and noencore textures
2025-04-16 15:57:55 +02:00
Alug
123fe48cad
simplify this
2025-04-16 15:57:52 +02:00
Alug
2e7ae45fdb
cast Zzz...
2025-04-16 15:57:49 +02:00
Alug
6b44ac922e
revert this part
2025-04-16 15:57:44 +02:00
Alug
1c95b2e464
idk anymore lel
2025-04-16 15:57:22 +02:00
Alug
b0ba261e14
change those tags
...
also add PU_PATCH_DATA
2025-04-16 15:56:49 +02:00
Alug
39f8fa8d34
add more purge tags refactor patch freeing and stuff
...
currently dies when adding a wad midgame and the loading into another map
2025-04-16 15:56:41 +02:00
Alug
fe1579e960
fuckit *unshortens your patch dimensions*
2025-04-16 15:56:13 +02:00
Alug
7256fb9d62
port srb2s patch refactor
...
still needs all the new purge tags
then we should hopefully be free of use after frees and everything
2025-04-16 15:55:06 +02:00
Alug
53f68784fc
fix PARANOIA compile
2025-04-15 15:19:13 +02:00
Alug
9e53f3f8b0
fuck off goddamit
2025-04-15 05:08:30 +02:00
Alug
a6bebb2d91
noooo dont free our lumppat
...
for some reason this occasioncally causes an use after free??
our memory management honestly is a fucking mess ngl
2025-04-15 04:59:38 +02:00
Alug
8a80f0571c
cleanup R_ProjectSprite
2025-04-15 03:51:11 +02:00
Alug
13589499f8
cleanup rotated patch creation
...
kill unused adjustfeet code
add missing clamping
use malloc since stuff gets filled with 0xFF00 anyways
kill rotated sprite "type" since its unused too
simplify getpatchpixel a little
2025-04-15 03:51:01 +02:00
Alug
50656b7afc
Revert "flexible array stuff for columnofs"
...
This reverts commit 37a394ebaa .
2025-04-15 03:15:04 +02:00
Alug
b2e0ad58f9
revert using modulu for frac calcs for colum drawers
...
this is fucking slow for some reason
2025-04-14 22:50:50 +02:00
Alug
b2f22a379f
whoops
2025-04-14 12:03:37 +02:00
Alug
c8b318ba8e
minor branching stuff
2025-04-14 11:49:26 +02:00
Alug
8db082501e
only holepunch uses this
2025-04-14 11:30:51 +02:00
Alug
5c6c46848e
missed those
2025-04-14 11:27:57 +02:00
Alug
69d86e69cb
bunch of stuff from lugstuff
...
- precalc some float division for ogl transform code
- use strlen for the custom lua cvar menu setup
- mostly just cleanup
2025-04-14 11:27:18 +02:00
Alug
0d9ac01fea
disable titlescreen demos if any addon (but musicpacks) are loaded
...
read comment
not a fan of this, but better than ppl constantly crashing
2025-04-13 22:33:52 +02:00
Alug
fd14976a4d
optimize colourcube conditional checks
...
screw u atoi
2025-04-13 21:49:08 +02:00
Alug
fa06551bd8
Merge pull request #162 from Chearii/dialspeedometer
...
Add a dial speedometer
2025-04-13 17:44:39 +01:00
Alug
2342d92ae3
refactor K_StretchPlayerGravity
...
mostly just make it more readable lel
2025-04-13 18:43:50 +02:00
Alug
561b1c0b92
calloc takes care of those
2025-04-13 18:43:47 +02:00
Alug
7eb311d99c
we dont need all this stuff for precip
2025-04-13 18:42:10 +02:00
Alug
e5f9623113
move this to make it little more clear what this is for
2025-04-13 18:42:07 +02:00
Alug
e29c1010d3
missed this with localskin stuff
2025-04-13 18:42:03 +02:00
Alug
494c6ca80d
move drawnode stuff into a switch
...
i like switches uwu
2025-04-13 18:41:47 +02:00
Alug
b4416c32ed
move line polyseg check out of the lööp if theres no polyobjs on le map
...
seems to reduce a hotspot there significantly
2025-04-12 19:42:35 +02:00
Alug
fa757c6695
throw mobjcache allocation shit into a inline function
2025-04-12 19:42:31 +02:00
Alug
fb15cfe9f0
convert fixed to float with multiplication instead of division
2025-04-12 19:42:27 +02:00
Alug
94eebd2cd0
use mobjcache for savegame mobj load
2025-04-12 19:42:24 +02:00
Alug
7e6bde73e1
make a macro for this
2025-04-12 19:42:21 +02:00
Alug
da5a2ceefa
Merge remote-tracking branch 'origin/demodates' into Saturn-Testing
2025-04-12 19:42:17 +02:00
Alug
e74340aabf
spr->mobj not thing lel
2025-04-12 14:36:42 +01:00
Alug
48113cb156
spr->mobj not thing lel
2025-04-12 14:36:36 +01:00
Alug
6ae0b87686
Merge branch 'Saturn-Testing' into demodates
2025-04-12 14:33:35 +01:00
Alug
98f35b6e06
windoze stimky
...
well this atleast should work for everyone, but be noted that the normal "localtime" function is apparently not thread safe
2025-04-12 14:33:11 +01:00
Alug
2959a84b74
attempt at unmangling localskin stuff again
...
moved almost all the weird ass ternaries into functions
and should also probably fix some remaining issues where stuff was wrong
2025-04-11 20:45:46 +02:00
Alug
705bb4a8ea
dont need to do any of this lel
...
the calloc takes care of those already
2025-04-11 17:16:11 +02:00
Alug
804ca985f3
just make the numlaps draw besides the date
...
idk theres no good place for this otherwise
2025-04-11 14:25:00 +02:00
Alug
892a59ff15
add cvar to change the demo date formatting
...
bruh
2025-04-11 14:24:56 +02:00
Alug
3e60b1b388
bigger buffer for demo version thing
2025-04-11 14:24:52 +02:00
Alug
9c25d99156
print demo version on "outdated" demos
...
idk if this is fine lel
2025-04-11 14:24:47 +02:00
Alug
e8c6dca8c1
dont need le strncpy
2025-04-11 14:24:43 +02:00
Alug
02c1a9a58d
apparently we have "nameonly"
...
ty indev <3
2025-04-11 14:24:40 +02:00
Alug
2201d58f7d
try and get file creation time in some cases on windoze builds
...
untested as of right now
2025-04-11 14:24:36 +02:00
Alug
b7542a2106
try to catch more bad demo dates
...
i mean this game did not exist in 2010 lmao
but occasionally it actually returned dates other than 1970 depending on what was passed to it lmao
2025-04-11 14:24:33 +02:00
Alug
f1bcdaf68f
do pathseperator check like this
2025-04-11 14:24:29 +02:00
Alug
1ebebb5690
extract the date out of replay + display em in replay hut
...
this is kinda horrid, but essentially, the number at the start of replay names is actually the time when the replay was recorded, so i can extract that and convert it to a readable format
this probably can be done alot cleaner lmao
2025-04-11 14:24:26 +02:00
Alug
1ddc663e8c
add setting for cecho toggle to print to console instead
...
idk i hate doing string stuff, hope this doesent explode lmao
also ensures even if disabled all cecho stuff is printed to log file again
2025-04-10 22:54:55 +02:00
Alug
5b3edc2131
handle highres portraits and statdisplay text more gracefully on low resolutions
...
below 640x400 the highres portraits become an absolute mess so itll now fallback to the lowres portraits
the statdisplay name text also became completely unreadable so itll use V_DrawThinString instead on low resolutions
2025-04-10 22:54:52 +02:00
Chearii
bc22830136
Fix up several HUD issues
...
ughhhh splitscreeeeeen
2025-04-10 01:59:59 -04:00
Chearii
90475c1128
Adjust dial rotation for MPH and FU/T
2025-04-10 01:08:15 -04:00
Alug
ff6a13f042
simplify those
2025-04-09 23:23:37 +02:00
Chearii
92f08de1f6
Dial speedometer
2025-04-09 16:53:21 -04:00
Alug
29462b082b
remove unused variables from FTransform struct
2025-04-09 22:44:34 +02:00
Alug
bd9f436227
let item button also change skin grid sorting type
2025-04-07 19:40:27 +02:00
Alug
2b6f507785
reuse pwidth
2025-04-07 17:54:21 +02:00
Alug
a0739e59e4
oops this needs be initialized
2025-04-07 15:07:50 +01:00
Alug
8251ac9ca8
sat credits a
2025-04-07 16:20:54 +02:00
Alug
f99794884b
avoid branching inside the while lööp
2025-04-07 09:10:19 +02:00
Alug
dd93e1f7b0
use optimized P_DivlineSide instead of R_PointOnSideFast
2025-04-07 08:40:41 +02:00
Alug
6b12c55393
some software optimizations
...
from:
https://git.do.srb2.org/Hanicef/SRB2Classic/-/merge_requests/6#d4bba40be8388ccd557d03ef4e4a36d0728c7751_645_587
minus the buffer flipping change, karts resolution stuff is hell and even worse due to birdmod things
maybe will look into that sometime
2025-04-07 08:40:37 +02:00
Alug
4b8d072153
free ogl lighttables earlier
...
ogl lighttable data is owned by extracolormaps apparently, so it has to be freed ealier
2025-04-07 08:40:16 +02:00
Alug
f159b18e96
this is unlikely
2025-04-07 08:40:13 +02:00
Alug
27653381d3
try to rectify some branch mispredictions
...
adds "LIKELY" and "UNLIKELY" macros
those can be used to tell the compiler which path is more likely to happen
2025-04-06 23:33:14 +02:00
Alug
bd77b17c1c
whoopy copy paste
2025-04-06 17:13:15 +02:00
Alug
3261fd12db
dont need this
2025-04-06 16:25:46 +02:00
Alug
3aff53647d
reorder those a little
2025-04-06 15:15:09 +02:00
Alug
4a703a4288
use the float vid dimensions
...
forgor here
2025-04-06 15:15:06 +02:00
Alug
4880177e65
cache the fofflags too
2025-04-06 11:24:54 +02:00
Alug
744e17a0d6
somehow this is slightly faster
2025-04-06 11:00:27 +02:00
Alug
b706c55ed8
cache this
...
somehow this was unusually expensive lol
2025-04-06 10:50:03 +02:00
Alug
fe3ad3487d
delet this
2025-04-06 10:49:59 +02:00
Alug
5ff2b52522
more smoller optimizations
...
save some unneeded floattofixed calls
and move the linedef check earlier
2025-04-06 10:49:56 +02:00
Alug
d57438bf8c
check for horizonlines on mapload on opengl
...
this saves iterating through a crapton of lines every frame in ogl
2025-04-06 08:51:55 +02:00
Alug
5f2a8acfa2
Optimze horizonline check
...
noticed during profiling due to how it was checked R_PointOnSegSide was called extremely often even if the less expensive check returned false
2025-04-06 08:51:28 +02:00
indev
01bf367ce1
Add 'inputdisplay' option for hud.enable, hud.enabled, hud.disable and hud.getOffsets
2025-04-05 18:36:48 +03:00
Alug
2550f1bee5
no need to scale the volume for splitscreen if we dont play a sound lol
2025-04-04 18:13:41 +02:00
Alug
f2d2307fcc
didnt mean to change that lel
2025-04-04 08:15:56 +02:00
Alug
33e904632c
fix software crash on sparkcup due to invalid blendmode
...
also simplifies R_GetLinedefTransTable
it now just returns a normal translucency table in case of an invalid blendmode, similar to what vanilla got
not sure if this is 100% correct X)
2025-04-04 02:02:07 +02:00
Alug
2e34d71af6
bruh
2025-04-04 01:57:13 +02:00
Alug
2bc6754598
fix oopsie in R_Render2sidedMultiPatchColumn
2025-04-04 01:57:10 +02:00
Alug
086caa80bb
fix OOB read of "playeringame"
...
not too sure if this is completely save, but it should technically
2025-04-03 21:36:40 +02:00
Alug
ac85797a4f
erronous endifma balls
2025-04-03 21:22:27 +02:00
Alug
ba7d3324e6
kill SATURNSYNCH and can_receive_gamestate, change the detection of synch method
...
before we unconditionally sent PT_WILLRESENDGAMESTATE to every connected node that didnt desynch before, in a big lobby this could mean having to send out alot of reliable packets to potentially clients that couldnt use it anyways, like this we just check if a client is saturn, which gets set the moment a saturn client v7.1 and onwards joins (it sends a special packet to the server during connect)
this makes sure we only even attempt the new resynch system with clients WE KNOW can use it anyways
this is backwards compatible until v7.1, v7 when this was introduced did not send the special packet on join and relied on the willreceivegamestate packet, so they wont benefit from the better resynching anymore
2025-04-03 21:18:47 +02:00
Alug
6a97341835
update saturn credtis
...
baaaaaaaaaaarely fits now on greenres
had to kill the tooltip too :/
we should prob think of smth else than abusing a menu for this
2025-04-03 00:13:57 +02:00
Alug
2970ab6ae3
drift only option for coloured speelines
...
man
2025-04-02 19:48:51 +02:00
Alug
87447e9344
fix the wonky rendering issues on that one si-ht map
...
saturn regression introduced by the fof slope cutoff fix
hopefully this has no weiird side effects, but so far everything seemed fine
2025-04-02 18:42:50 +02:00
Alug
2980a87d09
use max
2025-04-02 18:42:47 +02:00
Alug
75d1b49aed
check if texture exists first
2025-04-02 18:42:44 +02:00
Alug
a5421d1a51
smol cleanup skyspecial handling for ogl
2025-04-02 18:42:41 +02:00
Alug
42b2e0622f
slight cleanup drawOnMinimap
2025-04-02 18:42:35 +02:00
Alug
8033348aa1
change scr_depth to gr_texturedepth and allow it to change stuff midgame
...
its not used for software renderer anymore and before you had to restart the game to be able to see a change in gl
8bits and 24bits options have been removed since they had no effect
and it also allowed me to unglobal things
2025-04-02 18:42:03 +02:00
indev
bd39a9c2f8
Add pageup and pagedown support in replay hut
2025-04-01 01:19:43 +03:00
Alug
633e9474b8
texfomats without alpha should have maxlod of 5
2025-03-31 22:54:46 +02:00
Alug
588ec05c80
disable compiling with ipv6
...
its non functional and disabling it just removes more things that could break
2025-03-31 20:34:06 +02:00
Alug
dfcba501c4
remove unused stuff d_net
2025-03-31 20:10:54 +02:00
Alug
c81e0d5816
put back networking shit into rendering code
...
just like vanilla yaaay
2025-03-29 18:45:39 +01:00
Alug
92cdc78dda
also dont do this without localdelay
2025-03-29 18:01:45 +01:00
Alug
5971e12ea9
oop still need to update this
2025-03-29 18:00:01 +01:00
Alug
0cb18e2058
only do localdelay stuff at all if we intend to use it
...
shizo sanity check
2025-03-29 17:57:44 +01:00
Alug
501df0763b
update ping only once per second again
...
read the comment on why
2025-03-29 17:33:07 +01:00
Alug
1762765c2f
better and more errors for the tcp/udp stuff
2025-03-29 16:56:31 +01:00
indev
0a9ae254c8
Uncap S_UpdateSounds back
...
Some effects that rely on S_SoundPlaying don't work perfectly if
S_UpdateSounds is capped at 35 fps
2025-03-28 20:59:48 +03:00
Alug
8476e11065
can just set it to null directly
2025-03-28 17:13:13 +01:00
Alug
014c06a797
dont run anything director in dedi
...
we dont need to even init its stuff
2025-03-28 17:01:51 +01:00
Alug
256f4cf2a8
make a function that returns the newspeedometer style if its availible
...
makes stuff alot easier to read than constantly checking for if stuff exists everywhere
2025-03-28 16:34:08 +01:00
Alug
e540cc901c
tiny cleanup inputdisplay
...
just use V_DrawMappedPatch, it does the same but looks better in code lel
2025-03-28 16:34:04 +01:00
Alug
42f1a55fa7
can just reset this here
2025-03-28 16:33:58 +01:00
Alug
7f59674ea8
force switch player after 15 seconds max
...
not sure if its too strict but it gets really boring just watching the same person for ages
2025-03-28 16:33:56 +01:00
Alug
0899849681
forgor the header file
2025-03-28 16:33:53 +01:00
Alug
5f5c67601e
instant switch if the player we watch is finishing
...
i dont need to watch the finishline for 5 seconds everytime lmao
2025-03-28 16:33:49 +01:00
Alug
5e8624c79c
only count actually playing players for director
...
otherwise you could enable it if theres more than 1 person in the server but only 1 person is actually playing
2025-03-28 16:33:46 +01:00
Alug
72821f0f16
you cant memset this to -1 lel
...
prob fixes the director never switching when only one player was left
2025-03-28 16:33:43 +01:00
Alug
c2e0e56a80
optimize director by checking for finishline waypoint on mapload
...
instead of every time this is called
2025-03-28 16:33:40 +01:00
Alug
6919e3cdc8
turn this into a switch for no reason
2025-03-27 23:38:01 +01:00
Alug
4a62b44526
remove pointless function
2025-03-27 23:33:37 +01:00
Alug
ac181e238d
add smol P-Meter patches
...
thx jin for those
2025-03-27 23:28:30 +01:00
Alug
d323b78d3f
seperate the colour hud patches out of here so they can be used without the vanilla colour hud
2025-03-27 23:28:27 +01:00
Alug
2582f6fe93
seperate the driftgauge colour patches into extra2 + add some more comments
...
was an oversight, extra2 should be for all colour hud patches
2025-03-27 23:28:25 +01:00
Alug
53d698573e
fix driftgauge value "small" value being overwritten when having extra3 loaded
2025-03-27 22:12:39 +01:00
Alug
7560d272dd
move saturn extra file checking into its own function
...
and also properly seperate all patch checks so they only get checked if you have the right file
may actually slightly speedup startup in some cases
2025-03-27 22:00:12 +01:00
Alug
f6e5d09ffe
fix stick setting showing wheel
2025-03-27 21:43:23 +01:00
Alug
825ab0afc0
make beta interscreen cvar also affect tab rankings
2025-03-27 21:43:20 +01:00
Alug
4c4efdfd11
just make the input display global toggle for it
...
mostly done so i can shorten the entry in the menu cause i cba to mangle stuff again
2025-03-27 21:43:17 +01:00
Alug
1fb34eb71c
Add 'StickGFX' option for showinput cvar if graphics for it exist
2025-03-27 21:43:14 +01:00
Alug
3963943904
actually initalise those lmao
2025-03-27 21:41:52 +01:00
Alug
d4f97f61c2
no need to check for this
2025-03-27 21:41:48 +01:00
Alug
edf545c9a1
add support for sprite joystick knob
...
still needs proper toggle
2025-03-27 21:41:45 +01:00
Alug
15f9bf181a
that comment belongs to this lmao
2025-03-27 21:41:42 +01:00
Alug
884c5d2578
fix vertical patch scale not working when horizontal scale is also not changed in opengl patch drawer
2025-03-27 21:41:39 +01:00
indev
0d6b42cc3f
Fix limit_dist overflowing for some mapobjectscale values
2025-03-26 22:11:50 +03:00
Alug
1e8716450f
better slope rotation for shadows
...
instead of copieng the target mobjs rotation we just use its standingslope instead, this means shadows properly rotate according to which slope theire on
should make them visually more cohesive if a player or other mobj is rotated midair
2025-03-26 20:06:31 +01:00
Alug
850272e783
fix spacing when compiled withou fbo support
2025-03-26 18:38:07 +01:00
Alug
bf9edef146
add dummy entries so the tooltips dont fucking cutoff stuff in green res
...
if i only knew of this dumb hack earlier
2025-03-26 18:33:31 +01:00
Alug
35db2b0c8e
muh huh durr hurr is above array bounds of deez nuts
2025-03-26 17:21:25 +01:00
Alug
c5638d8dbb
fix advanced video options in green res
...
god bruh
also removes the directional light entry since its planned to be deprecated
2025-03-26 18:17:40 +01:00
Alug
4a8a83bf09
fix sprite distort tooltips
...
Zzzzzzzzzz......
2025-03-26 18:05:31 +01:00
Alug
4b1110921b
turn advanced sound ioptions into scoll menu
2025-03-26 18:05:27 +01:00
Alug
e159a5f206
turn sprite distortion menu into scoll menu due to green res
2025-03-26 18:00:25 +01:00
Alug
856cdbda6b
rename "Custom Options" to "Custom Addon Options"
...
to make it clear wtf this is even for
2025-03-26 18:00:22 +01:00
Alug
14df21a2ae
turn screenshot options into a scoll menu cause of green res
2025-03-26 18:00:19 +01:00
Alug
2075587980
fix focus options for green res
2025-03-26 18:00:16 +01:00
Alug
a35362f0ed
move everything around in main options menu to fit stuff for green res
2025-03-26 18:00:13 +01:00
Alug
480c4111f9
fix bird menu from crashing (again) finally add an enum so this wont happen again
2025-03-26 18:00:10 +01:00
Alug
e671cfebcf
lel
2025-03-26 15:54:37 +01:00
Alug
25a80e378d
add smol text indicating the autoload button
2025-03-26 15:37:38 +01:00
Alug
2d064d61a9
change menu autoload button to "END" instead of right shift
...
too many ppl accidentally press right shift and end up putting things they didnt intend into their autoload file
which sometimes caused alot of issues in online play
2025-03-26 15:37:35 +01:00
Alug
6b16d27576
brazil
2025-03-26 14:54:41 +01:00
Alug
5422ab4daf
tab hell
2025-03-26 14:54:38 +01:00
Alug
cbcfed133c
change version string for testing "RC1"
...
were close to being done with v8, its now mostly just about catching any remaining bugs and regressions
2025-03-25 20:41:00 +01:00
Alug
064032175e
grey out mouse grab when use_mouse is enabled
2025-03-25 20:05:13 +01:00
Alug
e7eca015ac
add onchange for "alwaysgrabmouse"
2025-03-25 20:05:10 +01:00
Alug
d94b443eca
put all the "game focus" options into a seperate menu
2025-03-25 19:36:05 +01:00
Alug
434048afad
potentially fix "Received a file not requested" error in poor net conditions
...
needs a bit of testing
2025-03-25 16:53:07 +01:00
Alug
3614efa965
fix server lan discovery
...
which just returned EINVAL and triggered the I_Error in SOCK_Send
more information at: https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2219
2025-03-24 23:04:52 +01:00
Alug
ec30b1a457
Merge branch 'socksnedstuff' into Saturn-Testing
2025-03-24 23:04:34 +01:00
Alug
3b43df0214
delet this
2025-03-24 19:37:52 +01:00
Alug
ea3974d47e
Revert "clean up some net stuff"
...
This reverts commit f8903e7ce7 .
2025-03-24 19:37:49 +01:00
Alug
f7e5f9f5b6
delet this
2025-03-24 19:36:41 +01:00
Alug
c425400480
Revert "clean up some net stuff"
...
This reverts commit f8903e7ce7 .
2025-03-24 19:36:38 +01:00
Alug
aea03cc2b7
grey saltroll out in menu if sloperoll disabled
2025-03-24 18:22:22 +01:00
Alug
e369fbded4
toggle for saltyhop sloperoll behaviour
2025-03-24 18:22:16 +01:00
indev
792806c20d
No need to FLOAT_TO_FIXED here :з
2025-03-24 17:20:28 +01:00
indev
fc894d8631
No need to FLOAT_TO_FIXED here :з
2025-03-24 19:15:43 +03:00
Alug
dcc3b1294c
remove the early returns in SOCK_Send
...
othewise it may never error out when it should
2025-03-24 16:32:56 +01:00
Alug
5d0a8ff6dd
Do not error out if we don't have a socket for an address family we have disabled
...
from srb2
2025-03-24 16:32:53 +01:00
Alug
c6cc7d3d29
Replace all instances of XD_KICK with a SendKick function
2025-03-24 16:00:15 +01:00
Alug
d2838c2780
i hate menus
2025-03-23 18:31:47 +01:00
Alug
4e13febeaf
this does not need be checked here
2025-03-23 18:24:55 +01:00
Alug
3e80554a0e
k_throwdir already returns just -1, 0 and 1
2025-03-23 18:17:49 +01:00
Alug
f3d8b2b3d1
add player blendeffects to menu + change when they apply
...
most of them now apply during sneakerboost
sparkles may also get add blendmode when you go really fast with them (like the speedlines)
2025-03-23 18:15:06 +01:00
Alug
475ba7ca10
change "verticallook" and "cameralookbackmom" to be per splitscreen player
2025-03-23 18:13:52 +01:00
Alug
16c13cb561
Merge pull request #155 from Indev450/rankingsrefactor
...
Refactor Rankings Drawing
2025-03-23 17:10:23 +01:00
Alug
fd9902afd6
15 step increment Zzz...
2025-03-23 16:59:02 +01:00
Alug
eb936a6f94
simplify the slider stuff slightly
2025-03-23 16:57:20 +01:00
Alug
184d171b74
make stretchfactor a cv_float again
...
for easier handling
now that we can use sliders this should hopefully work without issues
2025-03-23 16:57:17 +01:00
Alug
dc8b9ffc7c
make saltyhop height use slider
2025-03-23 16:57:14 +01:00
Alug
f7fbb8b859
make menu sliders work on CV_FLOAT
2025-03-23 16:57:11 +01:00
Alug
8fce9e39a0
changable saltyhop height
...
dunno, it looks a bit off on higher values since the animation duration is always the same
also cv_float is weird
2025-03-23 16:57:08 +01:00
Alug
dee640d32f
forger P_IsLocalPlayer exists
2025-03-21 15:56:18 +01:00
Alug
0af6703c08
hack for stick input display if you watch some other player Zzz....
2025-03-21 15:53:20 +01:00
Alug
b0d6ccf572
dont run discord rpc callbacks every frame
...
ditto
2025-03-21 00:21:49 +01:00
Alug
9e3dcbd041
dont update sounds every frame
...
if this would break ppl on 35fps cap wouldve been always screwed lel
2025-03-21 00:21:46 +01:00
Alug
9283b443c1
kill this, i want vanilla behaviour
2025-03-20 19:42:10 +01:00
Alug
189a28f349
delet player_joining
2025-03-20 19:42:07 +01:00
Alug
e02288b689
kill this, i want vanilla behaviour
2025-03-20 19:40:49 +01:00
Alug
a90c44c7d8
delet player_joining
2025-03-20 19:40:43 +01:00
Alug
eaac6cdbb3
Merge remote-tracking branch 'origin/serverstuttertest' into Saturn-Next
2025-03-20 17:49:29 +01:00
Alug
aba138447c
continue in P_NetArchiveThinkers lööp
...
if thinker is P_RemoveThinkerDelayed
2025-03-20 17:31:57 +01:00
Alug
07c52e6af5
static link this to get rid of stinky extra dll
...
thx indev <3
2025-03-20 14:45:35 +01:00
Alug
405c566038
import zlib-ng in compat mode
2025-03-20 14:31:02 +01:00
Alug
78780799ea
delet zlib from windoze
2025-03-20 14:15:38 +01:00
Alug
82b9457aa7
Merge branch 'Saturn-Testing' into winzlib-ng
2025-03-20 13:37:06 +01:00
Alug
4e6abb39dd
Merge remote-tracking branch 'origin/rankingsrefactor' into winzlib-ng
2025-03-20 13:34:51 +01:00
indev
28af4e5277
Only reset replay query in M_ReplayHut if replay hut wasn't open previously
2025-03-20 01:16:57 +03:00
Alug
a662a0a68f
Revert "disable jit compilation for now"
...
This reverts commit 11f5d2fb07 .
2025-03-17 18:52:27 +01:00
Alug
5aa081a01b
Revert "Use PU_LEVEL for texture caching"
...
This reverts commit 5ecfc5e09d .
2025-03-17 18:43:45 +01:00
Alug
24e149634d
remove this again
2025-03-17 18:41:29 +01:00
Alug
635b4110a4
move patch null checks into the patch drawers instead
2025-03-17 18:41:27 +01:00
Alug
56ddb5da23
revert this too just in case
2025-03-17 18:26:42 +01:00
GenericHeroGuy
ece1122733
Fix tonumber leaking doubles when JITted
2025-03-17 17:18:33 +01:00
Alug
dd70743bae
make the banana throw speen be seperate from sloperoll toggle
...
were technically not rolling by slopes here
2025-03-17 15:56:22 +01:00
Alug
5ab7e8dd80
forgor about saltyhop condition
2025-03-17 15:56:14 +01:00
Alug
c7473ddf42
add function to check if mobj should sloperoll
...
makes things slightly cleaner and we can apply sloperoll dist to everything
should probably save some time esp with the trailing item z calc
+ P_MobjPitchAndRoll should be able to be called always since it also does stuff seperate from sloperoll
2025-03-17 15:56:11 +01:00
Alug
0119eeb575
use quickcamdist for K_RollMobjBySlopes
...
we dont need this to be accurate at all
and its slightly faster so
2025-03-17 14:21:49 +01:00
Alug
dc53fac53d
fix midair driftsparks
...
somehow accidentally ended up doing what RR does lmao
hope this doesent do anything funky synchwise
2025-03-17 13:43:09 +01:00
Alug
d86179f1a4
kill bunch of redundant calcs for some kart visual effects
2025-03-17 13:43:06 +01:00
Alug
53a73e9893
safe some time by returning early in K_RollMobjBySlopes
...
in case those mobjs are out of our set distance
2025-03-17 12:40:33 +01:00
Alug
3efb6c0241
dont let saltyhop stop our drift sounds for 1 tic
...
if you disable its sound effects
2025-03-17 11:15:27 +01:00
Alug
f6535c8ad3
noo dont free our realpatch randomly
...
this used to be Z_Unlock which did nothing
checked against srb2 and rr and this should not be freed normally
2025-03-16 21:16:39 +01:00
indev
6d7035afac
Fix gl_extensions being truncated when there are too many extensions
2025-03-16 17:28:30 +03:00
Alug
2c5c08e562
did not mean to push this
2025-03-16 15:25:28 +01:00
Alug
11f5d2fb07
disable jit compilation for now
2025-03-16 14:15:24 +01:00
Alug
74ee853b49
just skip this loop if P_RemoveThinkerDelayed
...
we cant do anything there anyways, so this might be ever so slightly faster
2025-03-16 13:27:13 +01:00
Alug
0af6c133c5
only do the nvidia fbo hack when sdl_renderer is "x11"
...
we dont need this on the wayland renderer anymore
2025-03-16 13:23:49 +01:00
Alug
cefad32181
dont I_Error when direct downloader failed to open a file
...
just cancle the transfer and kick the receiving client lel
2025-03-16 13:19:28 +01:00
Alug
2b1eb51d94
goddamit
2025-03-16 12:24:53 +01:00
Alug
1df7d07abc
oops
2025-03-16 12:24:00 +01:00
Alug
fca3bb3cc3
slight cleanup HWR_ObjectLightLevelPost
2025-03-16 12:18:10 +01:00
Alug
45a7689518
Merge branch 'rankingsrefactor' into Saturn-Testing
2025-03-16 11:51:46 +01:00
Alug
16b74190e5
put player into var in rankingsdrawer
2025-03-16 11:22:15 +01:00
Alug
2f33b0eb79
Merge branch 'Saturn-Next' into rankingsrefactor
2025-03-16 11:13:02 +01:00
Alug
cf64aa3823
Merge branch 'Saturn-Next' into Saturn-Testing
2025-03-16 11:09:25 +01:00
Alug
944d8187ba
this needs be multiplied by 8 lel oops
2025-03-15 18:41:45 +01:00
Alug
c9b3459a48
add extra check to save a little bit of time
2025-03-15 16:51:09 +01:00
Alug
ec0a1a97e0
make this slightly look better lel
2025-03-15 16:33:58 +01:00
Alug
dd81b2cc41
fix no previous prototype warning
...
:chaosleep:
2025-03-15 16:31:16 +01:00
Alug
7d58887138
replace magic number
2025-03-15 16:30:52 +01:00
Alug
a79f2fa90a
bruh
2025-03-15 16:29:54 +01:00
Alug
473c70fd70
Merge branch 'gitpls' into Saturn-Testing
2025-03-15 16:27:00 +01:00
Alug
bbd967adad
fix conflicts for minimap spinouts + some refactoring
2025-03-15 16:26:43 +01:00
Anonimus
f55fdbf630
Refactor to prevent desynchs
2025-03-15 16:21:15 +01:00
Anonimus
6b23c70e37
Add a cvar for minimap icon spinouts
2025-03-15 16:21:05 +01:00
Alug
1d4e6ca825
Merge branch 'Saturn-Testing' into gitpls
2025-03-15 16:18:37 +01:00
indev
deeae1ef56
aatree is used both with HWRENDER and ROTSPRITE, so just don't guard its include
2025-03-15 16:46:56 +03:00
Alug
ed87c40d13
safe 2x "va" lel
...
V_GetSkincolorChar is unused now lel
2025-03-15 14:48:48 +01:00
Alug
ac28e587e2
just use splitflags
2025-03-14 21:00:12 +01:00
Alug
55d2d2cce4
doesent need be an array
2025-03-14 20:56:57 +01:00
Alug
f3d5c3f698
New input display option for stick display
...
thy neppy! https://codeberg.org/NepDisk/blankart/commit/52601bdfc2a6dd8916c3c401d70128d2ca11a1ff#diff-baf740b84aa99188fc2e5c1cb93e59fa2e319ff3
+ hellish abomination code cause kart
2025-03-14 20:46:52 +01:00
Alug
d92ba0987b
Merge branch 'Saturn-Next' into Saturn-Testing
2025-03-12 07:01:46 +01:00
Alug
9b3fde7a19
fix compile without ROTSPRITE
2025-03-10 17:52:46 +01:00
Alug
e39a9c190a
consolidate those
2025-03-10 17:29:13 +01:00
Alug
30fff79bd0
make this slightly less ugly
2025-03-10 14:59:46 +01:00
Alug
7781237c56
add cvar to force mouse grab and hide
2025-03-10 14:56:23 +01:00
Alug
51408010e8
bruh
2025-03-10 14:06:12 +01:00
Alug
7aeaf76062
Merge branch 'Saturn-Next' into Saturn-Testing
2025-03-10 14:05:38 +01:00
Alug
006bda5bfc
Merge branch 'Saturn-Next' into serverstuttertest
2025-03-09 16:27:22 +01:00
indev
148b76f4a3
Add SHORT here for consistency with other code
2025-03-08 18:14:26 +03:00
indev
422e63a93d
Check for missing patch earlier in W_CachePatchNameRotated
2025-03-08 18:14:26 +03:00
Alug
2aff0ed03a
show smol notice in stat and ra menu when game is modded
2025-03-07 23:35:32 +01:00
Alug
341d592001
show smol notice in stat and ra menu when game is modded
2025-03-07 14:49:15 +01:00
Alug
568890e9b3
remove erronous cv_sloperoll checks
...
this cvar is meant to be only the toggle for the player slope rotation, however, spriterotation should still be usable in any case with this disabled. the global toggle "cv_spriteroll" has been removed
i kinda forgot to remove those when i did some refactoring ealier
2025-03-07 10:07:31 +01:00
indev
a1e9cacb9f
spriteroll doesn't exist now :p
2025-03-06 19:43:24 +03:00
Anonimus
a258379a3b
HUD patch rotation
2025-03-06 19:34:52 +03:00
Alug
637499dcd7
use memcmp for R_IsEmptyLine
...
:chonkbuncle:
this actually is quite a little faster too
2025-03-05 00:09:35 +01:00
Alug
1e79d464b0
fix blendmode oopsie
2025-03-05 00:08:36 +01:00
Alug
932381052b
try make this slightly more readable
2025-03-04 19:27:51 +01:00
Alug
367c4179fd
change syntax
...
will stay uppercase to not conflict with some crap Zzz...
2025-03-04 19:14:57 +01:00
Alug
0fc9f2ec00
smth smth magic number
2025-03-04 19:14:54 +01:00
Alug
1646014561
pointless inline
2025-03-03 11:20:17 +01:00
Alug
9152ee826d
empty function lel
2025-03-03 11:16:20 +01:00
Alug
08ce1b54ca
delet memcpy doing nothing
2025-03-03 11:16:18 +01:00
Alug
37b74be3bb
tiny cleanup keyboard stuff
2025-03-03 10:11:28 +01:00
Alug
fac2e8ec98
tiny cleanup keyboard stuff
2025-03-03 09:56:49 +01:00
Alug
58fd729bec
temp revert nanosleep for nix
2025-03-03 00:14:25 +01:00
GenericHeroGuy
0c2244d668
Figured out why that doesn't work
2025-03-03 01:34:24 +03:00
GenericHeroGuy
40d0d9d2b8
Properly constant-fold (0 or 123)
...
But not (0 and 123). Yay bug compatibility!
2025-03-03 01:34:24 +03:00
Alug
3ce78064ed
guh
2025-03-02 23:29:07 +01:00
Alug
9db8d05206
muh huh truncuate my butt mingw32
2025-03-02 23:29:05 +01:00
indev
22a0ce1e20
Revert "Convert parsed numbers to doubles first in lj_strscan_scan"
...
This reverts commit 3f8fb365a0 .
2025-03-03 01:04:06 +03:00
indev
3ff8a920c0
Revert "Restore setnumV for fmt == STRSCAN_NUM in lj_strscan_scan"
...
This reverts commit 644cd36286 .
2025-03-03 01:04:06 +03:00
Alug
912e340028
bugger off UPX
...
dont want compressed executables, they BREAK backtraces
2025-03-02 23:02:54 +01:00
Alug
751885128a
inlining failed in call to my butt
2025-03-02 22:11:50 +01:00
indev
644cd36286
Restore setnumV for fmt == STRSCAN_NUM in lj_strscan_scan
2025-03-03 00:01:06 +03:00
Alug
91601c8a2d
forgor cleanup
2025-03-02 21:45:32 +01:00
Alug
f70351fc75
screw you music system
...
no fucking clue but this fixes stuff showing the musiccredit too early on reload
2025-03-02 21:42:14 +01:00
Alug
976cb1ff25
lul
2025-03-02 21:41:58 +01:00
indev
3f8fb365a0
Convert parsed numbers to doubles first in lj_strscan_scan
...
Regular blua does something similar to that, and it changes how large
numeric literals are parsed. It's very rare for those to be used but can
still in theory cause synch issues between blua and bluajit clients
2025-03-02 14:48:12 +03:00
indev
5cfbc8ce48
Delet goto from bluajit, since regular blua doesn't support that
2025-03-01 03:44:15 +03:00
indev
89033de836
Fix water and fog shader missing #version
2025-02-28 22:31:27 +03:00
Alug
ff4c6ea950
more kart hud cleanup
...
also removes erronous nametag toggles
2025-02-28 18:55:52 +01:00
indev
c3f32da557
Don't reset demo recording if player is still entering replay name in intermission
2025-02-28 18:49:02 +03:00
Alug
9d7930ed3c
slight cleanup kart hud
2025-02-28 09:51:51 +01:00
Alug
0dd54b112e
add airsparks to saturn options
2025-02-27 19:46:04 +01:00
Alug
b10a502b0e
Merge remote-tracking branch 'origin/serverstuttertest' into Saturn-Testing
...
Rather not have this cause dumb issues like every single other time interp and ticking was touched, so just behave like vanilla
2025-02-27 19:41:24 +01:00
Alug
980d59c9be
color ping numbers for color hud
2025-02-27 19:37:29 +01:00
Alug
6d977ea949
Revert "better M_Random implementation"
...
This reverts commit a353dceaa3 .
2025-02-27 19:34:35 +01:00
Alug
e723948756
do this in a less horrifieng manner
2025-02-27 19:12:07 +01:00
Alug
d95e3c6e04
use floor shader for everything when paletterender disabled
...
just like vanilla!
not the way to do this properly, but whatever
2025-02-27 18:51:05 +01:00
Alug
7fdf986df4
actually can just use this directly
2025-02-26 13:04:35 +01:00
Alug
6b049ad86d
turn this into a switch
...
else if stinky
2025-02-26 11:14:19 +01:00
indev
a0fc6f7e22
Add toggle for look up/down, also don't trigger it during countdown or when player is respawning
2025-02-23 14:21:30 +03:00
Alug
d0890c45e2
use lj_char_isspace
2025-02-21 22:31:32 +01:00
indev
93b3926008
Allow trailing spaces in lj_strscan_scan
2025-02-20 23:32:05 +03:00
Alug
3fe94b68a3
toggle for keeping driftsparks while in air
2025-02-19 12:05:56 +01:00
Alug
34f5a58692
reuse var
2025-02-19 12:05:52 +01:00
Alug
b605c8e654
few instances of int float conversions i forgor
2025-02-19 12:05:50 +01:00
Alug
95df997198
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-02-19 12:05:44 +01:00
indev
51ba4f1ec8
Merge branch 'Saturn-Next' into serverstuttertest
2025-02-18 19:14:52 +03:00
Alug
457186fe40
Merge branch 'Saturn-Next' into Saturn-Testing
2025-02-17 21:34:18 +01:00
Alug
a30aad04da
Merge branch 'Saturn-Next' into serverstuttertest
2025-02-17 20:55:11 +01:00
Alug
ad74af426b
Merge branch 'Saturn-Next' into Saturn-Testing
2025-02-17 20:55:02 +01:00
Alug
115eea3828
revert all the server ticking stuff
2025-02-17 20:40:22 +01:00
Alug
5bf24e10b2
Merge remote-tracking branch 'origin/oglprecache' into Saturn-Testing
2025-02-17 17:24:10 +01:00
Alug
10f1507366
Revert "Merge pull request #151 from Indev450/fixdupeacks"
...
This reverts commit 1fabc14ac9 , reversing
changes made to d9492eee28 .
2025-02-17 18:04:38 +01:00
GenericHeroGuy
badb8c7914
Add cleanjit target
...
Recompiling the whole game after changing a single flag is pretty tiring
2025-02-17 17:43:01 +01:00
GenericHeroGuy
13b2f6534e
Fix some functions leaking doubles in INTONLY
2025-02-17 17:42:55 +01:00
Alug
c78ecd8453
Revert "Fix "attempt to perform arithmetic on a number value" errors"
...
This reverts commit a9429caf09 .
2025-02-17 17:42:49 +01:00
Alug
b61e29ef0f
die json
2025-02-17 17:06:36 +01:00
Alug
ca555e7ea6
fix some typos lel
2025-02-17 17:02:09 +01:00
Alug
a1f254a0bc
ensure proper casting for elapsedseconds
2025-02-17 16:59:50 +01:00
indev
a9429caf09
Fix "attempt to perform arithmetic on a number value" errors
...
Not best fix but i don't know why setnumV breaks here
2025-02-17 14:21:44 +03:00
Alug
7bf50c69e2
update software precache
...
spit stuff into functions
handle animated textures and flats too
2025-02-16 16:47:15 +01:00
Alug
fcd8cfc4d5
better handling of sprite angles in precache
...
only cache stuff that we need
2025-02-16 16:38:56 +01:00
Alug
5b0a662b40
skip checking sectors and lines multiple times
2025-02-16 15:38:16 +01:00
Alug
255c8437d7
slightly optimize ogl precaching
...
cleanup too
2025-02-16 15:38:11 +01:00
Alug
83b242a727
make texture precache toggable
2025-02-16 15:38:08 +01:00
Alug
4ef6c2ea34
guard this in sprite precache
2025-02-16 15:38:05 +01:00
Alug
29b93f63f7
precache animated textures too
2025-02-15 16:22:45 +01:00
Alug
a403d96204
also precache animated flats
...
i have no clue how tf animated textures work
2025-02-15 16:22:42 +01:00
Alug
c1a187084d
dedicated server does not need to call texture precaching
...
prob leftover from back in the day, it doesent do anything at all anyways
also gives it a less ambigous name
2025-02-15 02:16:05 +01:00
Alug
7808dc5740
precache (most) sprites on ogl leveload
2025-02-15 02:16:02 +01:00
Alug
4417eabdc7
move texture precache into own function
...
unnesting stuff
2025-02-15 02:15:58 +01:00
Alug
119b18521f
oops should be i
2025-02-15 02:15:55 +01:00
Alug
ccefafd172
load both encore and non encore tex
2025-02-15 02:15:52 +01:00
Alug
a75bf1b2bb
move precache into hw_cache.c
2025-02-15 02:15:49 +01:00
Alug
15a0b9ab93
handle encore in ogl precaching
...
thx indev for help <3
2025-02-15 02:15:45 +01:00
Alug
9bed58a863
this is incorrect, dont need it anyways
2025-02-15 02:15:42 +01:00
Alug
19dd5ddbae
disable ogl precaching on encore mode
...
noencore things need to be handled
for now just disable it until i figure out how to check for lineflags here
2025-02-15 02:15:39 +01:00
Alug
8cd636c213
precache level flats and textures on mapload in opengl
...
not entirely sure if this works correctly with encore, have to test a little
TODO: move this into hwr file or smth
2025-02-15 02:15:36 +01:00
Alug
d156b716f6
add toggle for blendmode player effects
...
otherwise people will yell
enabled by default for now for demonstration purposes
2025-02-13 18:41:58 +01:00
Alug
3f910824e8
make P_InitCamera slightly prettier
2025-02-12 17:55:31 +01:00
Alug
3509b05d1e
cleanup P_SetupLevel
...
removed bunch of pointless vars, moved some things into functions
changed some stuff to be boolean
2025-02-12 17:38:41 +01:00
Alug
164bd18234
split screentexture width and height
...
most displays are widescreen, so their width and height differ quite significantly, this may make the overall screentexture alot smaller
2025-02-12 14:34:36 +01:00
Alug
fcc9cdcaef
use correct type in P_InitMinimapInfo
2025-02-12 11:56:51 +01:00
Alug
b32785f88c
revert adding netbuffer to local ping
...
dont wanna revert the commit, since i keep the new way of determining the ping display, since its less awful than before
2025-02-11 15:01:57 +01:00
Alug
8c9808b2d6
fix online player localping display
2025-02-10 21:00:18 +01:00
Alug
a80f520c38
fix some level userdata not being invalidated
...
maybe fixed the random issues we had with the server?
2025-02-10 20:53:33 +01:00
Alug
34c517defc
dont add buffer delay when local delay is disabled
2025-02-10 19:06:09 +01:00
Alug
d5a762f35c
account for netticbuffer in offline ping
...
this makes it more accurately reflect how it would behave in an online game
2025-02-10 18:13:08 +01:00
Alug
ab6ec6d11e
add some comments + smol cleanup again for keepmusic
2025-02-10 18:13:01 +01:00
Alug
c8a629d8a5
extend mapmusic_t struct and rename to music_t
...
didnt see that all the music stuff was more or less using the same things
2025-02-10 18:12:57 +01:00
Alug
71805500ca
clean this up a bit
2025-02-10 18:12:54 +01:00
Alug
5e7c12dac7
optimize ogl drawer functions
...
by avoiding excessive interger to float conversions
2025-02-08 23:26:13 +01:00
Alug
29817d6627
fix clang uninitialised warning
2025-02-08 23:26:10 +01:00
Alug
c010b7319e
fix oopsie with mapmusic in glib
2025-02-08 18:10:02 +01:00
Alug
27b190cadf
this should be static
2025-02-08 17:52:47 +01:00
Alug
e1a02a0729
throw music vars into a struct "mapmusic_t"
...
simplifies everything, keepmusic vars use it too
2025-02-08 17:52:44 +01:00
Alug
eb512022e0
handle music reloadreset stuff in seperate function
...
just tryin make it less ugly
2025-02-08 17:52:18 +01:00
Alug
0aec9a85bb
rename this
2025-02-08 17:51:56 +01:00
Alug
c1743eb18d
Revert "Update position nums to use additive"
...
for now since it doesent work that well on bright maps, yes there is a mapheader , but cant expect anyone to go trough all maps and add it
This reverts commit 323fbb4713 .
2025-02-08 17:21:02 +01:00
Alug
ccd2855e01
always save keepmusic stuff
...
but set keepmusresume in stopmusic Zzz...
2025-02-08 16:47:41 +01:00
Alug
d3338f5d81
attemp to fix playerreborn resetting keepmusic
2025-02-08 16:33:06 +01:00
Alug
6532dacbb1
change speelines blending condition
...
uuuhh, so, if you have sneakerboost they always will apply additive blending
otherwise if you go really fast (faster than sneakerboost)
2025-02-08 15:36:49 +01:00
indev
b42338ea38
Don't force specific characters in M_HandleConnectIP
2025-02-07 20:03:25 +03:00
Alug
8f07f183dd
just pass the controller directly
...
simplifies this alot
2025-02-07 15:57:35 +01:00
Alug
e66aedaaa1
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-02-07 15:57:31 +01:00
Alug
9ac9db0fe0
only apply additive blend to speedlines when any kind of boost is happening
...
to emphasize that ure boosting or smth
2025-02-06 17:25:43 +01:00
Alug
1b610242bc
update controller led when connecting a controller
2025-02-06 14:43:28 +01:00
Alug
be58dd19c1
dont pass bogus values to I_GamepadRumble and I_SetGamepadIndicatorColor
...
- fixes rumble and led stuff not working after hotplugging
- also fixes sdl2-compat breaking
- i hate karts controller code
2025-02-06 03:01:40 +01:00
Alug
0d2a1bac36
Revert ""kill" seenames"
...
This reverts commit 93a1a432d7 .
2025-02-05 15:33:27 +01:00
Alug
f67815b0d3
also add additive to boostflame
2025-02-05 00:36:05 +01:00
Alug
d4c986fb84
no need pass this stuff
2025-02-04 23:12:35 +01:00
Alug
b24a7e3faf
forgor
2025-02-04 23:11:05 +01:00
Alug
18a78e2892
test add blendmodes to a bunch of player effects
...
going see how it looks
2025-02-04 23:06:08 +01:00
Alug
323fbb4713
Update position nums to use additive
...
https://git.srb2.org/KartKrew/RingRacers/-/commit/4d108930a94f44dbc916d1116eab8421e669e4b6
2025-02-04 23:05:07 +01:00
Alug
bd6b699a1e
keep track of map music
...
this is kinda horrible, but allows musicchanges which replace map music/tunes to also work with this system
2025-02-04 23:03:57 +01:00
Alug
4795af29ea
reset keepmusposition in tunes command
...
mapmusic will be reset the moment the gamestate changes, so whatever was changed with tunes will not be kept sadly
2025-02-04 23:03:55 +01:00
Alug
f76a62b7d2
save music position and try to fade back into mapmusic when the music changed from mapmusic when keepmusic is enabled
...
uhh idk how to explain lel
hope this doesent explode
2025-02-04 23:03:51 +01:00
Alug
da7d200d92
skip intro sounds also with keepmusic lel
2025-02-04 23:03:47 +01:00
Alug
2de44e7563
check for realpatch here too
2025-02-04 23:03:08 +01:00
Alug
f30cdc1933
stuff that was missing
2025-02-04 23:02:58 +01:00
Alug
f9ccacf118
handle ogl lightlevelpost similar to rr
...
now that we have everything for it
2025-02-04 23:00:44 +01:00
Alug
6ed7e26d86
flag clash moment
2025-02-04 22:59:04 +01:00
Alug
91856ea145
fix merge conflicts
2025-02-04 22:58:46 +01:00
Alug
5b6b0f09e1
Merge remote-tracking branch 'Chearii/blendmodes' into Saturn-Testing
2025-02-04 22:57:17 +01:00
Alug
291677d0cf
Merge branch 'Saturn-Next' into Saturn-Testing
2025-02-04 22:48:50 +01:00
Alug
15eee102fd
partly revert this
...
some of those "mightve" been changed at the point of the check
2025-01-30 13:25:19 +01:00
Alug
0db2aebfda
dont register a crapton of pointless stuff for dedi
...
should cleanup dedi config significantly lmao
2025-01-30 13:12:01 +01:00
Alug
7ec00a279c
tiny cleanup i_video
2025-01-30 12:30:57 +01:00
Alug
881da033b8
Merge branch 'Saturn-Next' into rankingsrefactor
2025-01-30 10:29:13 +01:00
Alug
1e972cbb65
reduce scope of those
...
makes it look slightly neater
2025-01-30 10:29:05 +01:00
Alug
e689deaa2b
dont need to do all this crap if disabled
2025-01-30 00:17:20 +01:00
Alug
93a1a432d7
"kill" seenames
...
idk if anyone wants it, its still there, needed to move the netvar out of it tho lol
2025-01-30 00:17:17 +01:00
Alug
0b71bc2880
move this after the early returns
...
save some time when drifting
2025-01-30 00:17:14 +01:00
Alug
9f4b72800a
lmao
2025-01-30 00:17:11 +01:00
Alug
5d2e08d124
turn driftsparkGrowTimer into a player field
...
less hacky and avoids 3 loops lol
2025-01-30 00:17:08 +01:00
Alug
5fb1b39742
kill redundant laptime code
...
just use the newer one
2025-01-30 00:17:05 +01:00
Alug
5ef8e5c447
renable jit compile
...
this branch is a mess lmao
2025-01-29 22:33:49 +01:00
GenericHeroGuy
3152cddb3d
In rehashtab, do counthash before adding asize
...
Thanks alug!
2025-01-29 22:29:03 +01:00
Alug
c2b87b46fc
refactor M_DrawSlider
...
apparently fixes weird framerate issues with gamma slider
also shows the values on sliders
2025-01-29 19:35:04 +01:00
Alug
d764941341
inline V_LocalTransFlag
...
its very smol
2025-01-29 19:35:01 +01:00
Alug
112ca2707a
even more replay deb prints lel
2025-01-29 19:34:58 +01:00
Alug
cf26092917
smol replay fixes from rr
2025-01-29 19:34:52 +01:00
Alug
842a252576
Have replay recording of "hits" use the reference count system
...
https://git.srb2.org/KartKrew/RingRacers/-/commit/fa8bffabfc51ea1d7be86d833190bb7dcf494fca
2025-01-29 19:34:46 +01:00
Alug
e23d9bc3cc
also print player name for item desynch
2025-01-29 00:46:25 +01:00
Alug
e206ad3c08
better replay resynch prints
2025-01-29 00:40:21 +01:00
Alug
2eddddc6fc
ss->touching_preciplist deez
2025-01-28 18:29:23 +01:00
Alug
de6a078f01
inline a few hooklib functions
2025-01-28 18:26:20 +01:00
Alug
283f4d1e37
super smol optimization
2025-01-28 18:26:16 +01:00
Alug
0f3cd28019
pass slope to K_RollMobjBySlopes
...
removing some code dupe in the process and allows some more flexability
2025-01-28 18:26:13 +01:00
Alug
7fec7f8937
forgor to set those oop
2025-01-28 16:33:41 +01:00
Alug
3f54630531
fix issues with models
...
- Sloperotation was weird, it now uses what we calculate in K_RollMobjsBySlopes
- in general uses srb2s newer system
- alot of cleanup of pointless variables
- sprinfo pivots should now work
- removed roillmodel since it was smth weird and broke rollangle
2025-01-28 16:33:38 +01:00
Alug
7f864dba3a
dont recalc if precip sector didnt move
...
forgor i can just check this
2025-01-27 23:42:10 +01:00
Alug
49644f10f5
only need to recalc this once a tic
...
precip thinker thinks slightly more often, but we really dont need that tbh
2025-01-27 23:42:07 +01:00
Alug
f78b41dde3
only recalc floorz for visible precip mobjs
...
before it apparently recalced it a crapton for the crapton not visible precipmobjs, which even on vanilla maps led to noticable jitter
2025-01-27 23:42:04 +01:00
Alug
7163337a27
just keep a copy of musicchange before the lua hook
...
keep music can check for what was it stuff changed last to
2025-01-27 16:44:18 +01:00
Alug
27fd087631
grow an invinc music also broke stuff
...
cant put it into the music exception list, otherwise it will always disable keepmusic when either one was used even once
2025-01-27 16:13:14 +01:00
Alug
9b7ec4f266
the music system is truly amazing
2025-01-27 15:33:16 +01:00
Alug
90fd4b54b3
i hate conditions
2025-01-27 15:33:13 +01:00
Alug
97e5de1ee5
smol optimization comparePolygon
...
return slightly earlier for skywalls and horizonlines
2025-01-27 15:33:10 +01:00
Alug
5f247a6d11
Merge branch 'gentlemens' into Saturn-Testing
2025-01-27 15:33:07 +01:00
Alug
ccc0189e70
also rotate eggboxes in air
2025-01-26 21:17:20 +01:00
Alug
8543636576
fall through deez
2025-01-26 17:29:19 +01:00
Alug
b09025df08
delet if else hell
2025-01-26 18:18:33 +01:00
Alug
39c747e430
handle vote bg fallbacks more gracefully
...
if someone doesent provide a widescreen patch it now falls back to the replaced non widescreen one and vice versa instead of just falling back to what vanilla provides
2025-01-26 17:57:36 +01:00
Alug
2104822cac
forgor about the banan spin
2025-01-26 16:18:41 +01:00
Alug
bcf713932a
reduce scope of those
...
makes it look slightly neater
2025-01-26 16:18:19 +01:00
Alug
6d671b6576
draw non widescreen anim vote bg before falling back to vanilla bg
...
how it was before, the game just fallback to the vanila widescreen patch if there was no animated widescreen bg provided, just fall back to the non widescreen anim patch instead if it exists
2025-01-26 16:18:16 +01:00
Alug
b7345107d7
move this
...
no need to have two conditions for same thing
2025-01-26 16:18:14 +01:00
Alug
9cdfdf9bda
spawn speedlines with non synched rng if ur in eggbox status
...
and well only if you have colourisation enabled
2025-01-25 21:22:51 +01:00
Alug
42f200aabd
inline bunch of one line HWR things
2025-01-25 21:22:19 +01:00
Alug
f8853ae902
inline G_TicsTo stuff
...
theyre smol and get called often
2025-01-25 21:21:43 +01:00
Alug
061201c0de
"makes integer from pointer without a cast" deez nuts
2025-01-25 16:59:41 +01:00
Alug
f11dab363f
remove noshowhelp from bunch of debug cvars
...
doesent make too much sense those are hidden tbh
2025-01-25 16:21:16 +01:00
Alug
48dd50afe4
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-25 09:33:34 +01:00
Alug
352e71d9e9
Merge branch 'directionallight' into Saturn-Testing
2025-01-25 08:41:28 +01:00
Alug
2b13af2367
setup maplight stuff earlier
...
otherwise it doesent init early enough
2025-01-25 08:41:22 +01:00
indev
2296ef0987
Fix 'total podium' stat display using totalwins
2025-01-25 01:10:06 +03:00
indev
30f11e4e46
Fix 'total podium' stat display using totalwins
2025-01-25 01:09:43 +03:00
Alug
43dbaf7004
j moment
2025-01-24 20:16:32 +01:00
Alug
55bb65034f
[0]
2025-01-24 20:16:21 +01:00
Alug
57ebb297c0
simplify camtoggledelay and spectatedelay
...
just make em an array and use lööp
2025-01-24 20:44:28 +01:00
Alug
a513f10296
assign player later
2025-01-24 20:44:25 +01:00
Alug
a1074852dd
kill P_TeleportMove
...
P_MoveOrigin literally just calls that so replace it with that
2025-01-24 20:44:21 +01:00
Alug
5f546a3df8
just use D_NumPlayers
2025-01-24 20:44:12 +01:00
Alug
986c19ef6e
Merge branch 'gentlemens' into Saturn-Testing
2025-01-24 20:43:49 +01:00
Alug
bea7ad5876
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-24 19:25:59 +01:00
Alug
f92c519d05
Prevent dropped ticcmds due to interp timing jutter
...
kinda figured out what this does, and makes clients on uncapped listen servers alot less prone to drop gametics
2025-01-23 15:07:37 +01:00
Alug
ecd3ad40ae
fix freecam not resetting online
...
idk local player handling is fucking awful in kart
2025-01-22 19:42:21 +01:00
Alug
fad3c2bbdf
Merge remote-tracking branch 'origin/Saturn-Testing' into Saturn-Testing
2025-01-22 19:05:16 +01:00
Alug
46c53ea679
try just passing the sector + add 50 trillion extra checks
...
idk anymore but this is literally now how vanilla kart behaved
2025-01-22 19:05:10 +01:00
Alug
062caa8f53
skip some stuffs when theres no portals
...
skip some portal checking incases wheres no portals
2025-01-22 18:10:54 +01:00
Alug
f6a39fea4b
Merge remote-tracking branch 'origin/kartstats' into Saturn-Testing
2025-01-22 17:33:49 +01:00
Alug
ea82f89b53
bruh
2025-01-22 17:24:03 +01:00
Alug
23443b2632
remove redundand FTransform field
2025-01-22 16:58:24 +01:00
Alug
114eab952b
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-22 15:47:41 +01:00
Alug
f8472721ee
fix level statistics page controls
2025-01-21 16:54:38 +01:00
indev
9634bc99bd
Check for spectator in K_StatRound
2025-01-21 17:38:09 +03:00
Alug
81a0ba08bd
use SRB2.2s general folder structure
...
- seperate addons folder (download folder remains in home directory unlike RR)
- seperate gif and screenshot folders
2025-01-21 01:35:24 +01:00
Alug
12f5bd141d
use SRB2.2´s logging system
...
- creates a new logfile each start instead of overwriting it everytime
2025-01-21 01:35:21 +01:00
Alug
6e2b7e534b
Merge branch 'freecamstuffs' into Saturn-Testing
2025-01-20 22:26:41 +01:00
Alug
543365f296
cv_invertmouse2 moment
2025-01-20 22:22:13 +01:00
Alug
da3bf945cb
delete nonfunctional second mouse stuff
2025-01-20 22:18:59 +01:00
Alug
4e311ca279
kill even more unused patches
...
+ nonexistant crosshair stuff
2025-01-20 21:31:52 +01:00
Alug
18c449a9ed
dont cache all those unused hud graphics
2025-01-20 21:18:31 +01:00
Alug
d7293ef41d
Merge branch 'freecamstuffs' into Saturn-Testing
2025-01-20 19:34:02 +01:00
Alug
88c8860548
Merge remote-tracking branch 'origin/freecamstuffs' into Saturn-Testing
2025-01-20 17:05:57 +01:00
Alug
85a64a6c14
put this thing onto its original place
2025-01-20 15:29:06 +01:00
Alug
d7c3cf7d3e
put this into switch
...
looks better
2025-01-20 15:29:02 +01:00
indev
5f3dc081b5
Don't start invinc/grow alarm sound when player uses power item
...
It will still be started in K_UpdateInvincibilitySounds, but now if
player already had invincibility, they won't get 2 overlapping sounds
2025-01-19 17:33:44 +03:00
indev
8959d3aec4
Put playtime statistics at first page instead of RA medals
2025-01-19 03:04:24 +03:00
indev
c589d04a32
New statistics menu (WIP)
2025-01-19 02:55:39 +03:00
indev
8ceda27817
Wipe kart stats on game data reload
2025-01-19 02:43:18 +03:00
indev
7260c2c77e
That was from testing a
2025-01-19 02:29:41 +03:00
indev
7991dafe64
Make custom stats fully compatible between different versions, so new fields can be added in future without save corruptions
2025-01-19 02:28:16 +03:00
Alug
232790836b
remove some code dupe in R_AddLine
2025-01-19 00:24:02 +01:00
Alug
9305b0a287
; moment
2025-01-18 21:44:34 +01:00
Alug
4ff8b869db
fix "lessprecip"
...
logic error lul
2025-01-18 21:24:47 +01:00
Alug
c1df939ac8
use MT_NULL instead of number
2025-01-18 14:36:42 +01:00
Alug
aea8cd1d62
refactor weather switching
...
from srb2
makes this more sane and makes PRECIP_STORM_NORAIN not spawn a crapton of invisible mobjs
2025-01-18 14:29:58 +01:00
Alug
b816622129
idk why we check this
2025-01-18 14:29:55 +01:00
Alug
d80613f26f
forgor to check for that flag
2025-01-18 11:45:39 +01:00
Alug
d5505080cf
change tooltips slightly
2025-01-17 23:44:35 +01:00
Alug
92d6a541ae
add stuff to menu
2025-01-17 23:44:32 +01:00
Alug
633948e8cc
ok clang
2025-01-17 23:44:27 +01:00
Alug
2ac48f715a
:chaosleep:
2025-01-17 19:53:42 +01:00
Alug
e82c9a71ec
add toggle for item amount number display
2025-01-17 17:15:36 +01:00
Alug
004f6d1495
Revert "turn on multiitemicons by default"
...
This reverts commit 9217cd3832 .
2025-01-17 17:15:33 +01:00
Alug
32b54e1346
merge conflict moment
2025-01-17 15:04:13 +01:00
Alug
f50b19968c
disable jit compilation for now
2025-01-17 14:45:35 +01:00
Alug
c9d0415d84
"Fix console text bleeding "
...
read https://git.do.srb2.org/STJr/SRB2/-/merge_requests/1434
2025-01-17 14:23:05 +01:00
Alug
625932e8f3
cap console animation if uncappedhud is disabled
...
since thats "how vanilla done it" before
2025-01-17 14:18:09 +01:00
Alug
5a03428d76
use R_GetHudUncap
2025-01-17 14:18:06 +01:00
Alug
33c6d13c7a
add fancyroulette toggle
2025-01-17 14:18:04 +01:00
Alug
ba5e15d29b
add the fancy hudtrans flags
2025-01-17 14:18:01 +01:00
Alug
de64eb6f8d
dont fancy during respawn
2025-01-17 14:17:58 +01:00
indev
75589f9770
Fancy :D
2025-01-17 15:47:55 +03:00
Alug
9217cd3832
turn on multiitemicons by default
2025-01-17 12:58:56 +01:00
Alug
49d295535f
add banan jitter toggle to menu
2025-01-17 12:58:52 +01:00
Alug
bd489bd462
change how spritescales and offsets work
...
- now theres realoffsets aswell
- allows better control of changing things per lua and still do funky stuff in hardcode without conflicts
- spritescales and offsets now get reset centralised before any thinkers run
2025-01-17 01:31:12 +01:00
Alug
7d621b5b1d
add toggle for bananjitter
2025-01-17 01:30:39 +01:00
Alug
22b60a07e5
le funny banan drag jumpy
2025-01-17 01:30:35 +01:00
Alug
adf52e1520
only rumble banan when on ground
2025-01-16 23:33:18 +01:00
Alug
b5d027b37c
fix typo lel
2025-01-16 22:44:27 +01:00
Alug
c5a1513cf5
don use multiicon patches in 3/4p splitscreen
...
since it uses the smoler patches
also removes redundant assignments
2025-01-16 21:58:56 +01:00
Alug
7116607881
ignore invisible fofs again
2025-01-16 21:43:30 +01:00
Alug
559b0bf45a
also skip invisible fofs
2025-01-16 21:43:24 +01:00
Alug
72e72af6b1
Clear acktosend when initializing node
...
since it was never reset, values might been taken over from former node
2025-01-16 01:03:38 +01:00
Alug
e0d6a6ae0f
dont keep music if there is no music
2025-01-16 01:02:06 +01:00
indev
64588f8337
Add spb music to list of exceptions for keepmusic
2025-01-16 02:47:50 +03:00
indev
66b0931f07
Fix spectator control text overlapping when showdirectorhud is off
2025-01-15 21:17:56 +03:00
Alug
5ddabba0b2
Merge branch 'freecamstuffs' into Saturn-Testing
2025-01-15 13:00:33 +01:00
Alug
2e054d8bec
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-15 13:00:31 +01:00
Alug
2c3ff3a628
dont throw a warning about addons with custom gamedata
...
just ignore it
2025-01-15 12:59:38 +01:00
indev
976c74d694
G_PlayerReborn didn't work for 'respawns' stats, maybe G_DoReborn will?
2025-01-13 23:17:51 +03:00
indev
e3adcfb62e
Player kartstuff's get reset in G_PlayerFinishLevel, so need to call K_StatRound earlier
2025-01-13 23:11:52 +03:00
Alug
cd76cc0e9f
no need to strcmp just check for "savemoddata"
...
that bool only ever gets set to true if the savegame has been switched to the modded one and unlike in srb2 this WILL never be reset to false again
2025-01-13 17:42:33 +01:00
Alug
e2e356d0c2
save vanilla save when switching to modified savegame
...
also add check so we dont rerun this everytime setgamemodified is called
2025-01-13 16:44:06 +01:00
Alug
bb7c217ccc
remove "majormods" checks from stuff that saves to savegame
...
so its only there to throw a notice when you load an addon
2025-01-13 16:44:04 +01:00
indev
591a2e5dbb
Forgor respawns
2025-01-13 17:52:41 +03:00
Alug
6d1b754db5
remove this
...
hooklib refactor already indirectly fixed this so this code is pointless
2025-01-13 15:50:36 +01:00
indev
cae9b754bc
Oops
2025-01-13 17:37:50 +03:00
Alug
46e0c88280
make game use seperate save when addons are loaded
...
so you can record attack and it will also keep saving to statistics
also added a few things it now keeps track of
TODO: unfuck the statistics page and add a 2nd one perhaps? due to space reasons
menucode is hell
2025-01-13 17:36:07 +03:00
indev
4942db2806
Add kartstats
2025-01-13 17:13:40 +03:00
indev
b5be515b9b
Clear menus when running 'map' command
2025-01-13 14:25:14 +03:00
Alug
d09d2dcffd
this doesent work out
...
breaks some textures not appearing on some maps
2025-01-13 08:03:15 +01:00
GenericHeroGuy
c5fddbbb69
Use references instead of upvalues for original I/O functions
...
No more unrestricted I/O through debug.getupvalue
2025-01-12 17:39:19 +01:00
GenericHeroGuy
2ef360a7ac
Update to BLUAJIT 449b76f
2025-01-12 17:39:15 +01:00
Alug
509d26f938
forgor about software again
2025-01-12 17:37:40 +01:00
Alug
5a9efff87c
TEST: skip prepping 3d floors for fofs without planes
...
or if they were already checked
2025-01-12 17:37:36 +01:00
Alug
24a93d107a
split HWR_RenderBSPNode
...
to reduce function call overhead
its only microscopicly faster lel
2025-01-12 17:37:33 +01:00
Alug
26902b4565
smol cleanup localskin ranking shit
2025-01-12 17:25:42 +01:00
Alug
e320aff5dc
dont rumble in freecam state
2025-01-12 17:24:50 +01:00
Alug
3f971fbab1
null check target in P_DamageMobj
...
apparently this may be null
2025-01-12 17:23:21 +01:00
Alug
f24ce61cc9
slight cleanup minimap head stuff
2025-01-12 17:22:52 +01:00
Alug
137be1c7fa
slightly cleanup gravstretch stuff
2025-01-12 17:08:16 +01:00
Alug
039018ddc9
change banana default patch to match lua roulette hud behaviour
2025-01-12 17:07:45 +01:00
Alug
bef784b32a
add support for multiitem patches (thx neppy!)
...
needs new patches, unsure if we just gonna add em to the extra file or make a new one
so it ambigous for now
2025-01-12 17:07:42 +01:00
Alug
eaad3ebeac
oops fix menu stuff
2025-01-12 17:07:33 +01:00
Alug
af8637f8a4
fix having saltyhop disabled forcing player spriteyoffset to be forced 0
...
just clear out everything on toggle
2025-01-12 02:52:14 +01:00
Alug
ba5ec70669
add toggle to colour sneakertrail flames (thx neppy!)
2025-01-12 02:52:10 +01:00
Alug
503f20a7f4
split ra wheel and position number hud offsets
...
kinda ass due to the preset offset, but will just not apply if either was changed from its original position
2025-01-12 02:52:07 +01:00
Alug
1237b553f7
toggle for camera turnaround on timeover
2025-01-12 02:52:04 +01:00
Alug
86c89a47da
one line this
2025-01-12 02:51:59 +01:00
Alug
ff895f3251
fix frame flag clash
2025-01-11 19:54:28 +01:00
Alug
b40cb3331a
fix frame flag clash
2025-01-11 19:54:13 +01:00
Alug
88025040c3
Merge branch 'directionallight' into Saturn-Testing
2025-01-11 18:10:29 +01:00
Alug
130c1aba67
put random direction light toggle into advanced video options
...
also make it a scoll menu
2025-01-11 18:10:24 +01:00
Alug
e7c0cda77f
reinit random maplight on mapchange when toggled
...
the condition may otherwise not change the light if you restart the same map
2025-01-11 08:52:55 +01:00
Alug
a07c2f4c32
reinit random maplight on mapchange when toggled
...
the condition may otherwise not change the light if you restart the same map
2025-01-11 08:52:49 +01:00
Alug
99e64388ba
Merge branch 'directionallight' into Saturn-Testing
2025-01-11 08:34:40 +01:00
Alug
96b7a4efe6
add FF_ABSOLUTELIGHTLEVEL
...
mobj_t.lightlevel is absolute instead of relative when set
2025-01-11 08:33:02 +01:00
Alug
124b2ff431
add encore variants of maplight
2025-01-11 08:32:59 +01:00
Alug
c1ec72e606
oops
2025-01-11 08:28:57 +01:00
Alug
ef1faf9f68
those somehow got lost
2025-01-11 08:26:12 +01:00
Alug
02595b9ea6
forgor this
2025-01-11 07:50:25 +01:00
Alug
c1514635b0
if disabled and no soc overrides light behave like vanilla
...
always apply wall and slope contrast pls
2025-01-11 07:50:22 +01:00
Alug
e5e7205c95
change how randomized light works
...
so it doesent kill actual soc set randomlight if you toggle it
2025-01-11 07:26:44 +01:00
Alug
f8d1bf0811
Merge branch 'Saturn-Next' into directionallight
2025-01-11 07:26:37 +01:00
Alug
8ff0524bbc
move this
2025-01-10 22:46:18 +01:00
Alug
e749c9764c
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-10 22:31:52 +01:00
Alug
69a6adf0a8
Merge branch 'freecamstuffs' into Saturn-Testing
2025-01-10 22:28:47 +01:00
Alug
ab064c90dd
let "fovchange" work in software
2025-01-10 22:28:45 +01:00
Alug
817df662da
slight cleanup r_draw8
2025-01-10 02:17:38 +01:00
Alug
d093b461d6
clamp to length-1
2025-01-10 02:14:38 +01:00
Alug
5cc756f853
reinit minimap stuff when a wad is added while ingame
2025-01-10 02:12:13 +01:00
Alug
07c443598b
fix column drawers clamping stuff
2025-01-10 02:11:52 +01:00
Alug
3c6116255b
kill unarchivevaluedemo
...
just pass if we load from replay or not and do stuff accordingly
2025-01-09 21:25:08 +01:00
Alug
5689e3815a
shouldnt this be uint?
2025-01-09 20:22:40 +01:00
Alug
9bf6a72621
make gamestate download show total gamestate size
2025-01-09 18:47:21 +01:00
Alug
2e02aa16bb
Merge branch 'freecamstuffs' into Saturn-Testing
2025-01-09 17:27:38 +01:00
Alug
8e7fddd6b0
use lööps for those to look a little better lel
2025-01-09 17:15:18 +01:00
Alug
ac8f6455ff
dont reset cam using f12 when only one player is ingame
2025-01-09 17:15:15 +01:00
Alug
3c268c8cbd
slightly refactor chasecam stuff again
2025-01-09 17:15:12 +01:00
Alug
10b56e7b4f
fix postimg data types mismatch
...
also remove the "postimgflag_t" typedef since its useless
and use smoler type for everything we dont need much space lol
2025-01-08 18:34:16 +01:00
Alug
f52db71ec6
this is not needed anymore
2025-01-08 17:11:53 +01:00
Alug
bc1f21961c
smol cleanup localskin ranking shit
2025-01-08 06:29:28 +01:00
Alug
0e1f843f50
;
2025-01-08 05:52:08 +01:00
Alug
2a5d1fb84a
;
2025-01-08 05:52:01 +01:00
Alug
3b0d0dcd0c
add banandrag rumble lol
2025-01-08 05:51:17 +01:00
Alug
f92cf3df4f
add slight fadeout to spinout rumble
2025-01-08 05:51:15 +01:00
Alug
274c9904e6
forgor to delet this
2025-01-08 04:13:07 +01:00
Alug
44ee017dee
forgor to delet this
2025-01-08 04:12:51 +01:00
Alug
1416650c9d
reorder saturn hud menu a little
...
also remove uncapped hud from it, since why would you ever wanna turn it off?
2025-01-08 05:09:03 +01:00
Alug
4acf6d336b
add colourized speedlines
...
smth i had laying around in lugstuff
2025-01-08 05:08:27 +01:00
Alug
dd7a861280
Merge branch 'rankingsrefactor' into Saturn-Testing
2025-01-08 04:47:39 +01:00
Alug
bbb4893857
throw this into a function
...
smth smth nesting
2025-01-08 04:47:25 +01:00
Alug
3054c2366e
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-08 04:10:13 +01:00
Alug
f9e9b423dd
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-08 01:50:31 +01:00
Alug
f576f39bc6
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-08 01:34:00 +01:00
Alug
24a7d4b82d
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-07 20:18:49 +01:00
Alug
d623820833
check if subsector has sector before assigning
2025-01-07 19:49:46 +01:00
Alug
a9be6a54ff
Merge branch 'freecamstuffs' into Saturn-Testing
2025-01-07 18:47:31 +01:00
Alug
3b60cb2bcd
replace common damage magic numbers with named macros
...
that stuff always confused me before lol
2025-01-07 16:31:16 +01:00
Alug
fe3ff15539
readd check for banan
...
this time without mobjwasremoved
just check if banan exists
2025-01-07 16:31:13 +01:00
Alug
f5018f628a
Merge branch 'freecamstuffs' into Saturn-Testing
2025-01-07 16:31:09 +01:00
indev
aa00419198
If available, add map title into crash log
2025-01-07 14:52:19 +03:00
Alug
fd5575ace5
make this more complicated due to a "-"
2025-01-06 22:50:30 +01:00
Alug
2e31e08522
check for 0 to avoid division by 0
2025-01-06 22:41:41 +01:00
Alug
1412805503
Merge branch 'freecamstuffs' into Saturn-Testing
2025-01-06 22:41:25 +01:00
Alug
812e269195
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-06 20:36:50 +01:00
Alug
006fde8fea
thats not timedemo lel
2025-01-05 21:24:55 +01:00
Alug
8499ca358b
turn off any active menus when using demo play commands
2025-01-05 21:24:12 +01:00
Alug
63b8cc1104
disable pause vhs effect when in freecam mode
2025-01-05 20:37:58 +01:00
Alug
511105beb3
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-05 20:14:59 +01:00
Alug
258447c17b
disable director while in replay freecam
2025-01-05 19:02:08 +01:00
Alug
e1bf657a05
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-05 18:53:40 +01:00
Alug
bca4af201d
no u may be used uninitialised
2025-01-05 14:51:32 +01:00
Alug
9af243177f
---------
2025-01-05 15:11:18 +01:00
Alug
ca3c2bf70a
remove this again
...
seems like it basically doesent change anything
2025-01-05 15:04:20 +01:00
Alug
ce5fc9715d
slight cleanup buildticcmd
2025-01-05 15:04:09 +01:00
Alug
606a50047c
put refreshdirmenu back here
2025-01-05 15:04:06 +01:00
Alug
b58c0705fc
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-05 15:04:01 +01:00
Alug
841c226732
this somehow got lost lel
2025-01-05 01:11:42 +01:00
Alug
7e8c8f4bb7
dont cast "infinity" to int lel
2025-01-05 00:43:20 +01:00
Alug
ebedca82f3
Further improve sleep accuracy on UNIX systems
...
hanichad https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2583
2025-01-05 00:32:39 +01:00
Alug
e06b61e8d2
revert "Faster z position checks for mobjs without collision"
2025-01-04 22:17:24 +01:00
Alug
e2e703540e
Merge branch 'freecamstuffs' into Saturn-Testing
2025-01-04 22:17:22 +01:00
Alug
8fa3a73fb2
Merge branch 'freecamstuffs' into Saturn-Testing
2025-01-04 21:04:45 +01:00
Alug
56cff59438
Merge branch 'nospecmove' into Saturn-Testing
2025-01-04 19:41:38 +01:00
Alug
cb223d7ddf
Merge branch 'nospecmove' into Saturn-Testing
2025-01-04 02:30:08 +01:00
Alug
96a4bf3464
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-04 02:30:06 +01:00
Alug
729a74a561
remove redundant stuff
...
can just set this all the time, its only used when menu is active anyways so it doesent matter if we set it
2025-01-03 19:45:46 +01:00
Alug
5f0d47ca88
Merge branch 'nospecmove' into Saturn-Testing
2025-01-03 19:44:59 +01:00
Alug
250b41612e
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-03 15:55:32 +01:00
Alug
54ed725061
didnt mean to revert this one
2025-01-03 15:54:01 +01:00
Alug
5844330301
only ever touch this if player has a mobjs
...
angleturn is dumb in kart and rarely really is what we want
2025-01-03 01:14:15 +01:00
Alug
d1c80dfd9b
smol fix
2025-01-02 22:54:16 +01:00
Alug
b2097e2f93
apparently this is slower for everything but rendering
2025-01-02 21:50:57 +01:00
Alug
7386a2f40f
let windoze detect 64bit mingw in makefile
...
lets us use just "make" cmd without specifieng any other crap on mingw64
2025-01-02 19:53:59 +01:00
Alug
5a1ecb55b8
Merge branch 'freecamstuffs' into Saturn-Testing
2025-01-02 17:09:48 +01:00
Alug
b05d7d09cf
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-02 17:09:45 +01:00
Alug
dc0423f97e
Merge remote-tracking branch 'origin/Saturn-Testing' into Saturn-Testing
2025-01-02 03:28:26 +01:00
Alug
af968f1868
add speccam playerflag
...
the other thing was weird and dumb lol
2025-01-02 03:28:21 +01:00
Alug
2cc73cc52a
this may not be synchsafe
2025-01-02 01:50:37 +01:00
Alug
28109dfb39
save subsector checks for dedi
2025-01-02 01:39:10 +01:00
Alug
2912994e6b
speed up camera position checks
2025-01-02 01:39:07 +01:00
Alug
6d6d5996d7
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-02 01:39:03 +01:00
Alug
bd433e0776
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2025-01-01 17:22:51 +01:00
Alug
fc9644f448
Merge branch 'precipthinklist' into Saturn-Testing
2025-01-01 17:22:29 +01:00
Alug
1558970064
Merge branch 'freecamstuffs' into Saturn-Testing
2025-01-01 17:20:04 +01:00
Alug
991dd55049
Merge branch 'Saturn-Next' into Saturn-Testing
2025-01-01 17:19:43 +01:00
Alug
dfee1cc490
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-31 02:53:22 +01:00
Alug
e649690f6a
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-30 17:34:50 +01:00
Alug
783682251f
Merge branch 'freecamstuffs' into Saturn-Testing
2024-12-30 11:34:45 +01:00
Alug
7465e1ae4b
kill splitscreen director again
2024-12-30 11:34:10 +01:00
Alug
743d1a0e86
Merge branch 'freecamstuffs' into Saturn-Testing
2024-12-30 11:31:42 +01:00
Alug
17f6f1cd4c
use V_STEELMAP for white skincolours instead
...
cause white on white be weird
2024-12-29 18:43:54 +01:00
Alug
4b856fba2a
z
2024-12-29 18:43:49 +01:00
Alug
3a8e4e065e
draw gametype in tabrankings during replay playback
...
replays already show the mapname in there so
2024-12-29 18:43:41 +01:00
Alug
43f9bd5239
make highlight color in scoreboard and tab ranking player coloured
...
also make it appear in splitscreen
similar to hostmod things
2024-12-29 18:43:31 +01:00
Alug
6f5a0b9a3f
also add playernum var to tabrankings drawer
2024-12-29 18:43:16 +01:00
Alug
ecf55e64ae
more smol refactoring
2024-12-29 18:43:08 +01:00
Alug
cd566ac9c0
refactor intermission standings drawer
...
abstract the data stuff too
2024-12-29 18:42:56 +01:00
Alug
6101ded74a
allocate some extra buffer for demobuffer
...
incase this might overflow that we dont write to unvalid memory
thx indev <3
2024-12-29 16:59:10 +01:00
Alug
0d49bbfa7a
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-29 17:45:33 +01:00
Alug
f6d83c17bd
fix demo playback
2024-12-29 17:24:38 +01:00
Alug
ac90a0973d
fix wrong cam default controls
2024-12-29 16:51:42 +01:00
Alug
f195c61200
Merge branch 'splitscreendirector' into Saturn-Testing
2024-12-29 16:48:17 +01:00
Alug
20044fa6a7
Merge branch 'freecamstuffs' into splitscreendirector
2024-12-29 16:47:25 +01:00
Alug
b9428360c0
Merge branch 'Saturn-Next' into splitscreendirector
2024-12-29 16:16:59 +01:00
Alug
55c7dd860c
fix offbyone issue
2024-12-29 15:39:39 +01:00
Alug
ecefd1d3ee
Merge branch 'splitscreendirector' into Saturn-Testing
2024-12-29 16:35:38 +01:00
Alug
0cdd0ca583
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-29 16:17:16 +01:00
Alug
31a0122cd1
add a bunch of extra checks into demo stuff
...
buffer may be NULL in some cases
should fix dedis crashing when replay recording is disabled
2024-12-29 15:43:04 +01:00
Alug
6777cd2a9c
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-29 15:42:58 +01:00
Alug
649373ff51
Merge branch 'freecamstuffs' into splitscreendirector
2024-12-29 06:41:40 +01:00
Alug
97e6222176
make function to return button names
...
to use with new rebindable cam controls
2024-12-29 06:03:20 +01:00
Alug
eef56a7c82
make debugdirector show stuff for p1 atleast
2024-12-29 05:51:13 +01:00
Alug
8853666645
track views in directorinfo structs
...
should hopefully fix any potential remaining issues
2024-12-29 05:45:04 +01:00
Alug
a379764076
fix director toggling + smol cleanup
2024-12-29 05:45:01 +01:00
Alug
edd1cc6059
Merge branch 'freecamstuffs' into splitscreendirector
2024-12-29 05:44:53 +01:00
Alug
03280db377
missing inlucde
2024-12-28 18:52:57 +01:00
Alug
86aeff5547
cleanup K_DirectorIsAvailable
2024-12-28 18:25:23 +01:00
Alug
b5b2062efa
add K_DirectorIsAvailable
2024-12-28 18:25:05 +01:00
Alug
b51731d675
cleanup director splitscreen stuff
2024-12-28 17:48:02 +01:00
Alug
229e8d9592
WIP splitscreen director lel
2024-12-28 17:47:58 +01:00
Alug
5c6bd1a043
oops forgor
2024-12-26 15:38:43 +01:00
Alug
dcdd5e8f2d
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-26 16:33:01 +01:00
Alug
a3b3f91f8d
1px
2024-12-26 01:08:01 +01:00
Alug
69568378ec
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-26 01:01:00 +01:00
Alug
8776b36bb0
super smol optimizations
2024-12-26 00:56:50 +01:00
Alug
9bde946c55
add tweakmap support
...
https://git.do.srb2.org/KartKrew/RingRacers/-/commit/7fb44bdb0239a8012be73cb9ee384a9fdca9addb
2024-12-25 01:57:51 +01:00
Alug
c74898b970
make those const
2024-12-23 18:09:53 +01:00
Alug
f0f2314639
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-23 17:46:20 +01:00
indev
edf38cef33
If player has mobj, use it to assign localangle in G_FixCamera
2024-12-23 12:41:50 +03:00
Alug
a700ec32fd
fixeur comptime stuff (thx indev <3)
2024-12-23 00:37:51 +01:00
Alug
7dcd5f41ec
use P_MobjWasRemoved for HWR_DrawSprite
2024-12-22 21:19:19 +01:00
Alug
d2ca916043
settable mobj lightlevel from lua
2024-12-22 20:58:23 +01:00
Alug
09e901b31b
readd mobj lightlevel field so i dont have to edit frameflags
2024-12-22 20:58:20 +01:00
Alug
01208a858d
settable mobj lightlevel from lua
2024-12-22 20:58:02 +01:00
Alug
c379db831c
readd mobj lightlevel field so i dont have to edit frameflags
2024-12-22 20:57:56 +01:00
Alug
d478a8a8b4
just skip missing/broken fields in musiccredit handling
...
like vanilla kek
still will throw warnings but atleast will show stuff if theres anything left in the musicdef
2024-12-22 19:59:53 +01:00
Alug
8bd943eb71
Merge remote-tracking branch 'origin/Saturn-Next' into directionallight
2024-12-22 18:57:38 +01:00
Alug
39535e9bf8
this stuff somehow wasnt merged
2024-12-22 18:52:27 +01:00
Alug
db90142c4b
Merge branch 'checkposopti' into Saturn-Testing
2024-12-22 18:45:53 +01:00
Alug
63bd3374be
Merge branch 'optimobjz' into Saturn-Testing
2024-12-22 18:45:48 +01:00
Alug
7a232c8f5d
fix compile
2024-12-22 18:39:04 +01:00
Alug
34f9dd9ea2
fix compile
2024-12-22 18:38:45 +01:00
Alug
4d3fba2bd0
Merge branch 'Saturn-Next' into optimobjz
2024-12-22 18:24:29 +01:00
Alug
83cc7015bf
Revert "add shadows to faster slope z checking"
...
This reverts commit 4aaa2c6fed .
2024-12-22 18:24:26 +01:00
Alug
dfe151ccb1
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-22 18:23:57 +01:00
Alug
98f136e747
fix fade to menu again oops
2024-12-20 17:20:16 +01:00
Alug
94792fe571
fix no fbo compile
2024-12-20 17:19:12 +01:00
Alug
6a43f0a09d
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-20 11:34:30 +01:00
Alug
4a2354ab26
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-19 22:42:41 +01:00
Alug
be8cd85bfe
Merge branch 'delaynetxcommand' into Saturn-Testing
2024-12-19 20:56:42 +01:00
Alug
7c4eefe8ee
Merge branch 'fixdupeacks' into Saturn-Testing
2024-12-19 20:56:37 +01:00
Alug
19d6e30889
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-19 20:56:35 +01:00
Alug
174af34115
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2024-12-16 17:09:40 +01:00
Alug
5c3711bcc8
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-16 15:49:01 +01:00
Alug
31aef1d200
fix changing gamma absolutely trashing performance
...
not quite sure why it made stuff die so much but uhhh
instead i just check in the cube initialistion function instead and only let it build when needed to not change how the game looks with raised gamma values
2024-12-15 22:14:05 +01:00
Alug
4aaa2c6fed
add shadows to faster slope z checking
2024-12-14 22:50:30 +01:00
Alug
5d3c84327d
Merge branch 'Saturn-Next' into optimobjz
2024-12-14 22:50:24 +01:00
Alug
eb1feba304
only check if polyobjcst are on the map
2024-12-14 22:49:32 +01:00
Alug
9df6368558
forgor about cameracheckposition
2024-12-14 22:49:25 +01:00
Alug
0a6092b738
only check for polyobjects in the blockmap if there even are polyobjects
...
this saves the trouble of iterating through the blockmap every single time P_CheckPosition is called if there are no polyobjects present on the map
2024-12-14 22:49:21 +01:00
Alug
6b852822a5
smol calc optimization P_Checkposition
2024-12-14 22:49:17 +01:00
Alug
b4cde98526
add P_CheckPositionShadow just for shadow mobjs
...
its basically just R_GetShadowZ from the render based shadows from srb2 lmao
hope this is synchsafe
2024-12-14 22:49:13 +01:00
Alug
5f0f1966a8
add shadows to faster slope z checking
2024-12-14 22:49:08 +01:00
Alug
dbadee987c
delet all the hardware sound crap
...
psure it doesent even properly work at this point
2024-12-14 22:49:03 +01:00
Alug
995943d84d
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-14 22:48:24 +01:00
Alug
d8fe3920b1
fix papersprite lightlevels again kek + remove shit that does nothing
2024-12-14 17:14:20 +01:00
Alug
a920556feb
fix papersprite directional light
...
uhhh idk??
also passes papersprite bool directly instead of rechecking every frame for it
2024-12-14 16:53:23 +01:00
Alug
351cb4a1ac
Merge branch 'Saturn-Next' into directionallight
2024-12-14 16:53:20 +01:00
Alug
764a5f3e0a
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2024-12-12 23:15:12 +01:00
Alug
d41a2adce7
Merge remote-tracking branch 'origin/Saturn-Next' into Saturn-Testing
2024-12-12 14:40:21 +01:00
Alug
521b53dc09
maybe fix fade stuff idk
2024-12-12 02:32:19 +01:00
Alug
2c94ae8bb4
seperate thinkerlist for precip
...
i sure hope i handled everything right lmao
2024-12-12 02:32:07 +01:00
Alug
ebbedc558d
Merge branch 'refactorogl' into Saturn-Testing
2024-12-12 02:32:01 +01:00
Alug
0065c3d610
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-12 02:31:52 +01:00
Alug
0325ba4c0a
simplify GL_SetPalette
...
can just copy the whole struct
2024-12-11 14:39:24 +01:00
Alug
b348bff7a8
Merge branch 'refactorogl' into Saturn-Testing
2024-12-11 14:23:57 +01:00
Alug
b5e43ed73b
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-11 03:11:38 +01:00
Alug
7ac2ba90b1
cast this
2024-12-11 02:03:14 +01:00
Alug
f869393da4
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-11 02:03:08 +01:00
Alug
6ccece4603
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-09 23:20:13 +01:00
Alug
9d1bef9ab9
i love menus
2024-12-09 10:19:32 +01:00
Alug
4bd2ba4d13
show commit on main menu for now
...
dont feel like always changing version strings for testing builds so thisll do
2024-12-09 10:19:14 +01:00
Alug
ab0a3cde78
i love menus
2024-12-09 10:18:27 +01:00
Alug
72f9e4485e
change testing versionstring
2024-12-09 10:17:58 +01:00
Alug
87c536b698
this does not work on windoze builds
...
rev-parse seems to do the job tho?
2024-12-09 10:16:56 +01:00
Alug
ac03bad282
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-09 10:53:17 +01:00
Alug
9efdcc1f34
HWDEEZ
2024-12-08 19:07:00 +01:00
Alug
f26a965ea9
Merge branch 'directionallight' into Saturn-Testing
2024-12-08 19:05:56 +01:00
Alug
5c7bd954a2
fix up!
2024-12-08 19:05:13 +01:00
Alug
184cb8ba19
Merge remote-tracking branch 'origin/jittest' into Saturn-Testing
2024-12-08 18:57:25 +01:00
Alug
1d324a2d94
Merge branch 'optimobjz' into Saturn-Testing
2024-12-08 18:57:21 +01:00
Alug
eeeb3440c2
Merge branch 'refactorogl' into Saturn-Testing
2024-12-08 18:57:16 +01:00
Alug
a1c965584e
Merge branch 'checkposopti' into Saturn-Testing
2024-12-08 18:57:12 +01:00
Alug
e5b4905a12
Merge branch 'Saturn-Next' into Saturn-Testing
2024-12-08 18:57:04 +01:00
Alug
f64ba96962
Merge remote-tracking branch 'ghg/ljtest' into jittest
2024-12-08 18:53:30 +01:00
Alug
0eec77d8b3
a
2024-12-08 18:43:17 +01:00
Alug
7efbe2213a
port over bluajit stuff
2024-12-08 18:41:02 +01:00
Alug
ffa25d1690
actually use the flags lol
2024-12-08 16:02:24 +01:00
Alug
feeb2d0f1a
use early return
...
no need to check for all this crap if we can use it anyways
2024-12-08 04:39:12 +01:00
Alug
13a5909c3f
oop
2024-12-08 04:13:16 +01:00
Alug
40be4d25a5
menu oopsie
2024-12-08 04:07:05 +01:00
Alug
d84f887be8
clear maplight on toggling
...
so you only have to wait until nextmap for effect to do smth instead of game restart
2024-12-08 04:07:03 +01:00
Alug
009d851b58
this is needed
2024-12-08 03:36:48 +01:00
Alug
6d5e6add9b
Optimize Z Postion checks for collisionless mobjs
...
a bit of speedup
hopefully should be synchsafe
2024-12-08 03:35:42 +01:00
Alug
62f7915e97
Merge branch 'Saturn-Next' into optimobjz
2024-12-08 03:34:29 +01:00
Alug
bc29d77aff
menu entry
2024-12-08 03:31:53 +01:00
Alug
8db2e646db
oop
2024-12-08 03:28:44 +01:00
Alug
3b2e207b6b
make random directionallight toggable
2024-12-08 03:27:45 +01:00
Alug
f061d66a16
conflict fix
2024-12-08 03:24:58 +01:00
Alug
8c295e8d5f
port rr´s directional light
2024-12-08 03:22:34 +01:00
Alug
be49bd167b
dont do this for papersprites
...
fickle...
2024-11-15 19:59:54 +01:00
Alug
13e9e41890
Merge remote-tracking branch 'origin/refactorcamstuff' into Saturn-Testing
2024-11-15 19:55:44 +01:00
Alug
e6eec622c8
Merge remote-tracking branch 'origin/interpfixes' into Saturn-Testing
2024-11-15 19:55:35 +01:00
Alug
501b8b7bf5
try recursion limit for _RenderBSPNode
...
its 112 seems like the best compromise, hope it doesent break maps i didnt test visually or smth
2024-11-15 19:55:23 +01:00
Alug
99d78d62fb
gu
2024-11-15 19:54:40 +01:00
Alug
1d5758f5d2
inline those
2024-11-15 19:54:24 +01:00
Alug
fad1916259
psure it should be like this?
2024-11-15 19:54:20 +01:00
Alug
1bff103e53
use memset here too
2024-11-15 19:54:13 +01:00
Alug
68013b96d6
use memsets here and clear pingdata too
2024-11-15 19:54:10 +01:00
Alug
0c687539fb
Merge branch 'Saturn-Next' into Saturn-Testing
2024-11-15 19:54:02 +01:00
GenericHeroGuy
0bf0441f49
Unify I/O library modifications
2024-11-15 15:54:07 +01:00
GenericHeroGuy
0c66ac97e8
Disable bytecode (1930cc9)
2024-11-15 14:18:56 +01:00
GenericHeroGuy
8c261dba73
Fix building with NOBLUAJIT
2024-11-15 00:24:19 +01:00
GenericHeroGuy
6e3b6cb0c1
Check division/modulo by zero (a74a4eb)
2024-11-15 00:00:51 +01:00
GenericHeroGuy
11155cc609
Standard library wipeout (1d1b7ec)
2024-11-13 17:15:08 +01:00
GenericHeroGuy
a5baa052e2
Fix building on Windows (hopefully)
2024-11-12 00:43:25 +01:00
indev
31d8fe4459
Fix game crashing when increasing number of viewpoints more than by one (again) (needs testing that it didn't break anything else)
2024-11-12 01:40:05 +03:00
GenericHeroGuy
71021982ed
Two fixes from master
2024-11-10 22:02:46 +01:00
GenericHeroGuy
4d9c1f7a65
Disable FFI
2024-11-10 19:37:05 +01:00
GenericHeroGuy
406e9dcaf2
HUD interpolation for BLUAJIT
...
Still glitches for a single tic with JIT on...
2024-11-10 17:56:00 +01:00
GenericHeroGuy
d3b0d845eb
Fix consolelib once and for all
...
LuaJIT does not tolerate lightuserdata in luaL_checkudata,
so now cvars are userdata like everything else
2024-11-10 17:47:43 +01:00
GenericHeroGuy
335b977cd4
Fix API assert in LUA_EvalMath
2024-11-10 17:41:00 +01:00
GenericHeroGuy
3554c91b2b
Library stuff, cvar, etc
2024-11-10 17:38:41 +01:00
GenericHeroGuy
460dab0342
BLUAJIT makefiles
2024-11-10 17:38:41 +01:00
GenericHeroGuy
fb9b04c192
Import BLUAJIT (cb36ab5)
2024-11-10 17:38:37 +01:00
Alug
478d809620
Merge branch 'Saturn-Next' into refactorcamstuff
2024-11-09 16:16:40 +01:00
indev
5a7c481f69
Fix normal skin being unable to load if localskins limit is reached (thx Alug for pointing out <3)
2024-11-03 00:26:44 +03:00
indev
076e84ed24
Fix localskins being unable to load if normal skin limit is reached
2024-11-03 00:13:45 +03:00
Alug
22164031fe
gu?
2024-11-02 01:05:06 +01:00
Alug
cb50144624
Merge branch 'Saturn-Next' into Saturn-Testing
2024-11-02 01:04:22 +01:00
Alug
acd9763b9d
Merge branch 'refactorogl' into Saturn-Testing
2024-10-31 13:47:42 +01:00
indev
9f2167ac3c
Fix mapmusname global in lua being renamed to (*mapmusname)
2024-10-30 20:34:53 +03:00
Alug
e9cfff8165
Merge branch 'Saturn-Next' into Saturn-Testing
2024-10-25 03:28:50 +02:00
Alug
1153d477ee
Revert "maybe fix mobj interp spawn bugs?"
...
This reverts commit 037f45df1e .
2024-10-22 15:52:37 +02:00
Alug
d63b158966
Revert "fix ghost interpolation"
...
This reverts commit f23202545b .
2024-10-22 15:52:32 +02:00
Alug
f23202545b
fix ghost interpolation
2024-10-22 02:32:01 +02:00
Alug
037f45df1e
maybe fix mobj interp spawn bugs?
...
idk maybe has some odd side effects?
2024-10-21 22:50:51 +02:00
Alug
0eeb6758f4
Merge branch 'Saturn-Next' into Saturn-Testing
2024-10-21 22:50:46 +02:00
indev
5279192102
Fix off-by-one error for using '?' as map name
2024-10-21 18:40:16 +03:00
Alug
0c8516d33a
also check here ig?
2024-10-21 17:01:35 +02:00
Alug
651f9637fc
prevent map command crash from maps with invalid or non existing mapinfo
2024-10-21 15:39:37 +02:00
Alug
36c5c9939b
replace those two P_MobjWasRemoved with simple null check insteead
...
since those may actually segfault if null anyways
2024-10-21 06:23:23 +02:00
Alug
613e32194f
Merge branch 'Saturn-Next' into Saturn-Testing
2024-10-21 06:14:36 +02:00
indev
9a1e96fb99
Add commit title in comprevision
2024-10-20 21:20:57 +03:00
Alug
bdcbf12246
add small quickncasehash function
2024-10-20 19:59:26 +02:00
Alug
894b843ccb
Merge branch 'clientkick' into Saturn-Testing
2024-10-20 19:57:07 +02:00
Alug
4a9d67521f
attempt to fix automap + add minimap generator command "minigen"
2024-10-20 19:56:32 +02:00
Alug
a353dceaa3
better M_Random implementation
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/1780
2024-10-20 19:50:44 +02:00
Alug
802dd2608e
dont draw fadescreen when minimap iss active
2024-10-20 19:44:52 +02:00
Alug
ebc4bf4b45
move displayplayer assignment earlier
2024-10-20 19:43:29 +02:00
Alug
906828fadb
remove useless code in S_StopChannel
2024-10-20 19:42:56 +02:00
Alug
e35612a6f6
massive cleanup unused code
...
all team stuff, gametypes, bots, etc.
hopefully this wont cause any weird netsynch issues for some reason
2024-10-20 19:41:41 +02:00
Alug
f4e0272db9
Start bustable FOF sounds at the correct height
2024-10-20 19:25:26 +02:00
Alug
5ecfc5e09d
Use PU_LEVEL for texture caching
2024-10-20 19:24:01 +02:00
Alug
927b819bc8
if game crashes, attempt to save replay
2024-10-20 19:22:04 +02:00
Alug
857731e89f
remove broken and unused netcode stuff
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2523
2024-10-20 19:20:32 +02:00
Alug
24fed58c81
Merge branch 'interpfixes' into Saturn-Testing
2024-10-20 19:19:29 +02:00
Alug
57cef86ca1
dont think this needs to be reset every frame
2024-10-20 19:19:14 +02:00
Alug
0f91e18fce
Merge branch 'unglobsavep' into Saturn-Testing
2024-10-20 19:16:23 +02:00
Alug
c01a0147f2
Merge branch 'remusicdef' into Saturn-Testing
2024-10-20 19:16:19 +02:00
Alug
d695b6d51a
Merge branch 'refactorgamepads' into Saturn-Testing
2024-10-20 19:16:12 +02:00
Alug
3d1e4a93fd
Merge branch 'refactorcamstuff' into Saturn-Testing
2024-10-20 19:15:53 +02:00
Alug
6a5d36c57a
Merge branch 'Saturn-Next' into remusicdef
2024-10-20 16:30:24 +02:00
Alug
7f709aee53
Merge branch 'Saturn-Next' into refactorcamstuff
2024-10-20 16:26:08 +02:00
Alug
4df7bcd87f
Merge branch 'Saturn-Next' into refactorgamepads
2024-10-20 16:25:26 +02:00
Alug
bfd61893a1
forgor joyscale
2024-10-16 13:28:25 +02:00
Alug
72d374786f
huge cleanup controller code
...
hope i didnt break anything here lel
2024-10-16 13:28:22 +02:00
Alug
eb40eec4c1
clean up cvar register a bit
2024-10-16 12:57:41 +02:00
Alug
991f1b17dd
spec cam needs mo angle and aiming
...
atleast now ik why it checks for consoleplayer Zzz...
2024-10-14 19:23:47 +02:00
Alug
9a9aa75684
forgor about shadows lol
2024-10-13 21:33:17 +02:00
Alug
d1b023c8c8
whoops forgor
2024-10-13 23:25:38 +02:00
Alug
0d6faed3d5
lol
2024-10-13 23:13:22 +02:00
Alug
b3750f78ff
only do this in software renderer
...
doesent work even with pal rendering in ogl
2024-10-13 23:07:32 +02:00
Alug
82f96dd080
remove unused/nonunsable analog cvars
2024-10-13 22:44:50 +02:00
Alug
d640ce06d7
fix cam stuff for good + huge cleanup
2024-10-13 22:44:47 +02:00
Alug
b8fb74fef3
fix the cam loops
2024-10-13 22:44:43 +02:00
Alug
ab4bbbff72
use arrays for all the cam cvars
2024-10-13 22:44:37 +02:00
Alug
4180949307
dont need this splitscreen check
2024-10-13 22:43:14 +02:00
Alug
e68ff858f2
attempt to clean up cam shit even more
2024-10-13 22:43:08 +02:00
Alug
b978645c28
Merge branch 'Saturn-Next' into clientkick
2024-10-13 00:05:28 +02:00
Alug
59a99f4c21
Merge branch 'Saturn-Next' into clientkick
2024-10-12 23:29:43 +02:00
Alug
bf67c6b1d0
remove code dupe and let S_LoadMusicDefs also load MUSCINFO def
2024-10-01 15:19:51 +02:00
Alug
f1cf370680
make a funky macro
2024-10-01 15:19:46 +02:00
Alug
affa23040b
refactor musicdef stuff
...
well it fixed the hash find lmao
2024-10-01 15:19:42 +02:00
Alug
a15cefc80f
oops
2024-10-01 15:19:38 +02:00
Alug
5cf00d903b
super smol optimization to S_FindMusicCredit
2024-10-01 15:19:25 +02:00
Alug
47a805ede7
Merge branch 'Saturn-Next' into clientkick
2024-09-26 18:18:53 +02:00
Alug
206d562f3f
Kick clients that fail to catch up with server gamelogic
...
version from rr to accomidate kart netcode a bit better
2024-09-24 19:11:03 +02:00
indev
14400097dd
Only do lookup for mobjtype and states for drift stars and water trails at map load
2024-07-29 01:04:46 +03:00
indev
c44c0e10c1
Lets not compile lua code multiple time each frame x)
2024-07-27 03:28:13 +03:00
indev
bbf49db184
Oops
2024-07-25 21:24:29 +03:00
indev
15787a97bb
Make water trail not use hardcode freeslots too
2024-07-25 21:17:48 +03:00
indev
b76ce23ed2
Make drift stars not use hardcode freeslots
2024-07-25 19:02:39 +03:00
Alug
d6c5066bfd
let autoload run later to mitigate server join issues
...
itll now run at a similar place to postautoload
this may hopefully prevent some issuess with freeslotting lua
however sadly this makes menu replacements not work at startup anymore
2024-07-25 16:42:33 +02:00
Alug
60783d7109
fix fail condition
2024-07-23 22:02:54 +02:00
Alug
db525f15da
make backup of kartconfig before writing to it
2024-07-23 21:48:38 +02:00
Alug
f33daf6bee
toggle palrendering and fbo off if screen textures are disabled
2024-07-23 20:31:34 +02:00
Alug
d13928b394
add cam check here
2024-07-23 20:06:01 +02:00
Alug
5613a0d173
reset tilt when respawning
2024-07-23 20:02:20 +02:00
Alug
aa38586f82
simplify this
2024-07-23 19:01:44 +02:00
Alug
d2b1ceb641
forgor this
2024-07-23 18:56:51 +02:00
Alug
9dd7e9a25f
fix up bird screen tilting
...
removes old lerp variables that did nothing
properly interpolated viewroll
made it proper adjust to mobjscale
doesent roll view when spectating
general cleanup
2024-07-23 18:54:27 +02:00
Alug
1648273ddd
allowjoin now sets saturnjoin to its value use CV_StealthSet to prevent
...
its only for scripts pretty much so no need to toggle it seperately
2024-07-23 17:45:00 +02:00
Alug
3f90e4f12a
add "allowsaturnjoin" cvar to let toggle allowjoin for saturn clients seperately
2024-07-23 17:07:59 +02:00
Alug
2b9d565f0c
e
2024-07-23 00:59:15 +02:00
Alug
70af63cc94
add to menu
2024-07-23 00:55:48 +02:00
Alug
64b92881f9
changuer how this works
...
counter decrements - 1 double the cooldown time
2024-07-22 23:36:13 +02:00
Alug
be5ea069ad
add gamestateresendattempts
...
so you can specify how often the game tries to resend gamestate to player in given time
so they dont get stuck in a synch loop
this is gamestateresendattempts value in the time of resynchcooldown *2
2024-07-22 23:09:04 +02:00
Alug
71e9357114
add check here too
2024-07-22 22:20:42 +02:00
Alug
e28f86ac32
add "gamestatecooldown" cvar
...
to be able to change the cooldown between gamestate resends
2024-07-22 22:20:38 +02:00
Alug
f97fe4bd65
Test: Restore save_p after P_LoadLevel
...
P_LoadLevel calls some functions that save gamedata and
unset save_p.
this is kinda hacky but i perhaps will port the redone save buffer sometime
2024-07-22 19:51:56 +02:00
Alug
3d0ac03f06
optimize MT_TUBEWAYPOINT
...
Store waypoints at map load instead of iterating through the thinker list to find them
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/938
2024-07-22 19:51:44 +02:00
Alug
094132b7d3
Make polyobjects agree with sector lighting/colormap like a FOF.
2024-07-22 19:03:14 +02:00
Alug
51b9c9ae5a
prevent potential level load crash
2024-07-22 18:13:06 +02:00
Alug
d31941ef13
don't check flippedness in HWR_RotateSpritePolyToAim if the mobj is actually a precipmobj!
2024-07-22 18:08:26 +02:00
Alug
48db826142
2
2024-07-22 12:58:28 +02:00
Alug
32b62d19ff
add missing copyright stuff to k_director
2024-07-22 12:57:29 +02:00
Alug
e4f2961129
lagless cam test
2024-07-21 23:28:29 +02:00
Alug
eba09dfad2
Revert "Free mipmaps before freeing tags"
...
This reverts commit 2437c5a19a .
2024-07-21 23:25:32 +02:00
Alug
d9b72fcae6
whitespace hell
2024-07-21 22:51:36 +02:00
Alug
6f17e7f735
revert this
...
doesent do anything but complicate stuff lol
2024-07-21 22:46:01 +02:00
Alug
047b82acc0
remove hw_light
2024-07-21 22:38:51 +02:00
Alug
5347039d75
cleanup hw_main
2024-07-21 22:23:21 +02:00
Alug
edc8095577
cleanup r_things a little
2024-07-21 22:21:01 +02:00
Alug
06f69723c2
fix this oops
2024-07-21 20:22:10 +02:00
Alug
8218fd4f57
stop yelling clang
2024-07-21 20:07:39 +02:00
Alug
6ee22edac5
smol cleanup
...
also check for splitscreen and if not dont run a for loop lul
2024-07-21 20:07:23 +02:00
Alug
37215ef1f4
clean director up a little
...
toggling director now resets cooldown so it switches players immediately
also consolidated condition to be active
and ensure DirectorFollowAttack doesent always run when it doesent need to be
2024-07-21 19:35:17 +02:00
Alug
a2eb2222b9
more reference fixes
2024-07-21 17:38:06 +02:00
Alug
d63b4d9463
Revert "attempt at mitigating palette bug in ogl"
...
This reverts commit 3bd85c20bc .
2024-07-21 16:21:56 +02:00
Alug
3bd85c20bc
attempt at mitigating palette bug in ogl
2024-07-21 16:10:23 +02:00
indev
f70063c7d8
Add director hud indicator
2024-07-21 17:03:27 +03:00
Alug
a2f7dd7408
fix cmake
2024-07-21 15:45:53 +02:00
indev
147014d43a
Add bind for director toggle
2024-07-21 16:11:33 +03:00
Alug
9460d1e9a1
oops
2024-07-21 15:11:28 +02:00
Alug
b3a9a6b59a
add stuff for directordebugger i forgor
2024-07-21 15:11:01 +02:00
Alug
69f7d669c8
only update director if consoleplayers specs or in demo playback
...
dont need to update this ever if we dont even use it lol
2024-07-21 14:42:48 +02:00
Alug
74a68b1462
fix crash if everyone spectates
2024-07-21 14:42:17 +02:00
Alug
006ea90493
port director from RR
2024-07-21 14:20:54 +02:00
Alug
aede063266
Merge remote-tracking branch 'origin/absolutehell' into lugstuff
2024-07-20 19:47:37 +02:00
Alug
5aaeff4c5d
improve virtual resource management
2024-07-19 22:44:12 +02:00
Alug
5f80d6c18d
fix hoop midjoin crash in the dumbest way possible
...
cant figure out why it crashes so thisll do lol
2024-07-19 22:42:50 +02:00
Alug
7c59c9e6ec
fix ScreenCoords on 2 plyr splitscreen and shearing
...
+ remove non 16:10 hack since that issue was fixed elsewhere
2024-07-19 19:25:05 +02:00
Alug
aae83b3235
disable hudoffsets in splitscreen
2024-07-19 18:52:53 +02:00
indev
520165128a
Add option to play power items sfx for growmusic and supermusic
2024-07-19 18:17:23 +02:00
Alug
556ced63cf
whoopss remove test stuff
2024-07-19 14:39:23 +02:00
Alug
063bf830ff
make a packet to tell if a joined client is on saturn
...
initial stuff
works and seems to be vanilla compatible
needs its own function and other things to be useful
2024-07-19 14:38:38 +02:00
Alug
7fd3bd412c
reenable gme music position setting
2024-07-19 12:13:20 +02:00
Alug
47b9508af2
lul
2024-07-19 01:22:36 +02:00
Alug
417c44aad0
lül
2024-07-19 01:20:18 +02:00
Alug
1fefa0a99a
remove spriteclipshader crap
2024-07-18 15:23:27 +02:00
Alug
06db4d2b62
add audio buffer size into sound menu
2024-07-18 14:43:05 +02:00
Alug
bf7fc12a8d
revert this in teleport
2024-07-17 22:19:03 +02:00
Alug
395daf57fa
Revert "clean up mapload code a little more"
...
This reverts commit 79a5d174a5 .
2024-07-17 12:26:38 +02:00
indev
97219b7a84
Attempt to fix possible use-after-free for awayviewmobj
2024-07-17 11:56:22 +02:00
Alug
0d5d677eff
Skip over empty entries when populating vres, saving memory
2024-07-17 11:56:19 +02:00
Alug
3bd6c99a3b
vres_GetMap: Count resources in folders up until next 0-length lump
...
justs in case the order of stuff may be weird
fixes keepmapmusic crash on some maps
2024-07-17 11:56:17 +02:00
Alug
1d2d8d58db
clean up mapload code a little more
2024-07-17 11:56:14 +02:00
indev
9909b002fe
Fix linedef 415 executing random text if script lump doesn't have null terminator
2024-07-16 15:46:37 +02:00
Alug
ccda1ef104
did not mean to add this lol
2024-07-16 10:43:47 +02:00
Alug
52a882bda2
remove this check
2024-07-15 21:58:07 +02:00
Alug
177c60e857
fix more warnings
2024-07-15 21:43:48 +02:00
Alug
0566b96738
fix some warnings in clang
2024-07-15 21:43:46 +02:00
Alug
f72c179f56
fix A_ action protottypes
2024-07-15 21:43:44 +02:00
Alug
0da963c794
Revert "fix some clang warnings"
...
This reverts commit fea89de037 .
2024-07-15 21:43:40 +02:00
Alug
7d885f7100
dont access delayremoved thinkers
...
uhhh
2024-07-15 14:34:33 +02:00
Alug
c1c2f794e3
more mobj reference fixes + cleanup
2024-07-15 13:58:08 +02:00
Alug
8bb1c7a032
Revert "run this in actual fullscreen"
...
This reverts commit 4a2d6b2241 .
2024-07-14 18:03:21 +02:00
Alug
804123afc1
ndef
2024-07-14 17:32:33 +02:00
Alug
8e4f278ce4
this does nothing lol
2024-07-14 17:15:31 +02:00
Alug
3193241b11
shut up 32bit gcc
2024-07-14 16:59:54 +02:00
indev
edb44fa6a2
Refactor music name scrolling in music test
2024-07-14 16:59:46 +02:00
Alug
66e9ac3657
Free mipmaps before freeing tags
...
ŝhould hopefully fix some random Z_free crashes
2024-07-14 16:44:09 +02:00
Alug
87e0796bf4
inline M_Memcpy
2024-07-13 15:55:30 +02:00
Alug
6bc6db3665
also use IFCHANGED macro for levelinterpolators
...
just looks a bit neater
2024-07-13 15:12:43 +02:00
Alug
2a4aa51373
Revert "smol optimization to HWR_Addline"
...
This reverts commit e6359663b1 .
2024-07-13 14:55:28 +02:00
Alug
e15b052570
Revert "shut up gcc"
...
This reverts commit 17a5c6ed06 .
2024-07-13 14:55:26 +02:00
Alug
629e249a12
Revert "dont do this with portals"
...
This reverts commit f949fa54af .
2024-07-13 14:55:21 +02:00
Alug
86a260bb89
fix NOHW compile
2024-07-13 14:54:55 +02:00
Alug
6ab2de2787
shut up windoze
2024-07-11 10:36:27 +02:00
Alug
8effdc1615
Clean up graphic menus
...
- Renamed Experimental Options to Advanced Options
- Fixed the tooltips not displaying
- Made it look good again
2024-07-10 19:26:40 +02:00
Alug
561fc2d01a
only interpolate pitch and roll when using 3d models
...
sprites dont need this for now
2024-07-10 18:43:20 +02:00
Alug
3fd9cf573b
dont think precip mobj angle ever changes
2024-07-10 18:42:42 +02:00
Alug
d7c0bed4eb
remove those 2 from experimental video menu
...
no reason to ever toggle them off
2024-07-10 18:35:04 +02:00
Alug
afd1f595e1
remove cv_grfofcut
...
same story
2024-07-10 18:34:45 +02:00
Alug
f47a43df2f
remove cv_slopepegfix
...
same as the other ones
2024-07-10 18:34:13 +02:00
Alug
4385327101
remove cv_fofzfightfix
...
more bloat
2024-07-10 18:33:25 +02:00
Alug
4e73c05ef9
remove R_Pointtoangle toggle
...
its bloat, the difference is negigble at best
2024-07-10 18:32:57 +02:00
Alug
c01ef035a5
remove cv_mobjssector
...
idk why it even checks for pointinsubsector
2024-07-10 18:31:46 +02:00
Alug
b59c080943
fix IFCHANGED macro
2024-07-10 18:31:39 +02:00
Alug
814c65b290
dont do this with portals
2024-07-10 09:21:58 +02:00
Alug
9f1c1c3f18
dont need to check this in precip
2024-07-10 08:49:19 +02:00
Alug
e0df7dfba5
shut up gcc
2024-07-10 07:12:58 +02:00
Alug
220db7212f
inline some crap
2024-07-10 07:11:38 +02:00
Alug
d59f45a26a
smol optimization to HWR_Addline
2024-07-10 06:55:47 +02:00
Alug
f88d92ecee
change when dynamic slopes run depending on if you joined midgame
2024-07-10 06:21:48 +02:00
Alug
c28188b6d8
smol cleanup
2024-07-10 05:50:01 +02:00
Alug
80419748db
forgor this
2024-07-10 05:45:06 +02:00
Alug
874e6cd5af
fix conflict
2024-07-10 05:26:27 +02:00
Alug
cd500fc344
clean up P_SetupLevel a little more
2024-07-10 05:25:31 +02:00
Alug
ae7afc5749
Map data lump interface
...
cleans up code alot and stuff
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/535
2024-07-10 05:25:22 +02:00
indev
b0fa94c781
Call ServerJoin hook when consoleplayer becomes available, since it is needed for configs (which what this hook is created for)
2024-07-10 05:23:53 +02:00
indev
9bf717fae9
Add info about ServerJoin into LUASTUFF.md (so i don't forget to do it later)
2024-07-10 05:23:47 +02:00
indev
859c1020e6
Add ServerJoin lua hook, which gets called when client joins a server (listen server hosts joining their server also count)
2024-07-10 05:23:22 +02:00
Alug
9108d64820
mitigate dynamic slope desynchs
...
Perform dynamic slope thinking before other thinkers.
2024-07-10 05:22:38 +02:00
Alug
e9d3c1a421
Fix mobj reference management of player->mo
...
https://git.do.srb2.org/KartKrew/RingRacers/-/commit/d0719ef5ba86a1da32fed171d74eb76c7254f4f6
2024-07-10 05:21:45 +02:00
Alug
f36e069f40
unhack this again
2024-07-09 09:06:11 +02:00
Alug
1f5c7b1d12
more changes to dither
...
use interger for distance scales
start z factor earlier
rename halfResolution to endResolution
2024-07-09 08:39:38 +02:00
Alug
94ecb9e634
ass
2024-07-08 20:49:05 +02:00
Alug
b9db67bc08
more tweaks
2024-07-08 20:42:38 +02:00
Alug
c152799295
oops that actually didnt fade out at all lol
2024-07-08 20:42:35 +02:00
Alug
f91165857d
scale and fade out dither pattern
...
makes the image a bit cleaner and easier to look at in palrender
2024-07-08 20:42:29 +02:00
Alug
29b93f02f1
crap
2024-07-08 20:42:02 +02:00
Alug
f9a6452528
simplify this a little
2024-07-08 20:41:27 +02:00
Alug
e7e51957e9
oops this should be min
2024-07-08 20:41:17 +02:00
Alug
f8903e7ce7
clean up some net stuff
2024-07-08 20:41:10 +02:00
Alug
d3548a4dfb
Always use system-specific path seperator
...
https://git.srb2.org/KartKrew/RingRacers/-/commit/0f16c61d04f42b463db5c8987571fc986ae6ce9f
2024-07-08 20:40:51 +02:00
Alug
eca72c6dc6
dont think kart even supports trivial maps
...
so no need to constantly check for this
2024-07-08 20:40:43 +02:00
NepDisk
6e378f4de6
Leave me alonmg kate
2024-07-03 13:04:45 +02:00
Alug
94ac52d792
Clamp lindex during vissprite light calculation
...
Mitigates against negative or very large xscale values causing lindex
to evaluate < 0, preventing a potential colormap indexing-related crash.
2024-07-03 13:04:11 +02:00
NepDisk
1f276a7eb6
Fix automap multiplayer crash
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2488
2024-07-03 13:03:12 +02:00
Alug
a28a590078
prevent potential crash when trying to kill bananachain
2024-07-03 13:02:53 +02:00
Alug
91d052d25e
shut up gcc
2024-07-03 13:02:32 +02:00
Alug
2f6ded132d
Zzz...
2024-07-03 13:02:29 +02:00
Alug
51cdc1ce90
forgor
2024-07-03 13:02:26 +02:00
Alug
494fe0b1e7
revert software screen shit
2024-07-03 13:02:20 +02:00
Alug
eac5310f5e
some crap from asan
2024-07-03 13:02:16 +02:00
Alug
7f4a2f9943
fix some clang warnings
2024-07-03 13:02:11 +02:00
Alug
28a31301d4
forgor this crap
2024-07-03 13:01:49 +02:00
Alug
1c5e575718
remove all the ogl fix toggless
2024-07-03 13:01:44 +02:00
Alug
4a2d6b2241
run this in actual fullscreen
...
somehow makes xwayland happy
2024-07-03 13:01:11 +02:00
Alug
001baec444
scale dithering a little diff for a little smoother "fade" in pal render
2024-07-03 13:01:06 +02:00
Alug
1b35d4f03b
stuff
2024-07-03 13:00:57 +02:00
Alug
75fc8cb766
change dither matrix to 4x4
...
a little grittier also smol cleanup
2024-07-03 13:00:43 +02:00
indev
28bef8c54f
Use a fake 2d array in dither shader so it compiles with older glsl versions (1.20 at least)
2024-07-03 13:00:36 +02:00
indev
787973a3d5
If shader compilation failed, print info log
2024-07-03 13:00:31 +02:00
Alug
f0e3ca7c1f
add gr_lightdithering to shader
...
mhhm dithering
2024-07-03 13:00:26 +02:00
Alug
1b837a81ef
improve teleport interpolation stuff
2024-07-03 13:00:07 +02:00
Alug
b74dd85ef2
small optimization to batching
2024-07-03 13:00:01 +02:00
Alug
fc9cc62b12
remove this crap
...
this doesent work on nix anyways
2024-07-03 12:59:54 +02:00
Alug
e665edb652
no need for this
2024-07-03 12:59:30 +02:00
Alug
e81cde8753
smoller opitmizations
2024-07-03 12:58:40 +02:00
Alug
4e995436c5
optimize ogl polyobjs slightly
2024-07-03 12:58:13 +02:00
Alug
c57154a8e5
prevent crash in hw bsp
2024-07-03 12:58:07 +02:00
Alug
31fbba057a
remove this again
2024-07-03 12:57:44 +02:00
Alug
46fa6e7ba4
change the shader z shit again
2024-07-03 12:57:17 +02:00
NepDisk
bbb0379813
Allow Users to Connect to Servers While In-Game
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2401/
2024-07-03 12:57:09 +02:00
NepDisk
156b63440e
Linux customshader compilation fix
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2418/
2024-07-03 12:56:41 +02:00
Alug
20e062b031
move HWR_LoadLevel to hw_main
2024-07-03 12:56:22 +02:00
Alug
c98ebc9f35
Try fix glib preallocating too much space for sound freeslots
...
idk why git keeps removing credits
but thx indev <3
2024-07-03 12:55:57 +02:00
Alug
c6001c7bf6
this should be called on mapload
2024-07-03 12:55:42 +02:00
Alug
2d0945264f
oops 2
2024-06-20 21:16:47 +02:00
Alug
3d0981cf7b
oops
2024-06-20 21:13:50 +02:00
Alug
cce581fa51
these appear to be unused so comment them out
...
dont need 6 arrays being allocated with MAXSKINS for nothing lul
2024-06-20 16:22:13 +02:00
Alug
2446b804c7
forgor this
2024-06-20 03:00:48 +02:00
Alug
20cdb1c5ec
limit localskins to 32
...
hope this doesent just die lol
2024-06-20 02:42:49 +02:00
Alug
212b184320
Do not access memory on misaligned addresses
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2438
2024-06-17 17:11:20 +02:00
Alug
37e98f342c
Revert "fix some interpolation issues"
...
This reverts commit ccb1aecd01d376b0c0d73bbe4c898e89e35e25d0.
2024-06-17 12:51:42 +02:00
Alug
578f5b85dd
Revert "more interp fixes"
...
This reverts commit 3a1a58bcfc .
2024-06-17 12:51:29 +02:00
Alug
99b1e3f969
Revert "attempt at speeding up sdl_render stuff"
...
This reverts commit f91d3ccf24 .
2024-06-17 12:51:20 +02:00
Alug
8c9ef0e8f3
Merge branch 'lugstuff' of https://github.com/Indev450/SRB2Kart-Saturn into lugstuff
2024-06-16 22:41:45 +02:00
Alug
f91d3ccf24
attempt at speeding up sdl_render stuff
2024-06-16 22:41:32 +02:00
Alug
691063983e
Revert "Test: kill unused skin sounds freeslotting"
...
This reverts commit b9b97d0a56 .
2024-06-16 21:05:40 +02:00
Alug
b912047f68
35/2 != 17 = 17.5 ?
2024-06-16 16:17:24 +02:00
Alug
f2ddbf1e68
a
2024-06-15 21:16:25 +02:00
Alug
5cd36e55ab
Maybe hopefully fix ogl masterserver crash thing
...
port from durr
2024-06-14 04:01:30 +02:00
Alug
1cb590ebb8
this does not exist
2024-06-14 03:00:40 +02:00
Alug
280e937844
add missing HAVE_THREADS
2024-06-13 14:47:20 +02:00
Alug
5afb55547d
opengles 2 seems to be fastest for me lul
2024-06-12 22:31:47 +02:00
Alug
e3c91629db
use sdl ogl render instead of software for software mode on nix
...
oops
2024-06-12 22:31:29 +02:00
Alug
1b0496b1e7
fix some clang warnings
2024-06-12 21:56:27 +02:00
Alug
b7369b40cb
fix oopsie on titled software wöter
2024-06-12 21:49:20 +02:00
Alug
6567313de6
add back le returns
2024-06-12 20:51:34 +02:00
Alug
5ecf3cc36c
lower min audio buffersize to 256
2024-06-12 12:59:23 +02:00
Alug
71e3d89181
move that again
2024-06-11 19:47:51 +02:00
Alug
a284ece8e4
e
2024-06-11 12:59:00 +02:00
Alug
e73e75e740
dumbass hack
2024-06-11 12:58:25 +02:00
Alug
9bfd61fabc
shut up compiler
2024-06-11 12:58:17 +02:00
Alug
a2aeaa51e8
change this to int64 cause it fixes the intermission thing on high res
...
idk why that fixes it tbh but it does
2024-06-11 10:02:23 +02:00
Alug
b558c3db98
more interp fixes
2024-06-11 01:35:22 +02:00
Alug
0f70bcbf28
basic frame skipping system
2024-06-11 01:16:35 +02:00
Alug
f7c4600007
remove windows timing crap again
...
it actually made stuff a little wonky so revert that
2024-06-11 01:15:32 +02:00
Alug
8910f073e5
fix encore flipcam with ogl shearing
2024-06-09 22:02:46 +02:00
Alug
ea18be1866
more lööp stuff
2024-06-09 18:49:41 +02:00
Alug
0bd687eb15
reset those here ig
2024-06-09 18:49:33 +02:00
Alug
25b74bf3dd
e
2024-06-09 18:14:22 +02:00
Alug
e4f9ca3f3c
add mobj check here
2024-06-09 18:13:17 +02:00
Alug
38a3f403bd
add check earlier in p_killmobj
2024-06-09 18:03:58 +02:00
Alug
51dd2030a0
maybe fix the sock_send crash on windoze
...
often happens with unstable net
2024-06-08 19:24:16 +02:00
Alug
7e31067e6a
fix redifinition warning
2024-06-06 18:57:04 +02:00
Alug
9bf06ff30b
disable upx on nix by default
2024-06-06 18:53:40 +02:00
Alug
85aa726bb7
fix masterserver ifdef
2024-06-06 18:47:06 +02:00
Alug
3a67ff3afa
fix HAVE_CURL
2024-06-06 18:42:32 +02:00
Alug
0a022a4348
Revert "instant update after screen mode change"
...
This reverts commit 02bd819f7e .
2024-06-05 14:42:30 +02:00
Alug
ad24beea5b
more minor loop stuff
2024-06-05 14:42:23 +02:00
Alug
9026ae7a16
minor sprite opitmizations
2024-06-05 02:27:18 +02:00
Alug
2fee9b861f
high dpi test
2024-06-05 01:40:57 +02:00
Alug
b7e2bcf02e
lol
2024-06-05 01:40:39 +02:00
Alug
d548848b18
Reapply "use shader to prevent sprite floor clipping"
...
This reverts commit 5ec1ca46e5 .
2024-06-05 01:28:09 +02:00
Alug
4c628ea74f
Revert "zzz..."
...
This reverts commit e19db23bb5 .
2024-06-05 01:28:06 +02:00
Alug
d3ef97f637
test remove all the networking crap from rendering code
2024-06-04 17:11:30 +02:00
Alug
02bd819f7e
instant update after screen mode change
2024-06-04 17:11:12 +02:00
Alug
ea3b4ddeb0
smol optimization to skin loading
2024-06-04 17:10:24 +02:00
Alug
ab3ea7475f
think this should be casted to angle_t
2024-06-04 17:08:09 +02:00
Alug
b9b97d0a56
Test: kill unused skin sounds freeslotting
2024-06-03 18:47:59 +02:00
Alug
e19db23bb5
zzz...
2024-06-03 17:15:16 +02:00
Alug
5ec1ca46e5
Revert "use shader to prevent sprite floor clipping"
...
This reverts commit ee2ec01eb9 .
2024-06-03 17:11:58 +02:00
Alug
c2c918fdda
Revert "fix le dispoffset"
...
This reverts commit f977af6a80 .
2024-06-03 17:11:55 +02:00
Alug
4627989401
Make sfxinfo_t and state_t use field tables too
2024-06-03 17:02:27 +02:00
indev
9552e09471
Lua_optoption shouldn't change stack state at the end of call now
2024-06-03 17:02:14 +02:00
indev
c8fb25066b
Fix compilation for some gcc versions
2024-06-03 17:02:10 +02:00
Alug
b1cb6d42f4
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-06-03 17:01:22 +02:00
Alug
caf7e4a1cf
stuffs
2024-06-01 17:03:27 +02:00
Alug
6a5c0223c4
forgor to remove that
2024-06-01 16:31:49 +02:00
Alug
9ff2d66079
fix papersprites in software (hopefully)
...
lul
2024-06-01 16:29:20 +02:00
Alug
2db2b9309d
flexible array stuff for columnofs
...
hopefully this fixes some crashes or smth
2024-05-31 23:04:26 +02:00
Alug
7a38c15d59
cleanup some super old stuff that did nothing
...
lul
2024-05-31 22:43:49 +02:00
Alug
cb7375f873
theres no value 3 oops
...
i shouldnt do stuff after waking up at 4 in the morning lol
2024-05-30 19:59:01 +02:00
Alug
41e52f9e88
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-05-30 19:10:03 +02:00
Alug
ce7e30a752
smth smth encore magic numbers idk
2024-05-28 22:38:20 +02:00
Alug
3214811fcb
casting stuff
2024-05-28 22:22:58 +02:00
Alug
edda2a5399
that should be there lul
2024-05-28 22:22:48 +02:00
Alug
926bc8e72c
split sprite draw loops
...
so crap doesent constantly check for papersprites on all sprites
2024-05-28 20:55:03 +02:00
Alug
eadffb6be3
make r_fps if else hell a bit more bearable to look at
...
lol lmao
2024-05-28 20:28:27 +02:00
Alug
cf04e8c23c
scale precip size with mobjscale
2024-05-28 20:07:12 +02:00
Alug
ec5840f840
scale sprite draw distance with mapobjscale
2024-05-28 20:02:54 +02:00
Alug
7dc4a7177d
shut up gcc
2024-05-28 01:07:13 +02:00
Alug
3d91de8178
when not using screentextures draw kart bg on intermission screen
2024-05-28 00:52:40 +02:00
Alug
6ea1abfedc
draw a black screen instead of "nothing" during wipes on disabled screentextures
...
should resolve the intense flashing that can occur
2024-05-28 00:52:09 +02:00
Alug
5251482dd7
Optimize field lookups in Lua metatables
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2024#cd5b5ee262bf5129c4d400ad60d006e1fa917c1f
2024-05-27 18:14:59 +02:00
Alug
dd73787c8b
Revert "optimize precip thinker"
...
This reverts commit bc382366a1 .
2024-05-25 19:54:20 +02:00
Alug
340450a67e
Revert "lol"
...
This reverts commit 0d40989f4c .
2024-05-25 19:54:13 +02:00
Alug
0d40989f4c
lol
2024-05-25 19:00:07 +02:00
Alug
c640096d9c
Merge remote-tracking branch 'ghghghghghg/lua-hudinterpolate-redux' into lugstuff
2024-05-25 17:23:49 +02:00
indev
76081869e3
Store hooks in a table with integer keys instead of registry with string keys
2024-05-25 15:45:20 +02:00
Alug
9156c1b850
use ternary
2024-05-25 15:44:33 +02:00
Alug
d78718d8f4
make only player dust be sparkle otherwise normal driftdust
2024-05-25 15:40:22 +02:00
Alug
eef1e986a6
add proper check to sparkle lol
2024-05-25 15:28:41 +02:00
Alug
8fa99c34be
Revert "ok kill this again ig"
...
This reverts commit 98c27fe8ef .
2024-05-25 15:07:07 +02:00
Alug
a35fbdd1b5
move some cvars to be registerrerd latur in ogl
2024-05-25 14:50:24 +02:00
Alug
0efef78684
Turn of FBO downsampling when you turn off screen textures
...
fbo downsampling needs those and if theyre disabled youre essentially seeing nothing at all lol
2024-05-25 14:43:52 +02:00
Alug
62ce17cb4c
super smol optimization to R_DrawRepeatMaskedColumn
...
only maths once not twice lul
2024-05-25 14:37:30 +02:00
Alug
6112be232a
revert solidcol stuffs i did ages ago apparently lol
2024-05-25 12:57:41 +02:00
Alug
c1a9c58eb5
Cull BSP behind a raised floor or lowered ceiling that covers the entire screen
...
https://git.do.srb2.org/KartKrew/RingRacers/-/commit/7b8a564f69688515319ccd425f2b88ffe8b7b120
2024-05-25 02:02:06 +02:00
Alug
0393588fe8
Only call the Lua API for overridden actions
2024-05-25 01:35:44 +02:00
Alug
b7ff0325ea
optimize sight checks
2024-05-25 00:08:14 +02:00
Alug
c4d39eae25
declare outside of lööp also add const in r_
2024-05-25 00:01:58 +02:00
Alug
0e88981425
Cache water trail mobjs from qtpie dev
...
cant really cherry pick so uuuh
2024-05-23 22:23:39 +02:00
Alug
ed7fcae33b
Merge remote-tracking branch 'ghghghghghg/lua-hudinterpolate-redux' into lugstuff
2024-05-23 20:29:22 +02:00
Alug
8b967fb3b7
change wöter visual thing
2024-05-23 20:16:37 +02:00
Alug
4d68a5dc2b
change names to be less basic
2024-05-23 19:25:04 +02:00
Alug
ecd6ef40ef
allow gamepad dpad to hold scroll shit in menu aaa
...
absolute arsepain cant wait to see this breaking kek
2024-05-23 19:11:11 +02:00
Alug
0c9dc33ff0
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-05-21 21:15:21 +02:00
Alug
98c27fe8ef
ok kill this again ig
2024-05-20 22:46:29 +02:00
Alug
3d490f52b2
a
2024-05-20 22:18:17 +02:00
Alug
c78c17d953
funny driftsparkle
2024-05-20 22:18:15 +02:00
Alug
ee5d667a24
changes to woter thing
2024-05-20 19:23:46 +02:00
Alug
b9653b4ff8
unhack the animated votescreen a little
...
also make it pause when the game is paused like it was intended originally
2024-05-20 17:18:06 +02:00
Alug
78bcfa8cfa
conflict moment
2024-05-20 13:40:47 +02:00
Alug
1f1130efda
Merge remote-tracking branch 'origin/Saturn' into lugstuff
2024-05-20 13:39:00 +02:00
Alug
3d7b05d633
forgor this crap
2024-05-15 16:54:41 +02:00
Alug
343bbd8a1a
support gcc14 ig
2024-05-13 20:48:32 +02:00
Alug
f702df48f5
kept forger to declare this
2024-05-13 20:48:21 +02:00
Alug
bc382366a1
optimize precip thinker
2024-05-06 01:18:57 +02:00
Alug
c158144b7b
Revert "refactor weather stuff"
...
This reverts commit dc95b2e8d7 .
2024-05-06 00:33:38 +02:00
Alug
d4337fbc56
Revert "optimize-precip-thinker"
...
This reverts commit e822d8e7d1 .
2024-05-06 00:33:36 +02:00
Alug
e822d8e7d1
optimize-precip-thinker
2024-05-06 00:32:57 +02:00
Alug
dc95b2e8d7
refactor weather stuff
...
not netsafe
2024-05-06 00:05:16 +02:00
Alug
d226ad38ff
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-05-05 22:02:07 +02:00
Alug
2a160c5247
goddamn synched sound effect aaa
2024-05-05 13:00:14 +02:00
Alug
641a9dc4e2
Revert "follower crap cause i want smol spb"
...
This reverts commit 1b963c9439 .
2024-05-04 01:58:58 +01:00
Alug
7e71af8d25
durr water stuff uhhhhhhh
...
hope this wont break lmao
2024-04-29 10:12:33 +02:00
Alug
8e33d2e1b2
simplify SOFTLIGHT alot
...
also should make sure it gets applied everywhere lul
2024-04-29 09:12:44 +02:00
Alug
61118b348c
Merge remote-tracking branch 'ghg/lua-hudinterpolate-redux' into lugstuff
2024-04-25 18:41:10 +02:00
Alug
84faff82a2
fix rare precip crash
2024-04-25 17:08:02 +02:00
Alug
d6cf7cc06f
funny wöter from durr
2024-04-25 16:12:53 +02:00
Alug
0688b94729
update libbacktrace windows lib
2024-04-24 21:26:50 +02:00
Alug
695f53194d
inline those
2024-04-24 10:59:09 +02:00
Alug
1b963c9439
follower crap cause i want smol spb
...
will softcode crap sometime idk
2024-04-23 12:47:18 +02:00
Alug
b50d6dd389
Merge remote-tracking branch 'origin/it-cv-bigfloat' into lugstuff
2024-04-22 05:26:51 +02:00
Alug
2afad9490e
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-04-22 05:26:36 +02:00
Alug
812a275add
fix some visual issues with fofs
2024-04-22 05:24:49 +02:00
Alug
90ccf7699b
a
2024-04-20 22:52:22 +02:00
Alug
31ed12d88a
some stuff from ceepeepeecheck
2024-04-20 22:36:23 +02:00
Alug
5a4e44d064
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-04-20 12:34:03 +02:00
Alug
515c67fa3a
disable palette rendering if screentextures aint enabled
2024-04-19 06:21:58 +02:00
Alug
81d60165a3
z
2024-04-19 05:08:47 +02:00
Alug
cc0fac3546
more things
...
-Fix a division by zero in BCZ2 Metal Sonic's routine
-Fix a bug where adding the same mod multiple times counted towards the mod limit
and other thigns
2024-04-19 04:49:12 +02:00
Alug
d71ad13fcf
some smol fixes
2024-04-19 04:22:29 +02:00
Alug
0d13811305
Make FixedRem less laggy by just using the modulo operator.
2024-04-19 03:52:21 +02:00
Alug
b69cc4e34a
Revert "port thinkerlists + cache and reuse mobjs for the 420th time"
...
This reverts commit bd8a392882 .
2024-04-19 03:38:59 +02:00
Alug
caf8f383ad
Revert "change a few things"
...
This reverts commit c5c61f7692 .
2024-04-19 03:38:55 +02:00
Alug
7db160a8e2
Revert "i dont understand this crap so ill revert it"
...
This reverts commit 7e895f82b2 .
2024-04-19 03:38:52 +02:00
Alug
202a3d1fb1
Revert "some cleanup"
...
This reverts commit 332135fc6f .
2024-04-19 03:38:49 +02:00
Alug
332135fc6f
some cleanup
2024-04-18 23:10:35 +02:00
Alug
7e895f82b2
i dont understand this crap so ill revert it
2024-04-18 14:14:51 +02:00
Alug
c5c61f7692
change a few things
2024-04-18 13:40:27 +02:00
Alug
bd8a392882
port thinkerlists + cache and reuse mobjs for the 420th time
...
i am in pain
2024-04-18 12:07:57 +02:00
Alug
36183e6dc8
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-04-17 05:34:51 +02:00
Alug
5ae4af54da
smth smth paranthesis
2024-04-12 21:55:45 +02:00
Alug
620bdd1419
Merge branch 'lugstuff' of https://github.com/Indev450/SRB2Kart-Saturn into lugstuff
2024-04-12 20:41:16 +02:00
Alug
c18eacbb81
fix software crash
...
Zzz...
2024-04-12 20:41:10 +02:00
Alug
bb8acc5f51
fkldjnasofjosdfoisfj
2024-04-11 19:48:42 +02:00
Alug
d41f4810d7
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-04-11 18:39:58 +02:00
indev
387c4edb3b
Fix potential negative array index in V_ThinStringWidth
2024-04-11 18:00:01 +02:00
Alug
c3fd7c1a7a
grrrr
2024-04-10 18:21:11 +02:00
Alug
94f1ec18de
Revert "fix ifdefs"
...
This reverts commit 5e8e2f4b3a .
2024-04-10 18:19:24 +02:00
Alug
e00f8f6cee
Revert "Zzz..."
...
This reverts commit 79b0a9c833 .
2024-04-10 18:19:21 +02:00
Alug
79b0a9c833
Zzz...
2024-04-10 18:15:42 +02:00
Alug
5e8e2f4b3a
fix ifdefs
2024-04-10 17:59:41 +02:00
Alug
f0158dd915
move this to first init too
2024-04-10 17:58:06 +02:00
Alug
10cf251b46
that wasnt the onchange im sleepy
2024-04-10 17:40:35 +02:00
Alug
72231e5658
forgor to remove those Zzz...
2024-04-10 17:32:06 +02:00
Alug
c510ff3b1c
should throw that into onchange oops
2024-04-10 17:29:08 +02:00
Alug
936e138fee
throw stuff into own function, also check on game start
2024-04-10 17:24:03 +02:00
Alug
8325696b55
put those in 1st init
2024-04-10 07:05:38 +02:00
Alug
d63f517ae5
simplify this crap
2024-04-10 07:02:03 +02:00
Alug
e74df8db90
raise max fpscap
2024-04-10 06:47:45 +02:00
Alug
1a0bf67452
Merge remote-tracking branch 'origin/fborender' into lugstuff
2024-04-09 17:38:44 +02:00
Alug
f0df9b399b
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-04-05 17:40:19 +02:00
Alug
f9345308ff
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-04-05 01:45:11 +02:00
Alug
6ed7c75448
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-04-04 03:57:32 +02:00
Alug
cb71167fb7
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-04-02 16:40:37 +02:00
Alug
d4292987cc
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-04-02 16:14:35 +02:00
Alug
5da24a18dc
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-04-02 15:54:06 +02:00
Alug
1cf7b3e697
tf
2024-04-02 03:51:36 +02:00
Alug
3f3672497b
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-04-02 03:49:01 +02:00
Alug
7714304c7a
Merge remote-tracking branch 'origin/Saturn' into lugstuff
2024-04-01 19:15:13 +02:00
Alug
ff640639b2
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-04-01 03:52:55 +02:00
Alug
0965603c8f
Merge remote-tracking branch 'origin/interpjitter' into lugstuff
2024-04-01 03:52:52 +02:00
Alug
b8412cec96
Fix minor off-by-one error in faketic calculation
2024-03-31 23:22:26 +02:00
Alug
86b7e192b2
fix this for splitscreen and move to own function
2024-03-30 03:34:38 +01:00
Alug
32b9e6094b
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-03-28 15:07:00 +01:00
Alug
3ff7f3158b
why tf is that here
2024-03-28 14:58:44 +01:00
Alug
bd83ba8ca9
when the GLENCORE
2024-03-28 13:21:58 +01:00
Alug
785881c90e
fixeur compile for qt
2024-03-28 12:23:07 +01:00
Alug
567ccf8a59
use this instead
2024-03-28 08:13:16 +01:00
Alug
11423a6d78
fix highresscale issue on startup in the worst way ever cause CV_NOINIT doesent work for whatever reason
2024-03-28 00:15:44 +01:00
Alug
ab6b716e78
Read only header bytes when creating textures list
2024-03-27 21:31:45 +01:00
Alug
7b1be2e34f
Ehh this thing is enough tbh
2024-03-27 20:32:14 +01:00
Alug
19d0d247b4
right v6 lul
2024-03-27 18:26:20 +01:00
Alug
1074a9e1d2
Prevent dropped ticcmds due to interp timing jutter
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2046
2024-03-27 18:17:27 +01:00
Alug
0648f384bb
kill some stuff that did nothing
2024-03-27 18:13:39 +01:00
Alug
58d72204cc
offline play menu pauses game so gib cool vhs effect
2024-03-27 15:51:47 +01:00
Alug
067b4c260f
handle async vsync fail better
...
a
2024-03-27 14:44:02 +01:00
Alug
9e7e4d5fe7
testing smth
...
yes -1 is valid for this sometimes
2024-03-27 12:11:45 +01:00
Alug
7d9609be76
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-03-27 04:35:47 +01:00
Alug
7e510f8bc5
Merge remote-tracking branch 'origin/texload' into lugstuff
2024-03-26 20:42:39 +01:00
Alug
a16e009370
make custom buttons bindable to joyaxis
...
triggers and such
2024-03-25 21:13:47 +01:00
Alug
a021c497b6
forgor to remove this
2024-03-25 17:22:21 +01:00
Alug
e77159cb58
remove this too
2024-03-24 20:18:31 +01:00
Alug
36ac353f1f
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-03-24 20:16:27 +01:00
Alug
58122bf023
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-03-24 18:30:21 +01:00
Alug
c5da23bb02
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-03-24 16:56:14 +01:00
indev
fd45391616
Fix drift sound keep playing when player go off ground
2024-03-24 15:12:02 +01:00
Alug
11dd80e4e7
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-03-24 15:11:53 +01:00
Alug
298f8ef842
Fix crash when passing a long string to v.drawString
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2403
2024-03-24 15:10:14 +01:00
Alug
4c45b9fb85
dfsafsdf
2024-03-23 19:13:14 +01:00
Alug
599cea3238
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-03-23 19:08:59 +01:00
Alug
0c5685e9eb
dont need this anymore now
2024-03-23 18:07:58 +01:00
Alug
760b82fd63
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-03-23 18:07:08 +01:00
Alug
340034adf7
this can be just M_PI
2024-03-21 12:52:40 +01:00
Alug
d978bfd0db
Revert "Add common I_GetSysName function"
...
This reverts commit f3eedc03e6 .
2024-03-21 12:40:44 +01:00
Alug
de9f9722ac
reapply hacky scaling thing
2024-03-21 12:38:50 +01:00
Alug
4dd9dc03fe
ok git
2024-03-21 12:37:58 +01:00
Alug
47fc4aa39a
Merge remote-tracking branch 'ghg/hud-uncap' into lugstuff
2024-03-21 12:36:29 +01:00
Alug
84ad608d70
Revert "software sdl windows scaling quality setting"
...
This reverts commit 7ee6de6b6a .
2024-03-21 12:35:00 +01:00
Alug
d4dd0c9992
conflict fix
2024-03-21 12:33:43 +01:00
Alug
ac93d027af
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-03-21 12:31:01 +01:00
Alug
190a95584c
SFC32 for M_random funcs
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/1780
2024-03-19 11:15:23 +01:00
Alug
9ad368e420
e
2024-03-17 23:32:09 +01:00
Alug
a524215479
add the note so i dont forger if i wanna update this again
2024-03-17 22:43:05 +01:00
Alug
6104c36455
properly link libopenmpt
...
one dll instead of 4
2024-03-17 22:37:18 +01:00
Alug
a04287c9f6
cute icon
2024-03-17 19:29:40 +01:00
indev
99876e3f73
Fix 'cast to non-matching type' warning
2024-03-17 14:57:02 +01:00
indev
f16f498f27
Add include guard for qs22j.h
2024-03-17 14:56:37 +01:00
indev
4f9b5923bd
Add snap to top flag for pause gfx
2024-03-15 12:54:06 +01:00
Alug
84476cd51f
this didnt work
2024-03-15 11:32:33 +01:00
Alug
bf9a6bde82
test this
2024-03-15 11:32:24 +01:00
Alug
a6f8f57725
testing smth
2024-03-14 07:44:07 +01:00
Alug
02f4c334f0
mhhm ternaries
2024-03-13 22:06:45 +01:00
Alug
9884b294c6
i want to see more precip thx
2024-03-13 21:55:23 +01:00
Alug
49f22b5790
revert some stuff that broke some stuff
2024-03-13 19:25:14 +01:00
Alug
841270e824
fix ogl precip interpolation
2024-03-13 17:56:08 +01:00
Alug
630ce57303
this looks better lul
2024-03-13 13:18:30 +01:00
Alug
94aed4d1d1
clean up
2024-03-13 10:16:07 +01:00
Alug
cdc0ec96a9
forgor menu stuff
2024-03-13 10:07:51 +01:00
Alug
751188bcd8
remove xs_CRoundToInt
...
while ye, less exact stuff doesent matter too much in the context of doom, it matters more in kart, due to polygon rendering and seg processing being extremely heavy and also generally more complex maps
2024-03-13 10:06:56 +01:00
Alug
c0c44d46bc
Ensure opaque midtextures always use PF_Masked
2024-03-13 08:48:04 +01:00
Alug
19d8749abf
Revert "inline some things"
...
This reverts commit 0b47c310eccf55871a5bd466f44afa3215cc1322.
2024-03-13 08:35:47 +01:00
Alug
c6f9fb2ac2
Revert "optimize "p_pointon" functions"
...
This reverts commit b9b963f999b902ab7f0f6fae4ec61264e713e15e.
2024-03-13 08:35:44 +01:00
Alug
b1cfdfbc14
Revert "optimize fixedhypot"
...
This reverts commit ae68bd577558f45b81741396a899b7c311f753fc.
2024-03-13 08:35:41 +01:00
Alug
360df11aa6
Revert "LUT for bmapwidth imul instructions."
...
This reverts commit e45a7f911f0d156b7cc38675bec1a14a2080c367.
2024-03-13 08:35:30 +01:00
Alug
d88cc3251f
Revert "fix some oopsies"
...
This reverts commit 578770818ed96e366bbe9ed5ede720de07c0000a.
2024-03-13 08:35:27 +01:00
Alug
cd7079da92
Revert "Zzz...."
...
This reverts commit e05197af882049e555c4116d1e6b4fd5ec4e879d.
2024-03-13 08:35:24 +01:00
Alug
77a0e8213b
Revert "Zzz... 2"
...
This reverts commit bdd32702f9dc3ccbefb6444f1b76329b8ddbc9d7.
2024-03-13 08:35:20 +01:00
Alug
5efa778509
Revert "adjust the pointon funcs again"
...
This reverts commit b5861b2beeb04b6de1fcbd2088069374658f31ee.
2024-03-13 08:35:12 +01:00
Alug
02e6463fae
Revert "P_PointOnDivlineSide stuff"
...
This reverts commit 1fa738d46448bd716547aa1812e38ec0de2221d1.
2024-03-13 08:35:09 +01:00
Alug
b411787fe7
Revert "forgor"
...
This reverts commit 28950e6a15a3350da9a7441d81e3e043985a6c8d.
2024-03-13 08:34:59 +01:00
Alug
8fd91194a7
hm
2024-03-13 07:36:52 +01:00
Alug
4f85e1d603
revert that part
2024-03-13 07:34:12 +01:00
Alug
fae0aeb442
Revert "Revert "forgor""
...
This reverts commit a1afcbc855 .
2024-03-13 07:31:56 +01:00
Alug
ec77824a96
Revert "Revert "dont inline those""
...
This reverts commit ae829375a0 .
2024-03-13 07:31:53 +01:00
Alug
4127936eef
optimize HWR_AddLine and HWR_ProcessSeg
2024-03-13 07:28:16 +01:00
Alug
ae829375a0
Revert "dont inline those"
...
This reverts commit 2e34de8a125644dd7a0689af28b2076cf4c92e21.
2024-03-13 06:51:26 +01:00
Alug
a1afcbc855
Revert "forgor"
...
This reverts commit e1e3aa899d .
2024-03-13 06:51:21 +01:00
Alug
e1e3aa899d
forgor
2024-03-13 06:07:59 +01:00
Alug
2644a3bf6e
dont inline those
2024-03-13 06:03:19 +01:00
Alug
6b4e81e1ec
P_PointOnDivlineSide stuff
2024-03-13 06:00:37 +01:00
Alug
c705a0f35a
adjust the pointon funcs again
2024-03-13 04:51:48 +01:00
indev
b1b3102b31
If game crashes in level, add it to crash report
2024-03-12 18:51:00 +01:00
Alug
2d823d34f9
Fix buffer overrun in I_ClipboardPaste
...
https://git.do.srb2.org/STJr/SRB2/-/commit/9772bbeda172bc60482f137fc465e12070c76f22
2024-03-12 18:50:55 +01:00
Alug
1bb9fb2c67
cant override crap, thx msys
2024-03-12 18:27:55 +01:00
Alug
b90e3ce9da
i will add those in compiler flag instead
2024-03-12 18:19:12 +01:00
Alug
e04a074a79
Revert "condensetics"
...
This reverts commit 87001f7e78 .
2024-03-12 16:30:00 +01:00
Alug
f98c3311af
Zzz... 2
2024-03-12 16:21:42 +01:00
Alug
1a8c44af27
Zzz....
2024-03-12 16:20:32 +01:00
Alug
a57089c1a9
fix some oopsies
2024-03-12 16:16:40 +01:00
Alug
87001f7e78
condensetics
2024-03-12 16:06:12 +01:00
Alug
1fbb05c938
LUT for bmapwidth imul instructions.
2024-03-12 15:28:12 +01:00
Alug
3eef9d3b62
inline blockthing iterator aswell
2024-03-12 14:27:15 +01:00
Alug
af2adf0134
remove some suff
2024-03-12 14:02:46 +01:00
Alug
bbdfee8d33
optimize fixedhypot
2024-03-12 12:58:17 +01:00
Alug
2c4da83502
optimize "p_pointon" functions
2024-03-12 10:47:27 +01:00
Alug
75f2868971
inline some things
2024-03-12 02:13:35 +01:00
Alug
87d9ecc3c8
midi music bros
2024-03-11 23:52:26 +01:00
indev
b637943bd9
Add snap to bottom flags for race countdown and level title too
2024-03-11 22:30:45 +01:00
Alug
0514475155
uuuuh
2024-03-11 22:30:37 +01:00
Alug
8cfb39e035
sort grid when opening skin menu instead of everytime a skin is added
2024-03-11 21:01:43 +01:00
Alug
a9a7cb7be0
i
2024-03-11 12:58:22 +01:00
Alug
f8649a24aa
those can all be static
2024-03-11 11:54:32 +01:00
Alug
ee5a860e07
more opitmizations stuff
2024-03-11 11:47:05 +01:00
Alug
e6f03c1136
can do that directly
2024-03-11 11:22:08 +01:00
Alug
780162f516
optimize hwr_renderbpsnode
...
actually just make it behave like the software version lol
2024-03-11 11:00:14 +01:00
Alug
a6d32d834b
make 64 default again
2024-03-11 04:27:52 +01:00
Alug
cef3c7f032
remove pseudoangle as its slower
2024-03-11 04:25:41 +01:00
Alug
07f8a532f9
attempt at unfucking renderview
2024-03-11 03:40:13 +01:00
Alug
352adf526a
give this a better name lol
2024-03-11 02:22:40 +01:00
Alug
df48f9caf9
actually move stuff back to hw_clip lmao
2024-03-11 02:15:34 +01:00
Alug
f611053d4f
replace server list sorting with qs22j
2024-03-10 20:28:27 +01:00
indev
39011cd93b
Snap viewpoint text to bottom
2024-03-10 19:54:20 +01:00
Alug
562cb8cebd
clean up stuff a little
2024-03-10 18:50:38 +01:00
Alug
89ae721421
i am in pain
2024-03-10 17:59:24 +01:00
Alug
f65f4b32e2
Revert "remove pseudoangle"
...
This reverts commit c5d6ac63c5 .
2024-03-10 15:19:36 +01:00
Alug
303fca6bcc
smol adjustment
2024-03-10 04:39:55 +01:00
Alug
4aba159ee8
clean up this mess
2024-03-10 04:25:59 +01:00
Alug
5838e60bf6
fix overflow stuffs
2024-03-10 03:43:21 +01:00
Alug
527e436d57
Revert "stuffs"
...
This reverts commit 60ede73ff8 .
2024-03-09 14:06:18 +01:00
Alug
60ede73ff8
stuffs
2024-03-09 13:43:06 +01:00
Alug
298d5e95fc
unfuck thinker crap
2024-03-09 13:34:34 +01:00
Alug
e9a68f0b7d
forgor
2024-03-09 12:02:20 +01:00
Alug
d613cf4d4c
sUgGeSt PaReNtHeSeS ArOuNd '&&'
2024-03-09 12:01:18 +01:00
Alug
3487fae95d
simplify this crap
2024-03-09 10:51:32 +01:00
Alug
9ee47a071b
oops
2024-03-09 10:22:20 +01:00
Alug
3579fc3dea
remove this
2024-03-09 10:11:06 +01:00
Alug
921bff19f1
add toggle for old fps counter behaviour
...
idk people hate the new one so brap
2024-03-09 07:58:14 +01:00
Alug
d07420eaeb
fix compile for everyone but me lmao
2024-03-09 07:40:38 +01:00
Alug
8028db77d8
implicit declaration of deez nuts
2024-03-09 07:12:56 +01:00
Alug
e49a059783
fix dumbass compiler warnings + reformat it a bit
2024-03-09 07:12:18 +01:00
Alug
482b6e6844
use it for other stuff
2024-03-09 07:02:16 +01:00
Alug
aa70635919
dont think this should write to relplays
2024-03-09 02:00:40 +01:00
Alug
c331b0fa89
e
2024-03-09 01:59:27 +01:00
Alug
fe55744de2
a
2024-03-09 00:57:40 +01:00
Alug
15e9d85a14
Revert "Revert "avx destruction idk""
...
This reverts commit f547020fc5 .
2024-03-09 00:54:33 +01:00
Alug
51043b61a1
Revert "cache and reuse mobjs again"
...
This reverts commit 04455c9625 .
2024-03-08 23:43:52 +01:00
Alug
6620d5fb26
faster qsort for rendering
2024-03-08 15:03:58 +01:00
Alug
f547020fc5
Revert "avx destruction idk"
...
This reverts commit 4fdb2174f0 .
2024-03-08 11:14:42 +01:00
Alug
89ea473c3b
fix shit on party cruiser
...
well fixing the cullplane broke party cruiser, so im just gonna give it the same parameters as the software version i guess idk
2024-03-08 01:19:25 +01:00
Alug
b60d9d0be7
readd this cause i dumb
2024-03-08 01:19:15 +01:00
Alug
4fdb2174f0
avx destruction idk
2024-03-08 00:15:43 +01:00
Alug
06a48584d6
expose this cause i want to use it in local scripts
2024-03-08 00:09:08 +01:00
Alug
e9f9c1009d
more mobj stuffs
2024-03-07 00:35:26 +01:00
Alug
b66ceda525
Revert "attempt at exclusive fullscreen mode"
...
This reverts commit 19f1d8b847 .
2024-03-06 09:27:09 +01:00
Alug
7c9c28f026
Revert "use desktop resolution for stuff"
...
This reverts commit a54384a579 .
2024-03-06 09:27:06 +01:00
Alug
72f0552ef1
Revert "reset windowsize on normal fullscreen mode"
...
This reverts commit 85c7216eaa .
2024-03-06 09:26:59 +01:00
Alug
877a1f15a9
Revert "multidisplay stuff + only activate framebuffer for downsampling"
...
This reverts commit 5f58e7b343 .
2024-03-06 09:26:46 +01:00
Alug
efa2a68805
Revert "Zzz... moment"
...
This reverts commit 8cec2dab82 .
2024-03-06 09:26:43 +01:00
Alug
023209bb76
Revert "only do things here when theres more than one display"
...
This reverts commit 9eb68bf052 .
2024-03-06 09:26:38 +01:00
Alug
da5dcde6ee
Revert "wait uhhhh"
...
This reverts commit 875adb17b1 .
2024-03-06 09:26:33 +01:00
Alug
e92c5e1bf9
Revert "ugh this still takes the wrong display blergh"
...
This reverts commit 298b4d23e8 .
2024-03-06 09:26:30 +01:00
Alug
2b7c4ae76c
Revert "ill just uhhhhh use main display stuff for now idk"
...
This reverts commit a2d0ea9d11 .
2024-03-06 09:26:24 +01:00
Alug
ea26db2cbd
Revert "change things a bit"
...
This reverts commit 9c42b77879 .
2024-03-06 09:26:21 +01:00
Alug
b9e3747f99
Revert "forgor"
...
This reverts commit 4d608b7f37 .
2024-03-06 09:26:19 +01:00
Alug
4d608b7f37
forgor
2024-03-06 09:20:21 +01:00
Alug
9c42b77879
change things a bit
2024-03-06 09:19:17 +01:00
Alug
a2d0ea9d11
ill just uhhhhh use main display stuff for now idk
2024-03-06 08:07:40 +01:00
Alug
298b4d23e8
ugh this still takes the wrong display blergh
2024-03-06 07:59:31 +01:00
Alug
875adb17b1
wait uhhhh
2024-03-06 07:42:46 +01:00
Alug
9eb68bf052
only do things here when theres more than one display
2024-03-06 07:39:36 +01:00
Alug
8cec2dab82
Zzz... moment
2024-03-06 07:36:28 +01:00
Alug
5f58e7b343
multidisplay stuff + only activate framebuffer for downsampling
...
idk i hope this shit works lmao
also moved some things in OglSdlSurface so it doesent intialize certain things everytime we change framebuffer shit
2024-03-06 07:26:53 +01:00
Alug
28bb88e9b4
Dynamically allocate space for a state's action field
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/1478
2024-03-06 04:39:29 +01:00
Alug
04455c9625
cache and reuse mobjs again
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2200
2024-03-06 04:14:21 +01:00
Alug
9853150e57
Merge remote-tracking branch 'origin/maybemobjcrashfixes' into lugstuff
2024-03-06 00:26:24 +01:00
Alug
85c7216eaa
reset windowsize on normal fullscreen mode
2024-03-05 02:15:06 +01:00
Alug
a54384a579
use desktop resolution for stuff
2024-03-05 02:02:02 +01:00
Alug
19f1d8b847
attempt at exclusive fullscreen mode
2024-03-05 01:44:10 +01:00
indev
8270b64624
Make custom cvar menu bit wider
2024-03-04 23:52:45 +01:00
indev
81e3810c32
Don't add string cvars (a bit hacky solution)
2024-03-04 21:08:05 +01:00
Alug
c266151071
change some numbers uuuuuh
2024-03-04 20:17:18 +01:00
Alug
27d55260e8
remove minmax sliders
2024-03-04 19:45:49 +01:00
Alug
233583657e
oops
2024-03-04 19:04:51 +01:00
Alug
7bb1eed249
dont do stuff for anything thats not in normal us ascii or smth
2024-03-04 18:34:09 +01:00
Alug
aa85fc3787
dont use it for control setup
2024-03-04 18:13:18 +01:00
Alug
c9a88617b1
only use this for text inputs not gameplay
2024-03-04 17:46:45 +01:00
Alug
2f899fdfcc
make it even simpler
2024-03-04 05:24:41 +01:00
Alug
cdd2b6560e
i will just use my compilers memcpy thx
2024-03-04 05:19:54 +01:00
Alug
60f29edbca
turn it off completely when your gpu cant use it
2024-03-04 02:51:12 +01:00
Alug
60cffe1ed1
unhack framebuffer functions a little
2024-03-04 02:47:42 +01:00
Alug
e77e7d1643
o
2024-03-04 01:13:23 +01:00
Alug
5dc22f502e
dont need this
2024-03-04 00:45:14 +01:00
Alug
7a309c1175
when the ;;
2024-03-04 00:13:21 +01:00
Alug
9ce5baad9e
fix ogl freelook breaking with shearing enabled
...
also removed uneeded stuff
2024-03-03 08:40:24 +01:00
Alug
a4aa9a76f2
should only do that when rendering stuff
2024-03-03 07:57:46 +01:00
Alug
befa25de5c
add missing interpolators in mapload
2024-03-03 07:50:02 +01:00
Alug
83175d5c09
bruh
...
im going insane
2024-03-03 06:45:37 +01:00
Alug
d8df8e8778
Revert "Revert "we have functions for that dont check for slopes everywhere""
...
This reverts commit 09957d0279 .
2024-03-03 05:51:35 +01:00
Alug
09957d0279
Revert "we have functions for that dont check for slopes everywhere"
...
This reverts commit 46da9bf98b .
2024-03-03 05:34:01 +01:00
Alug
9e44985f56
Do not reload every texture when adding a wad
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/1725?commit_id=37add34b9c729b21e624e22d64159073c9258e25
2024-03-03 05:18:37 +01:00
Alug
b657a84699
Split R_LoadTextures
2024-03-03 04:53:15 +01:00
Alug
5ec7835556
Merge branch 'lugstuff' of https://github.com/Indev450/SRB2Kart-Saturn into lugstuff
2024-03-03 04:34:59 +01:00
Alug
03a864156d
fix conflict
2024-03-03 04:34:53 +01:00
Alug
c823bf3320
Revert "multithread exec command and some filesearch/add stuff"
...
This reverts commit 0d7025f714cbef34ca6e92e683561df411fa149a.
2024-03-03 04:32:13 +01:00
Alug
4f4d2f1f4c
clean up r_segs
2024-03-03 03:13:46 +01:00
Alug
1bb389052d
fix this
2024-03-02 23:36:48 +01:00
Alug
31fdc5bbc1
dont need to check if we dont use it
2024-03-02 22:56:26 +01:00
Alug
db3833430d
we have functions for that dont check for slopes everywhere
...
the functions already do it for us anyways
2024-03-02 22:33:34 +01:00
Alug
6d2212d259
move sprite mobj checks first
2024-03-02 21:56:39 +01:00
Alug
912c0e7fc4
check for those i guess
2024-03-02 18:36:34 +01:00
Alug
43d232819a
forgor screenspace clipping
2024-03-02 18:25:13 +01:00
Alug
302eaf60b5
GetScreenCoord lua parity
2024-03-02 17:36:59 +01:00
Alug
84535faa90
remove more unused stuff
2024-03-02 15:57:25 +01:00
Alug
8c55d3c705
bruh
2024-03-02 13:23:50 +01:00
Alug
ec11b9268f
did not mean to commit this lul
2024-03-02 03:33:26 +01:00
Alug
a45af4a80c
i
2024-03-02 03:18:27 +01:00
Alug
df627b6830
a
2024-03-02 03:11:06 +01:00
Alug
dfbeaf30ad
m
2024-03-02 03:10:47 +01:00
Alug
a03f74b125
add this
2024-03-02 03:05:36 +01:00
Alug
1a01f1299c
fix compiler complains
...
those were for coronas code which we dont even have
2024-03-02 02:43:53 +01:00
Alug
91f0cdbaca
unhack palrendering screentex stuff
2024-03-02 02:15:28 +01:00
Alug
e50bd4125d
e
2024-03-02 02:07:54 +01:00
Alug
ded2c8a7c8
a
2024-03-02 02:03:22 +01:00
Alug
88ce9fc0a6
more stuffs
2024-03-02 02:02:03 +01:00
Alug
3c713248b3
more shader stuff
2024-03-02 01:53:11 +01:00
Alug
75f3edcd92
shader stuffs
2024-03-02 01:50:35 +01:00
Alug
081a7779a6
make netvars red
2024-03-02 01:32:12 +01:00
Alug
6e995207a6
smh
2024-03-02 01:15:03 +01:00
Alug
3492b77aa0
we dont have IT_CV_FLOATSLIDER so dont even need to check for float
2024-03-02 01:14:36 +01:00
Alug
e864901035
Options Menu for custom console variables
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2380#9cc73f4b99ff925448389969b0ade6ba3947fc31
2024-03-02 01:09:10 +01:00
Alug
7ee6de6b6a
software sdl windows scaling quality setting
2024-03-01 23:12:23 +01:00
Alug
553b8ccf6b
Revert "i am in pain"
...
This reverts commit e0e75eac33 .
2024-03-01 15:26:57 +01:00
Alug
bceef0b861
Fix nametag offsets with reverse gravity and flipcam
2024-03-01 15:24:04 +01:00
Alug
53cce6c6bb
this does not exist
2024-03-01 02:31:55 +01:00
Alug
b95047d09f
fix vertical flip driftgauge
...
and make non flipcam behave like the sg lua version
2024-03-01 01:53:17 +01:00
Alug
c6cb4375f5
fix shearing offset with flipcam in K_GetScreenCoords
2024-03-01 01:03:03 +01:00
Alug
a07e2b8eda
only check for stplayer flipcam
...
until i figure out a better way to check all of this crap
2024-02-29 23:08:24 +01:00
Alug
98e7002167
z
2024-02-29 16:22:07 +01:00
Alug
3428dde3c6
test
2024-02-29 05:37:21 +01:00
Alug
13d48f982b
just make it like this
2024-02-29 00:27:37 +01:00
Alug
b2e4dc27e4
give me a little more info on vanilla scoreboard but a bit ugly lul
2024-02-29 00:22:50 +01:00
Alug
deddeab049
stimky ugly
2024-02-28 22:31:06 +01:00
Alug
c3a6410822
Revert "dont need SEENAMES"
...
This reverts commit 01172bca77 .
2024-02-28 22:06:02 +01:00
Alug
c5915091aa
kill have_blua
2024-02-28 21:53:59 +01:00
Alug
4401f0659e
kill delfile
2024-02-28 18:58:04 +01:00
Alug
a0c72d32e8
kill weighted recycling
2024-02-28 18:38:54 +01:00
Alug
1493045ec4
this doesent even exist anymore lmao
2024-02-28 18:33:12 +01:00
Alug
210efb2be7
kill eslope_typeshim
2024-02-28 18:26:54 +01:00
Alug
a02fc1de63
kill GL_SHADERS
2024-02-28 18:19:11 +01:00
Alug
7755bfc861
Zzz...
2024-02-28 18:05:24 +01:00
Alug
01172bca77
dont need SEENAMES
...
esp when we get nametags its obsolete
2024-02-28 17:58:06 +01:00
Alug
143cbc8587
kill polyobjects ifdef
2024-02-28 17:55:47 +01:00
Alug
b65f655a8a
update libcurl to 7.69.0
2024-02-28 15:23:54 +01:00
Alug
ed04c86369
u
2024-02-28 04:53:42 +01:00
Alug
c0eaa17eb3
e
2024-02-28 04:51:13 +01:00
Alug
6383a55038
kill hw_trick
2024-02-28 04:47:55 +01:00
Alug
574df60d58
kill eslope
2024-02-28 04:40:03 +01:00
Alug
61ee575cd3
forgor this
2024-02-28 04:11:39 +01:00
Alug
bdd963081e
OpenGL: Fix linedef type 10 not culling FOFs
2024-02-28 03:50:43 +01:00
Alug
6b908d7a14
missed those
2024-02-27 22:16:52 +01:00
Alug
7d0d70c094
oopsie
2024-02-27 22:11:32 +01:00
Alug
e75c5a9248
delete half of srb2
2024-02-27 21:49:31 +01:00
Alug
b8ed5f4f1a
dont need this anymore
2024-02-27 21:36:57 +01:00
GenericHeroGuy
660d7060e4
Don't return aggregates
2024-02-27 20:24:46 +01:00
Alug
79c5f57714
Merge remote-tracking branch 'origin/joinrefusemessage' into lugstuff
2024-02-27 20:03:47 +01:00
Alug
606d8fbe55
optimize gif palette creation
2024-02-27 20:01:56 +01:00
Alug
edfa116a40
a
2024-02-27 18:38:28 +01:00
Alug
55ca0c712f
add dynamic gif delay
...
fixes issues with low framerates, uncapped and stutters
2024-02-27 17:41:40 +01:00
Alug
16bef488ee
no idea how that ever got there
2024-02-27 15:52:50 +01:00
Alug
82d784d9f8
Toggle for R_Pointtoangle Ex or 64
...
Ex may perform better on 32bit clients and some cpus so lets just make it toggable
2024-02-27 15:52:34 +01:00
indev
103fb2dfc1
Don't return NULL when creating MT_NULL mobj, since it is needed in some parts of game
2024-02-27 13:29:20 +01:00
Alug
bba3e1810b
add this
2024-02-27 05:14:05 +01:00
Alug
af5333f63e
fix P_PlayerInPain
2024-02-27 05:07:44 +01:00
Alug
ea77a5fb53
Fix con_hudlines being off by one, Fix con_hudtime overflow
2024-02-27 05:07:11 +01:00
Alug
a4aef0894b
fix compile for qt
2024-02-26 23:48:47 +01:00
Alug
bab7972518
Put HTTP downloading on a background thread
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2322
2024-02-26 23:37:54 +01:00
Alug
88853a7aee
make the menus a little prettier
2024-02-26 22:01:11 +01:00
Alug
d3339df853
toggle for showing nametags during spectating
2024-02-26 22:00:53 +01:00
Alug
385614b448
add toggle for showing nametags after you finished a race
...
off by default to match sg nametags
2024-02-26 21:19:59 +01:00
Alug
c47ba80f5d
death
2024-02-26 20:58:58 +01:00
Alug
6de0700f49
use V_LocalTransFlag for driftgauge
2024-02-26 20:58:50 +01:00
Alug
d9fe52b1a1
use V_LocalTransFlag for nametags
2024-02-26 20:58:39 +01:00
Alug
ccfc476ec0
replace SCR_FPSflags with V_LocalTransFlag
...
so we can actually display hud transparency stuff before the hud appears, since that doesent work with V_HUDTRANS
2024-02-26 20:58:18 +01:00
Alug
f518b3c48b
e
2024-02-26 20:04:12 +01:00
Alug
81d52db722
Revert "connect loadingscreen should clear menus"
...
This reverts commit 6b41cf676c .
2024-02-25 23:42:30 +01:00
Alug
df9973da99
fix tagsdisplayed counter
2024-02-25 21:32:25 +01:00
Alug
ca4c779c66
dont quit addon downloading with the mousewheel lmao
2024-02-25 19:47:52 +01:00
Alug
7897352175
connect loadingscreen should clear menus
2024-02-25 19:42:21 +01:00
Alug
e0e75eac33
i am in pain
2024-02-25 19:06:32 +01:00
Alug
31d83dd26e
disable driftgauge by default
2024-02-25 18:35:00 +01:00
Alug
698a0b811f
disable nametag by default
2024-02-25 18:34:46 +01:00
Alug
f69609b403
Merge branch 'lugstuff' of https://github.com/Indev450/SRB2Kart-Saturn into lugstuff
2024-02-25 18:21:12 +01:00
Alug
56259e3476
lua hud disable option for driftgauge
2024-02-25 18:21:03 +01:00
Alug
f3dfa53f31
lua hud disable option for nametags
2024-02-25 18:21:03 +01:00
Alug
e10d60c08e
hud disable option for driftgauge
2024-02-25 18:20:32 +01:00
Alug
ad4037351f
hud disable option for nametags
2024-02-25 18:20:19 +01:00
NepDisk
f9e1da8c9f
Add coloring to large numbers
2024-02-25 17:34:12 +01:00
NepDisk
2f05137af7
Fix fillbar
2024-02-25 17:34:08 +01:00
Alug
c305e31c2e
fix first person splitscreen driftgauge stuff a
2024-02-25 12:21:57 +01:00
Alug
a55fabe4f9
k...
2024-02-25 12:12:18 +01:00
Alug
c58848b298
add splitscreen to screencoords and fix splitscreen for driftgauge
2024-02-25 12:10:23 +01:00
Alug
ede644d3c4
use SleepEX on windows and set the min sleep duration to 16ms
2024-02-25 04:08:25 +01:00
Alug
4ff98e62a9
actually disable it for splitscreen for now
...
its botched and needs fixing
2024-02-24 20:32:15 +01:00
Alug
e87fd2fff6
dont draw driftgauge when not using chasecam
2024-02-24 20:14:52 +01:00
indev
33e8b10579
Don't need for long there, fixed_t is big enough
2024-02-24 20:05:12 +01:00
Alug
d11780f62d
add -1 check for driftgauge too
2024-02-24 20:05:07 +01:00
Alug
7706aa0bf0
fix conflict
2024-02-24 16:56:28 +01:00
Alug
cf96e10552
Revert "Refactor Batching code"
...
This reverts commit 8d737c96c9 .
2024-02-24 16:49:04 +01:00
Alug
1d01e1e6cd
Revert "Optimize polygon sorting on batch renderer"
...
This reverts commit 1687fb9120 .
2024-02-24 16:48:14 +01:00
Alug
a5c4759662
disable driftgauge in record attack
...
it actually gives you an advantage over using other clients
record attack should be fair and even
2024-02-24 15:58:47 +01:00
Alug
e7ff1d693b
fix K_GetScreenCoords y clipping
2024-02-24 15:38:32 +01:00
Alug
9b4354a057
rename all of those to not conflict with mods
2024-02-24 14:46:13 +01:00
Alug
51a46ba92c
this aswell
2024-02-23 01:35:49 +01:00
Alug
31c4e0d59f
forgor those aswell
2024-02-23 01:27:52 +01:00
Alug
6b246548c3
raise compile time significantly
2024-02-22 23:58:28 +01:00
Alug
57dda3843a
use the current not old state
...
also add dont interp precip angle if it doesent change
2024-02-22 23:45:56 +01:00
Alug
b04ac14751
remove redundant check
2024-02-22 23:45:53 +01:00
Alug
5ad8497db2
those too
2024-02-22 22:53:10 +01:00
Alug
672f07a5ee
forgor those
2024-02-22 22:46:58 +01:00
Alug
aceffafc4e
fix ternary hell for palette rendering lightlevels
2024-02-22 21:42:28 +01:00
Alug
891b3183ed
dont interpolate unchanging things + remove unused dynslope interp code
2024-02-22 19:55:45 +01:00
Alug
26dd066280
fix conflicts
2024-02-22 01:43:54 +01:00
Alug
157ebdb5fe
Merge remote-tracking branch 'ghg/lua-hudstuff' into lugstuff
2024-02-22 01:39:34 +01:00
Alug
1a18839f82
remove R_PointToAngleEx
...
R_PointToAngle64 does its job better anyways
2024-02-20 21:10:04 +01:00
Alug
e7f8e7628f
I HATE MENUS I HATE MENUS
2024-02-20 18:42:37 +01:00
Alug
07190571a1
lol
2024-02-20 18:40:01 +01:00
Alug
f04d922fca
fix warning
2024-02-20 18:17:25 +01:00
Alug
7fa382d4e9
rename driftgauge cvar and fix nametag rendering bug
2024-02-20 18:12:17 +01:00
Alug
97766710c0
e
2024-02-20 17:37:29 +01:00
Alug
994ee060a7
a
2024-02-20 17:36:05 +01:00
NepDisk
589c27fdcf
Driftgauge flipcam
2024-02-20 17:35:01 +01:00
NepDisk
37a018fda4
Give these tooltips
2024-02-20 17:34:58 +01:00
NepDisk
f49381d1c5
Forgot this lol
2024-02-20 17:34:54 +01:00
Alug
573095bbad
Driftgauge
2024-02-20 17:34:49 +01:00
Alug
0fdcc8e288
some fixes
2024-02-20 17:33:24 +01:00
Alug
03d7e26c3d
oop
2024-02-20 13:18:23 +01:00
Alug
3a5cd835ad
Fix tint equation shader
2024-02-20 13:17:46 +01:00
Alug
47a8f081e9
set currenttex to null if it gets an invalid texture id
2024-02-20 13:17:35 +01:00
Alug
ad8d691c11
kill this
2024-02-20 13:16:50 +01:00
NepDisk
8186696e62
Nametag sightofline fix
2024-02-19 20:35:38 +01:00
Alug
183ec22923
Revert "Revert "Linked list for textures""
...
This reverts commit fe0dabb177 .
2024-02-19 20:26:59 +01:00
Alug
5376995350
add max cap to nametagmaxplayers
2024-02-19 19:02:54 +01:00
Alug
acb6e30fad
dont apply this for players
2024-02-19 18:20:11 +01:00
Alug
fe0dabb177
Revert "Linked list for textures"
...
This reverts commit 7eec58a834 .
2024-02-19 12:15:12 +01:00
NepDisk
194ae46ce8
Remove unused functions that were originally added for nametags
2024-02-19 11:14:49 +01:00
NepDisk
2e9f1bfe90
Fix nametag weight offset for small and minimal
2024-02-19 11:14:46 +01:00
Alug
a82adc4948
Fix nametag limit
2024-02-19 11:14:41 +01:00
Alug
6440c70a38
Zzz...
2024-02-19 01:57:42 +01:00
Alug
748eb07c9a
forgor
2024-02-19 01:57:04 +01:00
Alug
5be2f591d2
ok so this needs to be done for the scaling stuff cool
2024-02-19 01:49:20 +01:00
Alug
f2e4950e89
die
2024-02-19 01:26:01 +01:00
Alug
7444c5b826
remove hpmod stuffs since its not netsafe
2024-02-19 01:02:39 +01:00
Alug
5f6cca68cc
Nametags Rewrites 2
...
contains netunsafe stuff but easy to remove
2024-02-19 00:44:07 +01:00
Alug
3d33e5351b
bruh
2024-02-19 00:13:42 +01:00
Alug
c6e245450d
those are not server commands
...
idk why i threw them there in the first place but those are not needed at all (or even usefull for that matter) for dedicated servers
also moves some stuff to its group
2024-02-19 00:12:11 +01:00
Alug
36854a16b7
Revert "Clean up cvar stuff a little"
...
This reverts commit 6fe87ab05a .
2024-02-19 00:04:25 +01:00
Alug
b4ee8229ee
Revert "more stuff"
...
This reverts commit 150c695979 .
2024-02-19 00:03:27 +01:00
Alug
cf0a3841e8
Revert "those need to be here for some reason"
...
This reverts commit 2efaebcf89 .
2024-02-19 00:03:16 +01:00
Alug
3ebd2257f8
ok i dont want to the new gamma system
...
it looks off honestly
2024-02-18 23:47:42 +01:00
Alug
844d1967cc
i wanna try the new gamma stuff
2024-02-18 22:29:24 +01:00
Alug
dac37f8938
revert those
2024-02-18 22:29:12 +01:00
Alug
dd74bc7c2b
fuckit make the scale even smoler
2024-02-18 22:29:05 +01:00
Alug
7eec58a834
Linked list for textures
2024-02-18 22:28:52 +01:00
Alug
da81998c71
fix up colour cube/saturation/gamma
...
cleans up things, and fixes it not being applied to 3D models and colourmapped sectors when not in palette rendering mode
also adds a new way of handling gamma which can be used if wanted
2024-02-18 20:43:40 +01:00
Alug
d1552e7b71
clean up patch drawers a little
...
esp for software
2024-02-18 19:45:17 +01:00
Alug
c64e10083b
Optimize R_StoreWallRange
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2336?commit_id=a04bef7d39f71cfda1fe85b2ca3a820f95612b06
2024-02-17 22:52:12 +01:00
Alug
43e2be58da
Revert "add an error message here"
...
This reverts commit 44b8a8a0d8 .
2024-02-17 17:31:14 +01:00
Alug
63b60d2546
those too
2024-02-17 16:11:32 +01:00
Alug
91ddc709eb
forgor
2024-02-17 16:09:39 +01:00
Alug
1bcb67ffb9
remove bloat from windows libs + move dlls into dlls folder
...
+ remove msvc project files since they dont work anyways
2024-02-17 15:59:16 +01:00
Alug
976177c244
Revert "Revert "fix the dumbass compiler warning""
...
This reverts commit 69d47a5e53 .
2024-02-17 11:13:07 +01:00
Alug
a37c81a142
Revert "Revert "fix some issues with framebuffer""
...
This reverts commit 6457847633 .
2024-02-17 11:13:04 +01:00
Alug
58de3a35a0
Revert "Revert "Implement framebuffer and renderbuffer objects""
...
This reverts commit b0f5f4338f .
2024-02-17 11:13:00 +01:00
Alug
44b8a8a0d8
add an error message here
...
dunno if we can prevent it from crashing, but atleast its a little more informative
2024-02-17 10:42:16 +01:00
Alug
b0f5f4338f
Revert "Implement framebuffer and renderbuffer objects"
...
This reverts commit d6d70e1525 .
2024-02-17 09:57:38 +01:00
Alug
6457847633
Revert "fix some issues with framebuffer"
...
This reverts commit fcc810f703 .
2024-02-17 09:57:25 +01:00
Alug
69d47a5e53
Revert "fix the dumbass compiler warning"
...
This reverts commit d0b7f6203c .
2024-02-17 09:57:12 +01:00
NepDisk
02177a7794
Nametags Rewrites
2024-02-17 09:11:27 +01:00
Alug
65c15126f1
larger console buffer for high res
2024-02-17 09:10:24 +01:00
Alug
76c78b8e63
remove all this crap
2024-02-16 15:30:18 +01:00
Alug
f63342ff0f
lol
2024-02-16 13:35:30 +01:00
Alug
e3410cf34c
move this
2024-02-16 13:35:25 +01:00
Alug
7a129047e7
i will play this in 8k yes
2024-02-16 09:36:51 +01:00
Alug
343716b7da
make this save
2024-02-15 20:22:05 +01:00
Alug
1687fb9120
Optimize polygon sorting on batch renderer
2024-02-14 21:39:31 +01:00
Alug
3e89057c23
Fix dangling pointer in mapthing after removing mobj
2024-02-14 21:39:20 +01:00
Alug
774587efa6
fix inline warnings
2024-02-14 19:43:44 +01:00
Alug
2dc8bf321e
do this again
2024-02-14 19:27:25 +01:00
Alug
992813d770
Revert "remove mobj realscales"
...
This reverts commit 9f45dabd9c .
2024-02-14 19:27:21 +01:00
Alug
46882dee93
Revert "move this, remove interp things, and add some comments"
...
This reverts commit 47c90f63a8 .
2024-02-14 19:27:18 +01:00
Alug
8bbb7b540f
Revert "forgor"
...
This reverts commit e4ec7484aa .
2024-02-14 19:27:14 +01:00
Alug
f5f1ab036d
Fix segfault when removing mobjs while iterating thinglist
2024-02-14 15:31:06 +01:00
Alug
f15d556c05
fix segfaults when damaging mobj with no painstate and when removing source from ShouldDamage
2024-02-14 15:27:15 +01:00
Alug
570a664db8
Use po2 patches to fix mipmaps
2024-02-14 12:50:40 +01:00
Alug
52f69324d9
better savegame errors
2024-02-14 12:19:38 +01:00
Alug
ea6016b1ba
forgor
2024-02-14 12:00:25 +01:00
Alug
30fcffd63c
move this, remove interp things, and add some comments
2024-02-14 11:44:14 +01:00
Alug
50446bbde4
remove mobj realscales
...
idk those just seem absolutely useless its literally just an alias for mobj scale
2024-02-14 11:42:51 +01:00
Alug
b307033aab
a?
2024-02-14 05:58:04 +01:00
Alug
3e5985833c
Snap to software lightlevel values when using Paletter renderer
...
bye bye smooth fades, here i come 32 light levels
2024-02-13 16:35:10 +01:00
Alug
8421f02aab
e
2024-02-13 12:44:34 +01:00
Alug
b6daafec17
Realloc software lookups for current screen res instead of MAXVID define
...
so the thing just allocs what it needs, so it can perform as good as it can on any resolution
2024-02-13 12:44:05 +01:00
Alug
fc058b669e
better comment
2024-02-13 11:16:00 +01:00
Alug
99214b98b9
set this to 1440p
...
also made a new define for use in the png limits so that can stay at 4k. but having both maxvids allocate things for 4k is not a good thing for software renderer, not that anyone would ever want to run it at 4k anyways
2024-02-13 11:15:14 +01:00
Alug
ab35a44ed9
more revert
2024-02-13 10:57:36 +01:00
Alug
125b82a5bb
forgor
2024-02-13 10:53:38 +01:00
Alug
f294ea157f
more things
2024-02-13 10:50:11 +01:00
Alug
486ae052ef
this stuff too
2024-02-13 10:42:03 +01:00
Alug
53b5442dad
bruh
2024-02-13 10:40:42 +01:00
Alug
507c5f75bd
revert a few things
2024-02-13 10:39:27 +01:00
Alug
0fb72c579e
forgor
2024-02-13 06:16:38 +01:00
Alug
c5d6ac63c5
remove pseudoangle
2024-02-13 06:12:32 +01:00
Alug
a934c76263
revert this
2024-02-12 14:38:47 +01:00
Alug
0098c3bbc0
update SDL2 to v2.30.0
2024-02-12 14:29:49 +01:00
Alug
f3eedc03e6
Add common I_GetSysName function
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2308
2024-02-12 14:23:09 +01:00
Alug
17c71a2528
Change from double to INT64
2024-02-12 14:19:25 +01:00
Alug
d2ecbd7c6e
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-02-12 14:14:49 +01:00
Alug
2ce7dc0c37
update zlib to v1.3.1
...
update zlib to v1.3.1
2024-02-11 16:43:19 +01:00
Alug
b648424c18
add stuff to menu
2024-02-11 15:21:20 +01:00
Alug
301754c857
forgor
2024-02-11 15:10:16 +01:00
Alug
c9a3c4c9b8
only interpolate those if we use the stuff that uses them
2024-02-11 15:05:58 +01:00
Alug
ce0c8b363a
only interpolate pitch, roll, slopepitch and sloperoll when using sprite rotation
2024-02-11 14:51:44 +01:00
Alug
9d6c38004c
toggable mobj subsector interpolation
...
honestly couldnt spot any difference at all
but R_PointinSubsector is quite expensive so making a toggle seems cool
2024-02-11 14:51:14 +01:00
Alug
19a58cc8c6
mobj interp optimization
2024-02-11 14:19:08 +01:00
Alug
d855c39da2
a
2024-02-11 13:45:48 +01:00
Alug
03f4bfecc1
Dont need this
...
I_GetPrecise Precision already gets the high res windows time anyways
2024-02-11 13:42:12 +01:00
Alug
c8d9e4c7b3
add thiis
2024-02-11 09:22:59 +01:00
Alug
cb2b8f2e7c
add it here too
2024-02-11 06:38:45 +01:00
Alug
0272dd4c24
oops
2024-02-11 06:29:28 +01:00
Alug
3b327937c2
use Windows High Precision Timer on Windows builds
...
lul may help with frametime and other stuff
2024-02-11 06:16:45 +01:00
Alug
f8f2f17184
Merge remote-tracking branch 'origin/cvarcleanup' into lugstuff
2024-02-09 15:18:17 +01:00
Alug
2efaebcf89
those need to be here for some reason
...
game complains
2024-02-09 15:12:41 +01:00
Alug
150c695979
more stuff
2024-02-09 15:05:23 +01:00
Alug
6fe87ab05a
Clean up cvar stuff a little
2024-02-09 14:42:55 +01:00
Alug
f6613a5555
proper check for colourized speedometer patches
2024-02-09 12:35:48 +01:00
Alug
947d5c2739
add achiiro speedometer stuffs
2024-02-09 12:07:34 +01:00
Alug
1544706ff4
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-02-09 10:20:21 +01:00
Alug
e121d1a8a1
proper POST request to curl
2024-02-09 10:19:35 +01:00
Alug
badbdbf03f
Clipping and portal stuff
...
idk this actually does not break ante station for some reason
2024-02-09 10:19:18 +01:00
Alug
3b5495b53a
brap
2024-02-07 11:52:04 +01:00
Alug
545027ae64
use this stuff
2024-02-07 11:40:05 +01:00
Alug
91896433f8
fix menu updating + add default to switch
2024-02-07 11:01:53 +01:00
Alug
a60074fc8a
fix menu stuff
2024-02-07 10:49:04 +01:00
Alug
eb82aa14bb
option for small nametags
2024-02-07 10:35:16 +01:00
Alug
cb4b640730
why add the same thing twice?
2024-02-07 09:42:16 +01:00
Alug
266d9a3c71
also turn this off
2024-02-07 09:37:01 +01:00
Alug
7a5a704a15
forgor to comment this out
2024-02-07 09:36:37 +01:00
Alug
29ed8de935
Nametags from Chaoskart
...
https://gitlab.com/Fafabis/kart-chaotic/-/commit/8b4a12e144fbff587ee70c30e7f461900d839650#025e5c90ea9aeb6187b4fe002e0fbb277ef4b33d_7024_7035
2024-02-07 09:35:14 +01:00
Alug
3418cab5de
switchable native keyboard input
...
taken from chaoskart this is completely non invasive
2024-02-07 09:20:36 +01:00
Alug
e2ce015d49
fix for opengl sprite shadow colour
2024-02-07 09:15:17 +01:00
indev
0d0ab3f414
If have libbacktrace, write crash reports from I_Error
2024-02-04 19:08:33 +01:00
Alug
22b5bcc7e1
split cache functions
...
seems to fix a few stutters
2024-02-04 09:21:45 +01:00
indev
34d5d73d7e
Fix battle playing wrong ending music sometimes
2024-02-04 08:31:10 +01:00
Alug
7ae4441731
Add cvar gr_maxinterpdist, which allows to control max distance on which mobjs will be interpolated
2024-02-04 08:26:54 +01:00
Alug
d0b7f6203c
fix the dumbass compiler warning
2024-02-04 07:56:55 +01:00
Alug
3757f3ae57
smol cleanup
2024-02-04 07:46:25 +01:00
Alug
8f9366da5a
Zzz...
2024-02-04 07:12:26 +01:00
Alug
b8e55f87a9
little portal cleanup
2024-02-04 06:48:58 +01:00
Alug
b469f70e02
experimental fast sprite sorting
2024-02-04 06:28:07 +01:00
Alug
6df69b24db
Revert "DSDADoom shenanigans"
...
This reverts commit c7931ca69c .
2024-02-02 16:49:08 +01:00
Alug
0133a5eb23
Revert "do this"
...
This reverts commit 7f93bc305d .
2024-02-02 16:48:26 +01:00
Alug
86712c2c48
fix compiler warning
2024-02-02 02:59:08 +01:00
Alug
5195caa3c6
Remove Build2DMipmaps and GLU library stuff
...
gluBuild2DMipmaps is just broken anyways
and it was the only thing used from the GLU library aswell so can remove things in favor of better solutions
having a pc with opengl 1.4 should be a given by now
2024-02-01 22:26:06 +01:00
Alug
684ad38d4b
add an I_Error for when opengl is started on unsupported hardware or driver
2024-02-01 19:57:23 +01:00
Alug
c6d292a3d7
e
2024-02-01 04:47:55 +01:00
Alug
246414a735
move that where it belongs
2024-02-01 04:42:28 +01:00
Alug
429bcffaf8
dont need to extra check for this actually
2024-02-01 03:48:17 +01:00
Alug
d92e7b138c
fix sprite roll angles in software for sprites with one rotation frame
...
ofc only when the rotation stuff is set to rotate everything not just the player
also changes that the shadows only rotate on that setting unless someone wants it and wants really dumb checks for it
2024-02-01 03:46:15 +01:00
Alug
cd51ad2a25
remove non working fisheye lens code
...
remnants of birdhouse, this was never finished nor does it work
2024-02-01 03:26:33 +01:00
Alug
8732825404
fix software shadow rotation in the worst way possible kek
2024-02-01 03:25:58 +01:00
Alug
fc37cdcc95
use it for camang
2024-02-01 02:39:27 +01:00
Alug
2435ec9515
Revert "batch this stuff too for portals"
...
This reverts commit 2df4738af2 .
2024-02-01 02:11:21 +01:00
Alug
623fab8ea8
Revert "clean this up a little"
...
This reverts commit 99c9d921e3ab3ee3fde3dcf141e20323e064902a.
2024-02-01 02:03:23 +01:00
Alug
e063345c4b
Revert "oops"
...
This reverts commit 59b6987bf2e9f00bfdf50b268f0ec61e735dfe0e.
2024-02-01 02:03:10 +01:00
Alug
27533a1dcd
Revert "replace check"
...
This reverts commit 36eaaee202c4d1f7e86dd2b24dcfe5573ac2f280.
2024-02-01 02:03:00 +01:00
Alug
d232e0e2c6
oops
2024-02-01 01:55:04 +01:00
Alug
0475489e24
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-31 16:58:09 +01:00
Alug
34b35db27f
Interpolate polyobjects properly for the software renderer
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2284/
2024-01-31 03:28:00 +01:00
Alug
b47bc12e48
change x scale a little
2024-01-30 21:43:44 +01:00
Alug
4d102dcf68
similar scale to old speedo
2024-01-29 23:08:19 +01:00
Alug
a8c9663200
ok i can just do it like this lol
...
now its good finally
2024-01-29 22:23:04 +01:00
Alug
57660cc5af
fix 1 pixel gap
...
i hate maths
2024-01-29 22:13:54 +01:00
Alug
c459e918af
prep some speedometer stuff
2024-01-29 22:01:16 +01:00
Alug
962abba1b2
Buffer API is OpenGL 1.5, so can be used in STATIC_OPENGL
...
https://git.do.srb2.org/STJr/SRB2/-/commit/623629b04ab72071e6ea4f0c4a3245e6cde72e2c
2024-01-29 18:19:01 +01:00
Alug
5297d18f92
ugh whyyyy
2024-01-29 18:08:18 +01:00
Alug
7853e48a6f
update libopenmpt libs
2024-01-29 18:07:35 +01:00
Alug
303d87f69d
update libgme
2024-01-29 15:59:48 +01:00
Alug
9dcdc9500d
Revert "bruh wtf"
...
This reverts commit 493091cd66 .
2024-01-29 14:43:12 +01:00
Alug
7723bafff6
replace check
2024-01-29 04:38:26 +01:00
Alug
d74a89c6c1
oops
2024-01-29 04:11:21 +01:00
Alug
cce443be0b
clean this up a little
2024-01-29 04:08:14 +01:00
Alug
81fa3d27bf
uuuuuuuhhh
2024-01-29 03:56:43 +01:00
Alug
493091cd66
bruh wtf
2024-01-28 22:07:49 +01:00
Alug
c75f5ee961
use this for portal clipping too
2024-01-28 19:33:45 +01:00
Alug
083e0ca2e0
dont need this anymore
2024-01-28 19:19:16 +01:00
Alug
79bd89016c
dont need it as an extra file
2024-01-28 19:16:04 +01:00
Alug
eca7e38763
Zzz...
2024-01-28 19:15:14 +01:00
Alug
b5cbfb970f
forgor
2024-01-28 18:58:52 +01:00
Alug
74e1cafd9d
this too
2024-01-28 18:57:19 +01:00
Alug
ee7381b67d
revert this
2024-01-28 18:56:10 +01:00
Alug
7f93bc305d
do this
2024-01-26 02:44:37 +01:00
Alug
c7931ca69c
DSDADoom shenanigans
...
R_PointToPseudoAngle seems rather promising
2024-01-26 02:28:07 +01:00
Alug
90f06a3289
a little better solution still bad lmao
2024-01-26 00:04:42 +01:00
Alug
0e344a7e02
screw it ill just do this
2024-01-25 23:40:37 +01:00
Alug
3f91a4e908
i want a small hud
2024-01-25 23:04:21 +01:00
Alug
fb443c58ab
add "Reset All" button to hud offset menu
2024-01-25 23:02:01 +01:00
Alug
b233514b58
more offset
2024-01-25 16:48:16 +01:00
Alug
11615171d1
Revert "Optimize polygon sorting on batch renderer"
...
This reverts commit ad86e7f34a .
2024-01-25 14:57:49 +01:00
Alug
2df4738af2
batch this stuff too for portals
2024-01-25 04:06:54 +01:00
Alug
9e62f5bd52
make the ripple thing toggable for now
2024-01-25 03:46:26 +01:00
Alug
80349ae8ee
a
2024-01-25 03:24:32 +01:00
Alug
06d51f2648
only apply fog if it is water only
...
ugh
2024-01-25 02:59:30 +01:00
Alug
fcc810f703
fix some issues with framebuffer
2024-01-25 00:35:31 +01:00
Alug
d6d70e1525
Implement framebuffer and renderbuffer objects
...
wew https://git.do.srb2.org/Lactozilla/SRB2/-/commit/211c3720de8dda8e2a896b6887eb4bbbd991ebbf
2024-01-24 22:35:30 +01:00
Alug
e5f79e061c
rotating shadows
...
uuuuhhh
2024-01-24 18:13:50 +01:00
Alug
ad3c0a1ffd
attempt at fixing some issues
...
it fixed some things but broke the underwater ripple if the water is on a fof
2024-01-24 17:09:15 +01:00
Alug
2ef935198a
more pronounced ripple
...
eeeh kinda close ig
2024-01-24 03:41:02 +01:00
Alug
dc3b9c648a
make this a little neater
2024-01-24 03:09:09 +01:00
Alug
2d610d40b6
add better check for colormap stuff
...
so it only gets applied where it should (i hope)
works on tiled byway tho
2024-01-24 03:00:31 +01:00
Alug
d2c686f48b
attempt at making ogl water ripple better
...
well all it does is ripple the floor below the water fof lmao no idea how i would implement this for the walls too
2024-01-24 02:43:27 +01:00
Alug
5cafec3262
uuuh oops dont do it for non transparent fofs
2024-01-24 00:26:36 +01:00
Alug
580c42d167
more offset ugh
2024-01-23 21:33:15 +01:00
Alug
dcfec35e57
remove this since its not needed anymore
2024-01-23 21:24:18 +01:00
Alug
701bac6e11
alr add more offset
...
kinda dumb way but itll do for now until i figure out smth better
2024-01-23 21:21:03 +01:00
Alug
0c46d593d8
attempt at making colormapped translucent fofs more accurate
2024-01-23 18:55:19 +01:00
Alug
b867de0667
Zzz...
2024-01-23 15:50:51 +01:00
Alug
e207b75c7a
Revert "add pMasterPalette"
...
This reverts commit dfb05b9d39 .
2024-01-23 15:49:00 +01:00
Alug
fc3df5bfe4
Revert "attempt at unmangling lighttables and colormaps"
...
This reverts commit 19702daecd .
2024-01-23 06:41:25 +01:00
Alug
dfb05b9d39
add pMasterPalette
2024-01-23 05:33:04 +01:00
Alug
19702daecd
attempt at unmangling lighttables and colormaps
...
ugh i hope this doesent break
2024-01-22 23:28:34 +01:00
Alug
dde4b4df3b
merge conflict moment
2024-01-22 21:32:38 +01:00
Alug
c070930a8c
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-22 21:31:04 +01:00
Alug
d36b5f7c59
add hw_shaders to cmakelist
2024-01-22 18:41:00 +01:00
Alug
0e517907ce
change this
2024-01-22 18:32:13 +01:00
Alug
739e9716ab
add toggle for custom shaders
...
it seems better like this, atleast thats how hannu set it up
2024-01-22 18:25:51 +01:00
Alug
0e5972d895
shaderstate should be set here
2024-01-22 18:15:53 +01:00
Alug
71975658ca
split hw_shader files
2024-01-22 18:14:14 +01:00
Alug
6572e29a64
OpenGL shader code rearrangement and shader pre-preprocessor
...
https://git.do.srb2.org/STJr/SRB2/-/commit/de37df1be04e9d1dfb11083a9585eb6ac1761633?merge_request_iid=1516
wew
2024-01-22 16:57:47 +01:00
indev
41b21c2a0c
Fix sound, music, and midi music toggles
2024-01-22 13:48:13 +01:00
Alug
2b19d2e6de
Revert "revert this"
...
This reverts commit 5bce9d5abf .
2024-01-22 13:48:10 +01:00
Alug
f99aa3459c
e
2024-01-22 13:48:00 +01:00
Alug
5bce9d5abf
revert this
...
this caused sound and music to alyways toggle themselves on after a restart + other issues
2024-01-22 02:55:40 +01:00
Alug
abe102649e
forgor
2024-01-22 02:52:33 +01:00
Alug
424fcdc63a
change some memfree names
2024-01-22 02:46:59 +01:00
Alug
a3fd451c74
3D model texture Z_tag
2024-01-22 02:43:55 +01:00
Alug
731fd113d2
more cleanup
2024-01-22 02:34:07 +01:00
Alug
c9ca1bda5c
Texture buffer for non RGBA to RGBA conversion
2024-01-22 02:09:55 +01:00
Alug
58ea822050
Remove 3Dfx and glide things
...
gr_rounddown toggle did nothing instead the game always resized textures, now it wont, seems like this makes stutters on mapload less
2024-01-22 01:03:48 +01:00
Alug
671484d6f9
fix merge conflict
2024-01-21 16:41:38 +01:00
Alug
e6e74194bc
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-21 16:40:12 +01:00
Alug
04432c8368
simplify this uuh
2024-01-21 15:43:46 +01:00
Alug
6782876c0c
i hate this so i just make it a boolean
...
confused the heck outta me so just do it like this lmao
2024-01-21 15:31:07 +01:00
Alug
4b09e92d7c
grr
2024-01-20 17:24:11 +01:00
Alug
3266f64fb9
oops
2024-01-20 17:03:05 +01:00
Alug
2a9886e698
cleanup s_sound a little + fix onchanges
2024-01-20 17:01:48 +01:00
Alug
1319e3a811
make NO_MIDI=0 compile
2024-01-20 16:52:46 +01:00
Alug
6cbb40f874
make some things static + remove cdmusic leftovers
2024-01-20 15:43:42 +01:00
Alug
07fd6a3ad4
make sound precaching useful at all
...
so it also precaches addon sounds and all
thx indev for help <3
2024-01-20 15:39:25 +01:00
Alug
8891869013
fix issues with sound precaching
...
adds a check if sounds have been previously loaded already
also makes it useful at all by not freeing soundsfx data on each mapload when its enabled
also adds an onchange so toggling it either caches all sounds again or frees them
2024-01-20 13:58:11 +01:00
Alug
04fc735e12
Merge remote-tracking branch 'origin/morenewpalshader' into lugstuff
2024-01-19 19:37:07 +01:00
Alug
7b9860f1be
Merge remote-tracking branch 'origin/morenewpalshader' into lugstuff
2024-01-19 19:25:24 +01:00
Alug
38f26a2bd8
simplify setpalette
2024-01-19 18:07:32 +01:00
Alug
a9750f8cff
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-19 12:29:20 +01:00
Alug
ad86e7f34a
Optimize polygon sorting on batch renderer
...
again
2024-01-19 02:14:20 +01:00
Alug
496435ef3b
dont check for precip in sprite sorting + smol cleanup
2024-01-19 02:14:04 +01:00
Alug
5275b31e7e
smol stuffs
2024-01-19 00:39:07 +01:00
Alug
e341991703
Add toggle for horizonlines
2024-01-18 20:53:59 +01:00
Alug
fb65496507
use fudges from newer paletter shader
2024-01-18 16:49:10 +01:00
Alug
abe52ba440
make thundershield follow player offset
...
this allows the to stay on the player when saltyhopping etc.
2024-01-18 15:21:20 +01:00
Alug
ee5d097201
Prevent FOF alpha from wrapping around in OpenGL
2024-01-18 15:07:29 +01:00
Alug
0ea182d04f
change this
2024-01-18 14:12:27 +01:00
Alug
8d737c96c9
Refactor Batching code
...
from Hannu Hanhi
https://git.do.srb2.org/STJr/SRB2/-/commit/707687beea50a2bfcc14638e923ac516195351b1?merge_request_iid=1774
2024-01-17 18:30:53 +01:00
Alug
5c93b90c2e
Merge remote-tracking branch 'origin/batching-stuff' into lugstuff
2024-01-17 18:16:06 +01:00
Alug
41bee850da
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-17 14:59:21 +01:00
Alug
416c2a9e9d
Merge remote-tracking branch 'origin/planestuff2' into lugstuff
2024-01-17 12:42:59 +01:00
Alug
8fa9fccc79
Revert "use malloc here"
...
This reverts commit 75d1076bbe .
2024-01-17 12:42:56 +01:00
Alug
c5a4071a06
Revert "Move water ripple spanfunc out of r_plane + tilted water support"
...
This reverts commit 139d937c86 .
2024-01-17 12:42:48 +01:00
Alug
930e48ad39
Revert "Plane optimization and cleanup"
...
This reverts commit db61bfb568 .
2024-01-17 12:42:39 +01:00
Alug
868678f321
Revert "Revert "Revert "Fix vibing slope planes"""
...
This reverts commit 8530b6512c .
2024-01-17 12:42:34 +01:00
Alug
8530b6512c
Revert "Revert "Fix vibing slope planes""
...
This reverts commit 2a5f487e5f .
2024-01-17 12:32:50 +01:00
Alug
2a5f487e5f
Revert "Fix vibing slope planes"
...
This reverts commit 82562bc20d .
2024-01-17 12:31:28 +01:00
Alug
141f6c51dc
Revert "optimize plane stuff even more"
...
This reverts commit 120def9676 .
2024-01-17 12:31:24 +01:00
Alug
1fc9492b30
Revert "Use floating point trig in R_SetSlopePlane"
...
This reverts commit 3555783284 .
2024-01-17 12:31:13 +01:00
Alug
65782d3d75
Revert "more changes"
...
This reverts commit cb6d657c03 .
2024-01-17 12:31:08 +01:00
Alug
b5cb6dfb9d
Revert "forgoer"
...
This reverts commit f476befc4b .
2024-01-17 12:31:03 +01:00
Alug
6667e4b8bc
Revert "forgor R_GetSlopeZAt"
...
This reverts commit 4a94939d4f .
2024-01-17 12:30:58 +01:00
Alug
5e2492a930
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-17 12:19:30 +01:00
Alug
4f07372e0f
(hopefully) fix overflow in R_DrawRepeatMaskedColumn
...
well this fixes the game hanging in software renderer on Marsh´s Marble Zone
2024-01-17 12:11:32 +01:00
Alug
80a1a97083
Revert "Revert "Revert "Localskins on replays"""
...
This reverts commit 12059955e5 .
2024-01-16 16:44:41 +01:00
Alug
204476c55d
Revert "Hopefully fix the localskin replay issues 🙏 "
...
This reverts commit 8fab258778 .
2024-01-16 16:44:38 +01:00
hayaunderscore
8fab258778
Hopefully fix the localskin replay issues 🙏
2024-01-16 16:35:39 +01:00
Alug
12059955e5
Revert "Revert "Localskins on replays""
...
This reverts commit d3e5dfc346 .
2024-01-16 16:35:33 +01:00
Alug
3ca1f957ba
fix ogl shearing with flipcam
2024-01-16 16:22:30 +01:00
Alug
b11362aec1
remove the extra screentex and apply palshader directly to finaltex
...
theres basically barely any difference, even in the fades theres very little, and it just cost so freaking much performance
however, ill keep the revamped screentex setup as this it allows us to keep the better fadescreen background for menus
2024-01-15 20:12:35 +01:00
Alug
75630df10e
readd oldpal
...
for performance reasons its better
2024-01-15 19:36:37 +01:00
Alug
4d93abb7ac
do this a little better
2024-01-15 17:44:07 +01:00
Alug
731943f980
ensure consistent shader state
2024-01-15 16:50:20 +01:00
Alug
265dc1f296
Light table support for HWR_FadeScreenMenuBack
2024-01-15 16:29:01 +01:00
Alug
c449ffcc98
remove gr_oldpal for now
2024-01-15 16:23:19 +01:00
Alug
34500d32d0
paletterenderer screentex stuff again
...
this didnt really work like it shouldve
so ill keep it here for now
2024-01-15 16:17:17 +01:00
Alug
d3e5dfc346
Revert "Localskins on replays"
...
This reverts commit e1f821e121 .
2024-01-15 15:51:28 +01:00
Alug
8ed11107eb
remove Shader_Load as Shader_SetUniforms literally did the same thing
2024-01-15 15:10:02 +01:00
Alug
2f51108783
fix lighttable batching for new batching and palshader code
2024-01-15 15:09:36 +01:00
Alug
2667a66419
Merge remote-tracking branch 'origin/batching-stuff' into lugstuff
2024-01-15 14:27:10 +01:00
Alug
0fd073f2f0
Merge remote-tracking branch 'origin/batching-stuff' into lugstuff
2024-01-15 14:18:10 +01:00
Alug
840cf4e00a
Revert "Revert "Optimize HWR_RenderBatches polygon sorting""
...
This reverts commit a36e633555 .
2024-01-15 14:15:26 +01:00
Alug
d5d99f94b7
cap flashpals again
...
well it often resulted in flashpals that just made stuff so badly visable lmao
2024-01-15 11:38:09 +01:00
Alug
dea19e4416
forgor R_GetSlopeZAt
2024-01-15 11:20:54 +01:00
Alug
f7612d7398
forgoer
2024-01-15 11:17:19 +01:00
Alug
e39182607e
more changes
2024-01-15 11:16:16 +01:00
Alug
79f1febbce
Use floating point trig in R_SetSlopePlane
2024-01-15 11:10:12 +01:00
Alug
120def9676
optimize plane stuff even more
2024-01-15 11:09:07 +01:00
Alug
82562bc20d
Fix vibing slope planes
2024-01-15 10:44:43 +01:00
Alug
1c51361120
Plane optimization and cleanup
...
sned help
https://git.do.srb2.org/STJr/SRB2/-/commit/c07c80fd9e626f15b4d84d1766f8963e089d295a
2024-01-15 10:40:51 +01:00
Alug
c07e79deb7
Move water ripple spanfunc out of r_plane + tilted water support
...
idk man
2024-01-15 10:18:13 +01:00
Alug
81cb1111b4
use malloc here
2024-01-15 09:36:35 +01:00
Alug
369307181e
this can be static
2024-01-15 08:35:45 +01:00
Alug
7881e04e6b
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-15 08:26:13 +01:00
Alug
66a72eb1be
Copy Interpolation to Shields and Overlays, Splitscreen Overlays
...
from https://git.do.srb2.org/STJr/SRB2/-/merge_requests/1992
2024-01-15 08:25:54 +01:00
Alug
ad77f11859
Optimize polygon sorting on batch renderer
...
from https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2253
again lul
2024-01-15 00:31:29 +01:00
Alug
96d177876f
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-14 23:50:14 +01:00
Alug
dc7392f86b
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-14 22:57:24 +01:00
Alug
6f6252b6f8
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-14 22:50:11 +01:00
Alug
20b32df2c6
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-14 22:13:42 +01:00
Alug
d413d02bf7
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-14 21:38:49 +01:00
Alug
426c0366cc
Merge remote-tracking branch 'origin/newpalshader' into lugstuff
2024-01-13 16:12:04 +01:00
Alug
d3d3655580
Merge remote-tracking branch 'origin/crash-log-mention' into lugstuff
2024-01-13 12:05:55 +01:00
Alug
d4a011ee6d
Merge remote-tracking branch 'origin/addfilelocal-load-animdefs' into lugstuff
2024-01-12 13:37:17 +01:00
Alug
b08118734e
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-12 13:37:14 +01:00
indev
41ee6de784
Make non-important files still load textures and animdefs
2024-01-12 15:35:24 +03:00
hayaunderscore
139d2e6be8
Localskins on replays
2024-01-12 12:26:21 +01:00
Alug
a866461b0a
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-11 18:46:14 +01:00
Alug
6f61331d46
Merge remote-tracking branch 'origin/newpalshader' into lugstuff
2024-01-11 18:46:12 +01:00
Alug
7731ca9fb2
Merge remote-tracking branch 'origin/newpalshader' into lugstuff
2024-01-11 09:53:47 +01:00
Alug
3de0c4f5d8
Merge remote-tracking branch 'origin/newpalshader' into lugstuff
2024-01-11 01:10:04 +01:00
Alug
2e602f8861
Revert "Revert "just show text instead of miscoloured boxes""
...
This reverts commit 7072a50060 .
2024-01-11 00:50:36 +01:00
Alug
1a7d92a082
Revert "Revert "fix some things""
...
This reverts commit a65e586de5 .
2024-01-11 00:50:26 +01:00
Alug
5aa2a0c821
Revert "Revert "Merge remote-tracking branch 'origin/gammastuff' into lugstuff""
...
This reverts commit a9d7ca3332 .
2024-01-11 00:50:17 +01:00
Alug
4f2328b8dc
Merge remote-tracking branch 'origin/newpalshader' into lugstuff
2024-01-11 00:47:24 +01:00
Alug
e929e524a3
Merge remote-tracking branch 'origin/newpalshader' into lugstuff
2024-01-10 14:18:45 +01:00
Alug
e6b9f18d3d
Merge remote-tracking branch 'origin/newpalshader' into lugstuff
2024-01-10 14:14:53 +01:00
Alug
7f197ef84e
Merge remote-tracking branch 'origin/newpalshader' into lugstuff
2024-01-10 13:52:26 +01:00
Alug
a9d7ca3332
Revert "Merge remote-tracking branch 'origin/gammastuff' into lugstuff"
...
This reverts commit 9aca8438a2 , reversing
changes made to c2d37dfb61 .
2024-01-10 13:51:51 +01:00
Alug
a65e586de5
Revert "fix some things"
...
This reverts commit 69ffee271d .
2024-01-10 13:51:46 +01:00
Alug
7072a50060
Revert "just show text instead of miscoloured boxes"
...
This reverts commit fc1a367c2e .
2024-01-10 13:51:43 +01:00
Alug
fc1a367c2e
just show text instead of miscoloured boxes
2024-01-09 14:27:05 +01:00
Alug
3b376d85d4
fix some things
2024-01-09 14:19:36 +01:00
Alug
9aca8438a2
Merge remote-tracking branch 'origin/gammastuff' into lugstuff
2024-01-09 14:09:56 +01:00
Alug
c2d37dfb61
use og values for pal
2024-01-09 13:38:24 +01:00
Alug
3c3bd0f0ea
stuff
2024-01-09 13:25:59 +01:00
Alug
958db336b7
change this
2024-01-09 13:23:54 +01:00
Alug
342d570b3b
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-08 09:07:24 +01:00
Alug
67457c25df
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-08 08:54:08 +01:00
Alug
a98d46f8a8
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-08 08:51:05 +01:00
Alug
b2fca84b15
Zzz...
2024-01-07 08:25:49 +01:00
Alug
2e31169738
use fudge defines + remove wall and floor shader
...
both are now consilidated ( i have no idea how to spell that) into doom_colormap shader
2024-01-06 08:11:57 +01:00
Alug
4cda2c8093
use srb2´s sky shader
...
also its finally a defined shader now + move default fragment shader to the top
2024-01-06 08:07:11 +01:00
Alug
73b4e8a988
change this
2024-01-06 04:57:18 +01:00
Alug
82dbfb4379
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-06 01:15:05 +01:00
Alug
0e2ff2390a
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-05 21:56:11 +01:00
Alug
220d5db739
optimize camera mobj z stuff lol
...
idk wanna see if this does anything
2024-01-05 06:40:16 +01:00
Alug
212d475f50
fix menu fade screen background using wrong things in palshader
2024-01-05 01:23:05 +01:00
Alug
b7fbd0433f
little changes to palshader
...
use gl_texture 2 in postprocess like srb2s palshader does it
also disable depthtest for screentextures in palshader mode
2024-01-05 00:53:19 +01:00
Alug
d28dd96aa0
revert this
2024-01-05 00:22:13 +01:00
Alug
0e46f91c51
change order of those
2024-01-05 00:21:51 +01:00
Alug
d6dabacb05
wöter...
2024-01-04 23:31:55 +01:00
Alug
4363473955
hehe funky colours
2024-01-04 23:11:46 +01:00
Alug
7e5fd4e290
Merge remote-tracking branch 'origin/compilation-warnings-fix' into lugstuff
2024-01-03 20:02:35 +01:00
Alug
c30a0cd4f1
Merge remote-tracking branch 'origin/compilation-warnings-fix' into lugstuff
2024-01-03 20:00:34 +01:00
Alug
98d56a38f5
Merge remote-tracking branch 'origin/compilation-warnings-fix' into lugstuff
2024-01-03 19:45:14 +01:00
Alug
f26e95e7c9
Merge remote-tracking branch 'origin/compilation-warnings-fix' into lugstuff
2024-01-03 18:24:19 +01:00
Alug
f39e1a9b70
wöter 2
2024-01-03 02:24:15 +01:00
Alug
1d5b531ba3
Revert "uuuh refactor batching a little + port Optimize polygon sorting"
...
This reverts commit d757e82e3f .
2024-01-02 22:21:25 +01:00
Alug
a90bd08405
Revert " Avoid batching skybox and horizon lines"
...
This reverts commit b5fbaaa2b9ae91877c7c6ad3602956d677fa6e0c.
2024-01-02 22:21:21 +01:00
Alug
1cbb726cab
Merge branch 'lugstuff' of https://github.com/Indev450/SRB2Kart-Saturn into lugstuff
2024-01-02 22:13:17 +01:00
Alug
ce61d00dcf
fix inline warnings
2024-01-02 22:13:13 +01:00
indev
2d92b798c6
Fix warnings related to boolean glib getters/setters
2024-01-03 00:10:28 +03:00
Alug
cc62164a7c
Revert "Revert "Merge remote-tracking branch 'origin/Saturn-Next-EnumLib' into lugstuff""
...
This reverts commit 142540e263 .
2024-01-02 21:08:03 +01:00
Alug
af510bce93
inline deez nuts
2024-01-02 21:07:02 +01:00
Alug
4ba60bedcd
AAAAAaaa
2024-01-02 20:36:32 +01:00
Alug
583bf26129
wöter
2024-01-02 20:36:14 +01:00
Alug
d8c3623141
Avoid batching skybox and horizon lines
2024-01-02 20:35:26 +01:00
Alug
2cd0875da6
lol
2024-01-02 06:19:31 +01:00
Alug
73d0848f7e
(hopefully) fix horizonlines
2024-01-02 03:49:32 +01:00
Alug
d757e82e3f
uuuh refactor batching a little + port Optimize polygon sorting
...
uhhh https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2253
2024-01-02 01:02:42 +01:00
Alug
007238e7dd
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-02 00:09:27 +01:00
Alug
944e019020
let indev compile this branch uwu
2024-01-01 21:28:03 +01:00
Alug
634f8897b4
Revert "uuuh refactor batching a little + port Optimize polygon sorting"
...
This reverts commit 7651d31c50 .
2024-01-01 21:19:14 +01:00
Alug
7651d31c50
uuuh refactor batching a little + port Optimize polygon sorting
...
uhhh https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2253
2024-01-01 20:44:19 +01:00
Alug
1702873ab1
Revert "attempt at making water shader ripple more accurate to software"
...
This reverts commit 8ab37040db .
2024-01-01 18:55:41 +01:00
Alug
44e7d5249c
dont pack my memories
2024-01-01 18:30:06 +01:00
Alug
8ab37040db
attempt at making water shader ripple more accurate to software
2024-01-01 18:29:04 +01:00
Alug
ac203b0ccb
Merge remote-tracking branch 'origin/compilation-warnings-fix' into lugstuff
2024-01-01 17:08:31 +01:00
Alug
557546c9c3
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2024-01-01 17:08:18 +01:00
Alug
52a94dbe78
try and make p-speedometer a little less painful to look at
2023-12-31 03:39:24 +01:00
Alug
f4ffc19981
lil k_kart cleanup
...
uh
2023-12-31 03:12:35 +01:00
Alug
ac3c117b03
uh
2023-12-31 00:12:11 +01:00
Alug
1ac008ab02
Merge remote-tracking branch 'origin/compilation-warnings-fix' into lugstuff
2023-12-31 00:07:39 +01:00
Alug
58ac86e3bf
noone cares about c90 mixed declarations lmao
2023-12-30 21:51:23 +01:00
Alug
1daf06858b
Revert "(maybe?) fix net issues on server join"
...
This reverts commit af40bdb11b .
2023-12-30 21:41:33 +01:00
Alug
a4e8ce7f01
Fix most of compilation warnings
2023-12-30 15:55:07 +01:00
Alug
ed6e16cdce
uuh
2023-12-30 01:20:09 +01:00
Alug
57bb92a36c
this didnt work out lmao
2023-12-30 00:55:24 +01:00
Alug
142540e263
Revert "Merge remote-tracking branch 'origin/Saturn-Next-EnumLib' into lugstuff"
...
This reverts commit 5dab606980 , reversing
changes made to 661dfde6af .
2023-12-29 23:24:08 +01:00
Alug
5a17430747
Revert "Merge remote-tracking branch 'origin/moreopengl' into lugstuff"
...
This reverts commit a6015e4647 , reversing
changes made to fcbe95447a .
2023-12-29 22:49:51 +01:00
Alug
23c84a9e96
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2023-12-29 22:49:27 +01:00
Alug
6bb9dcc216
revert that part it stuttered race conditions or somethjing lmao
2023-12-29 15:36:12 +01:00
Alug
1901e4dbdc
fuckit idk lmoa
2023-12-29 14:23:29 +01:00
Alug
1657f769da
Revert "dont need that"
...
This reverts commit f274ed3fd8 .
2023-12-29 13:11:43 +01:00
Alug
c82eb489fe
give me all that shit yes
2023-12-29 01:47:27 +01:00
Alug
9f05befd70
i have no idea what im doing lmao
2023-12-29 01:36:33 +01:00
Alug
f274ed3fd8
dont need that
2023-12-29 01:35:50 +01:00
Alug
f6e027abcb
Merge remote-tracking branch 'origin/gl-noencore-effect-fix' into lugstuff
2023-12-27 15:30:13 +01:00
Alug
a92114a854
Merge remote-tracking branch 'origin/gl-noencore-effect-fix' into lugstuff
2023-12-27 15:04:36 +01:00
Alug
ffb84705d3
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2023-12-27 14:40:50 +01:00
Alug
2f8366b6f9
-flto breaks crashlogs it seems lol
2023-12-24 20:28:57 +01:00
Alug
a6f062c126
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2023-12-24 19:41:15 +01:00
Alug
41c24f3bc9
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2023-12-24 19:13:15 +01:00
Alug
af40bdb11b
(maybe?) fix net issues on server join
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2238?commit_id=d79d22de63c5b84e3e0f4d737af81f74321dd80d
needs alot of testing
2023-12-24 00:15:47 +01:00
Alug
00a69e6aed
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2023-12-23 17:24:07 +01:00
Alug
04b2d784ce
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2023-12-22 20:28:28 +01:00
Alug
a5de51b039
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2023-12-21 13:54:33 +01:00
Alug
4a80e9f20f
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2023-12-20 23:06:24 +01:00
Alug
8676769a8f
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2023-12-20 17:53:09 +01:00
Alug
2f8c7a81ca
Revert "Merge remote-tracking branch 'origin/thinkercache' into lugstuff"
...
This reverts commit 760fe392a8 , reversing
changes made to 5dab606980 .
2023-12-20 08:35:16 +01:00
Alug
ac11af6048
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2023-12-20 06:09:25 +01:00
Alug
7c558802a4
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2023-12-20 05:16:05 +01:00
Alug
5a516aa1ad
dont need that
2023-12-19 21:52:21 +01:00
Alug
4d1b6ed974
Merge remote-tracking branch 'origin/Saturn-Next' into lugstuff
2023-12-19 20:20:57 +01:00
Alug
e8e6bb0499
Revert "test stuff"
...
This reverts commit 085efaa605 .
2023-12-19 19:41:55 +01:00
Alug
58f94666d1
timeout sticker uses wrong patch
2023-12-19 18:58:10 +01:00
Alug
085efaa605
test stuff
...
very crude, console scream at me if those are botched
most likely not the issue but whatever
2023-12-19 18:57:47 +01:00
Alug
6028e392f0
dont prep shaders if theyre uneeded
2023-12-19 17:34:15 +01:00
Alug
fa67dd74a0
huehue
2023-12-19 16:28:51 +01:00
Alug
cb734b50c3
bru
2023-12-19 16:24:33 +01:00
Alug
087e58b88b
bugger off discord rpc
2023-12-19 16:21:35 +01:00
Alug
78b9d67aaa
im not on pentium 4
2023-12-19 16:17:15 +01:00
Alug
a6015e4647
Merge remote-tracking branch 'origin/moreopengl' into lugstuff
2023-12-19 16:14:18 +01:00
Alug
fcbe95447a
Merge remote-tracking branch 'origin/multithreadshit' into lugstuff
2023-12-19 16:13:44 +01:00
Alug
760fe392a8
Merge remote-tracking branch 'origin/thinkercache' into lugstuff
2023-12-19 16:11:54 +01:00
Alug
5dab606980
Merge remote-tracking branch 'origin/Saturn-Next-EnumLib' into lugstuff
2023-12-19 16:11:36 +01:00
indev
c265575dfd
Fix config
2023-11-16 22:14:18 +03:00
alufolie91
4a1f526ac6
multithread exec command and some filesearch/add stuff
...
hey it actually improves some things alot
esp the loading addons stage when joining a server
2023-11-16 19:14:48 +01:00
Alug
497b633661
Revert "why did i remove this back then??"
...
This reverts commit 91ed5c4871 .
2023-11-15 09:59:24 +01:00
alufolie91
c7f54a98e0
Merge remote-tracking branch 'origin/Saturn-Next' into moreopengl
2023-11-14 21:16:47 +01:00
alufolie91
7da8c20409
remove that stuff
2023-11-14 21:16:04 +01:00
Alug
116328c7bf
attempt at linked list for textures
...
also changes to caching handling a bit
seems to have helped with stuck colors a bit
2023-11-08 02:50:17 +01:00
Alug
bd68fef4a2
Zzzzz...
2023-11-08 00:38:48 +01:00
alufolie91
7759d56ad3
Fix uninitialized reads in PreparePolygon
...
https://git.do.srb2.org/STJr/SRB2/-/merge_requests/1392
2023-11-08 00:17:42 +01:00
Alug
9c7020a369
GRRRRRR not GLLLLLLLL
2023-11-07 18:23:31 +01:00
alufolie91
f8c1903316
change how mipmap caching works
...
also a bit of texture conversion
idk
2023-11-07 18:19:40 +01:00
alufolie91
652423ad14
Cache and reuse removed mobjs when spawning mobjs
...
from https://git.do.srb2.org/STJr/SRB2/-/merge_requests/2200
2023-11-06 12:27:23 +01:00