jak-project/goalc/compiler
water111 d5951c2b11
[jak 2] Fix possible stereo desync in overlord (#2663)
Normally, when they allocate a VagCmd, they do a bunch of stuff to clear
all the status bits and reset things
in particular the InitVAGCmd function does a lot


![image](https://github.com/open-goal/jak-project/assets/48171810/9b355020-ad37-496c-9438-2f8d34f24e0a)

but for the stereo command, they do a lot less:

![image](https://github.com/open-goal/jak-project/assets/48171810/12a36712-0e68-4377-a6be-3bde82c2aa15)

Which means that the new_stereo_command can just have random status bits
left over from whatever the last user had.
we seem to end up in a state where byte21 is set, and this causes
everything else to be wrong and off-by-one dma transfer. My guess is
that the original game avoided this bug due to lucky timing that I don't
understand.

I think the fix of just clearing byte21 is ok because there's no way
that the old value of the byte is useful after the command is
repurposed.
2023-05-19 21:17:11 -04:00
..
compilation i18n: Create a JSON subtitle format for translating via Crowdin (#2644) 2023-05-18 20:54:59 -04:00
docs docs: Automatically generate documentation from goal_src code (#2214) 2023-02-20 19:49:37 -05:00
CodeGenerator.cpp [goalc] reduce compiler memory usage (#2247) 2023-02-24 18:32:30 -05:00
CodeGenerator.h game: Remove temporary CLI arg shim in gk (#2532) 2023-04-22 14:13:57 -04:00
Compiler.cpp repl: add gameVersionFolder to repl-config for running the non-default version (#2463) 2023-04-11 17:57:20 -04:00
Compiler.h allow quoting :key symbols + further optimize defpart (#2592) 2023-04-30 02:46:14 +01:00
CompilerException.h split new pc features in some files into their own code files + address some old issues + ripple graphics improvements (#2216) 2023-02-13 21:39:14 +00:00
CompilerSettings.cpp [jak2] support for multiple out/ directories (#1585) 2022-06-30 21:11:58 -04:00
CompilerSettings.h [jak2] support for multiple out/ directories (#1585) 2022-06-30 21:11:58 -04:00
ConstantValue.h lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
Env.cpp [goalc] reduce compiler memory usage (#2247) 2023-02-24 18:32:30 -05:00
Env.h [goalc] reduce compiler memory usage (#2247) 2023-02-24 18:32:30 -05:00
IR.cpp some bug fixes (#2125) 2023-01-14 11:04:15 -05:00
IR.h [decompile] subdivide, wind-work, tie-work, bsp, focus (#1897) 2022-09-17 14:58:25 -04:00
Label.h Add #pragma once to all headers 2020-09-13 21:36:35 -04:00
Lambda.h [goalc] reduce compiler memory usage (#2247) 2023-02-24 18:32:30 -05:00
StaticObject.cpp lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
StaticObject.h lint: add include sorting config to clang-format (#1517) 2022-06-22 23:37:46 -04:00
SymbolInfo.h docs: Automatically generate documentation from goal_src code (#2214) 2023-02-20 19:49:37 -05:00
Util.cpp [jak 2] Fix possible stereo desync in overlord (#2663) 2023-05-19 21:17:11 -04:00
Val.cpp [jak 2] fix boot, increase level heap sizes (#2252) 2023-02-25 15:20:17 -05:00
Val.h [goalc] default to non-immediate lambdas if not requested (#2604) 2023-04-30 19:00:27 -04:00