Supermodel/Src
Ian Curtis c6ea81d996 Emulate the entire tilegen chip in a GLSL shader. (This is now possible with opengl 3+). The tilegen drawing was emulated on the CPU, but was one of the most expensive functions in the emulator according to a profiler. On a modern GPU it's pretty much free, because a GPU is a massive SIMD monster.
Tilegen shaders are mapped to uniforms, and the vram and palette are mapped to two textures.

TODO rip out the redundant code in the tilegen class. We don't need to pre-calculate palettes anymore. etc

The tilegen code supports has a start/end line so we can emulate as many lines as we want in a chunk, which will come in later as some games update the tilegen immediately after the ping_pong bit has flipped ~ 66% of the frame.

The scud rolling start tilegen bug is probably actually a bug in the original h/w implementation, that ends up looking correct on original h/w but not for us. Need hardware testing to confirm what it's actually doing.
2023-09-23 15:27:04 +01:00
..
CPU 68K now uses run-time hooks for IRQ and instruction hook callbacks 2022-11-02 18:46:08 -07:00
Debugger check for __GNUC__ instead of just assuming it 2022-07-17 20:23:11 +02:00
Graphics Emulate the entire tilegen chip in a GLSL shader. (This is now possible with opengl 3+). The tilegen drawing was emulated on the CPU, but was one of the most expensive functions in the emulator according to a profiler. On a modern GPU it's pretty much free, because a GPU is a massive SIMD monster. 2023-09-23 15:27:04 +01:00
Inputs change all INT16 mixing/intermediate clamping to floats 2022-11-06 13:00:13 -08:00
Model3 Drive board uses the value 0xFF (not 0x00) on ports 42 and 45 to stop all effects when port 46 is set to 0xFF; fixes FFB effects continuing after game ends 2023-07-01 23:21:51 -07:00
Network NetBoard: guard against freeing null pointers and INetBoard needed a virtual destructor (was causing crashes on exit on some systems) 2023-03-14 11:18:20 -07:00
OSD Crosshair optimization: 2023-05-07 21:41:05 -07:00
Pkgs Update glew version 2020-07-31 19:18:51 +00:00
Sound add undefd codepath for correct use of the 18bit DAC path (which seems to be triggered for all games) 2022-11-29 12:36:27 -08:00
Util Fix GCC 13 build. 2023-05-07 21:42:21 -07:00
BlockFile.cpp fix some real errors (Model3,InputSystem), minor errors (SCSP,SDL/Main) and some performance warnings 2022-07-11 17:43:59 +02:00
BlockFile.h Added functions to safely read and write bools 2017-09-24 20:49:31 +00:00
Game.h njz3: Proper quadrophonic audio support. Need 4+ speakers to take advantage otherwise down mixed to stereo. 2022-06-09 21:10:39 +00:00
GameLoader.cpp address review 2022-07-17 20:29:25 +02:00
GameLoader.h Huge refactor of the Driveboard: 2021-02-18 10:29:15 +00:00
ROMSet.cpp add missing include 2017-04-08 21:01:11 +00:00
ROMSet.h Removed patches from source code and moved them into game XML file. Created ROMSet.cpp. Print a more descriptive error when game XML file fails to load. 2017-04-08 18:30:29 +00:00
Supermodel.h check for __GNUC__ instead of just assuming it 2022-07-17 20:23:11 +02:00
Version.h Introducing a special release build target with SVN version stamping. 2020-12-24 10:20:26 +00:00