Bart Trzynadlowski
3f6937e1a6
When dumping textures, two T1RGB5 texture maps are written: with and without contour processing. Contour processing can be disabled per-polygon and some textures intended to be used without contour processing contain pixels with T=1 that are clearly not supposed to be transparent. We now output textures_t1rgb5_contour.bmp and textures_t1rgb5_opaque.bmp.
2022-02-05 00:52:34 +00:00
Bart Trzynadlowski
32933ef9b0
Added a -dump-textures option (config key DumpTextures) that writes texture BMP files, one for each known format (12 in all currently)
2022-02-01 23:15:06 +00:00
Matthew Daniels
646b46fd4b
Adjust the number of PowerPC cycles executed per frame to assume 57.524 Hz refresh rate
...
Fighting Vipers 2 attract mode no longer requires 100+ MHz to run smoothly
Supermodel itself still runs at 60 Hz
2022-01-23 15:32:53 +00:00
Ian Curtis
b8aac0a4f8
white space.
2021-12-17 23:58:20 +00:00
Ian Curtis
6f7130c50b
Better document real3d registers
2021-12-17 23:57:12 +00:00
Matthew Daniels
6ff099b5ba
Clear all Real3D DMA registers on reset; uninitialized values were causing issues with MSVC debug builds
2021-12-17 23:36:54 +00:00
Matthew Daniels
94772ae3d9
Include required header files in Model3GraphicsState.h - fixes potential build errors in GCC
2021-12-15 13:55:27 +00:00
Matthew Daniels
0c47ac831a
Increase MIDI FIFO buffer size for SCSP; should prevent FIFO overflows
...
Also use similar macro for DSB FIFO buffer
2021-11-30 23:01:37 +00:00
Matthew Daniels
e93c5d710f
PowerPC IRQ line deassertion; DMA only fires interrupts when required
...
PowerPC no longer clears its own IRQ line; it is now cleared by the IRQ controller when there are no more pending interrupts. Not all games clear DMA interrupts so it was necessary to tweak the 53C810 SCSI controller and the Real3D DMA interface to only fire interrupts if a certain register is correctly set. 53C810 has the documented DIEN (DMA Interrupt Enable) register; Real3D DMA seems to use the low bit of the dmaConfig register.
Also I removed the net IRQ as no games seem to actually use it.
2021-11-28 01:11:11 +00:00
Matthew Daniels
9ffce8b92a
Getting rid of most of the includes from Supermodel.h; each file now explicitly includes the header files it needs.
...
Making changes to a header file should no longer force the entire project to recompile.
2021-11-22 17:15:06 +00:00
Matthew Daniels
50465f9a5a
Shared RAM on simulated netboard is now double-buffered; Spikeout Final Edition no longer requires a hack to work.
...
Preparing to enable simulated netboard to run in its own thread
2021-11-05 00:23:29 +00:00
Matthew Daniels
b62110617b
New JTAG patch for Sega Rally 2; linked mode now fully working.
...
Few other minor changes
2021-10-30 23:00:49 +00:00
Matthew Daniels
94d8a1b22d
Increase size of DSB2 FIFO buffer; fixes Sega Rally 2 music occasionally not switching or fading out
2021-10-26 22:47:24 +00:00
Matthew Daniels
a20366d338
Fix netboard resets and detection of simulated netboard linking to itself
2021-04-19 22:15:50 +00:00
Matthew Daniels
5a570ce7fe
Adding simulated netboard; all linked games except Sega Rally 2 working at full speed.
2021-04-14 01:20:45 +00:00
Matthew Daniels
98d4f1c6f6
Corrected alignment issues with netboard RAM; send/receive parameters no longer need to be manipulated to work correctly. Fixes bugs including Scud Race linked car orientation.
2021-03-22 01:08:45 +00:00
SpinDizzy
020e2d1b32
DSB2 clock speed from 4MHz to 11MHz.
2021-03-13 08:17:11 +00:00
SpinDizzy
de470aaf52
Fixed cycle counting overflow that was causing DSB2 to halt execution.
2021-03-07 10:12:37 +00:00
Ian Curtis
6cf9974102
missing header
2021-03-03 20:31:57 +00:00
SpinDizzy
46b1de2238
DSB2 IRQ 2 now fires at 1KHz rather than once per frame, improving
...
music timing in Daytona USA 2 and Sega Rally 2. DSB1 CPU timing
increased from 1MHz to 4MHz, improving music fade timing in Scud Race.
Thanks to gm_matthew for these discoveries.
2021-03-03 15:30:19 +00:00
Ian Curtis
e3374256ff
Just a few compile warnings
2021-02-20 22:19:16 +00:00
Ian Curtis
0bfc2aea31
Fix project file
2021-02-19 11:03:48 +00:00
SpinDizzy
e4998f57fd
Skichamp Driveboard error fix.
2021-02-18 10:35:38 +00:00
SpinDizzy
08d4735ee8
Huge refactor of the Driveboard:
...
-Separate each possible boards (wheel, joystick, skipad, billboard).
-Defined a Driveboard type in Games.xml for each games.
-Due to the refactoring, Driveboard Savestates have changed (a common base data + a specific board data are saved).
-Backwards compatibility with previous save states is maintained.
-Driveboard rom section is no longer required anymore. This disables Driveboard emulation in case the rom is not found.
-Added Billboard emulation (vf3, vs2, fvipers2, von2). 7 segments and lamps Outputs are redirected to Supermodel outputs.
-Changes project to C++ 17 standard.
2021-02-18 10:29:15 +00:00
SpinDizzy
6627b1e95f
The controls of bass/getbass games were no longer good, following recent rom set name changes in Games.xml.
2021-01-05 14:24:57 +00:00
SpinDizzy
6626afc8bb
Added rumble skipad in Ski Champ game.
...
This is only a simulation (cmd are interpreted), not an emulation because we lack informations on the game itself and its driveboard (does it have dedicated cpu/rom ?).
2020-12-30 17:14:14 +00:00
SpinDizzy
1f50519905
Magical Truck Adventure rom patch to unlock region. (enter service menu, then Start P1, Start P1, Service, Start P1, Service, Test)
2020-12-21 15:39:15 +00:00
SpinDizzy
5143669cb9
Star Wars Trilogy lever feedback activated
2020-10-24 09:12:54 +00:00
SpinDizzy
402baf87b8
Force Feeback for Linux
2020-10-21 08:19:51 +00:00
SpinDizzy
d3955062e4
Correct the returned value from previous getbass patch
...
There was a strange side effect on Ocean Hunter game
2020-08-26 16:05:23 +00:00
SpinDizzy
9e8e993026
Getbass related
...
Game now boots in game
Add missing analog input and buttons
2020-08-25 08:48:25 +00:00
Ian Curtis
d77433b525
Remove some debug code
2020-08-01 09:02:04 +00:00
Ian Curtis
ba917aca6d
Update glew version
2020-07-31 19:18:51 +00:00
SpinDizzy
6af882548f
Linux build compatibility changes
2020-07-03 09:15:08 +00:00
SpinDizzy
a73a06d546
Netboard related : Define a new hardware line in games.xml
2020-07-01 15:56:21 +00:00
SpinDizzy
345310fbee
_rotl() replacement
2020-06-17 16:31:22 +00:00
Ian Curtis
1a3407bec8
Fix corrupted memory in network mode
2020-06-17 11:41:41 +00:00
Ian Curtis
daef27be37
Replace network code with new tcp implementation
2020-06-16 11:55:38 +00:00
Ian Curtis
d688fdd3d5
cache variable, without it is unusably slow in debug mode
2020-06-12 17:33:21 +00:00
SpinDizzy
4f347ff3f1
SDL1 to SDL2 internal changes
2020-04-19 08:34:58 +00:00
Ian Curtis
e1827cfd13
Stretch the time the ping_pong bit flips a bit to bump writes into correct frame. Otherwise they end up getting written at like 99.8% of the frame and overlapping with the next.
2019-11-08 20:36:11 +00:00
Ian Curtis
2e6968fe9d
Thanks to our anonymous contributor who managed to patch a model 3 game and run it on real h/w, we were able to obtain some timing values we had been long been missing for correct emulation. The h/w polls something called the ping_pong bit at start-up to sync the GPU with the CPU. Unfortunately we didn't have the correct values and just manually used some per game hacks to get games to run. This mostly worked, but some games were writing more or less frames than they should have been for a given time period. When the ping_pong bit flips at 66% of the frame time, games were writing data for a new frame, which meant writes were often straddling 2 separate frames. We aren't 100% sure if IRQ2 or the ping_pong bit is vblank.
2019-11-07 20:29:17 +00:00
Ian Curtis
8aa476aeeb
Previous mpeg audio code worked for me in debug mode, but the release build had some serious corruption issues when being built in visual studio. Replaced the old spaghetti code with a more modern implementation.
2019-02-21 14:56:25 +00:00
SpinDizzy
6fe878b1d3
Restore Sega Rally 2 music in some practice stages
2019-02-07 06:32:46 +00:00
SpinDizzy
bb89bc8e54
Refactor code from previous svn768 (Note : break old savestate compatibility)
2019-02-05 10:03:50 +00:00
Ian Curtis
90faeafbc4
Fix the audio in sega rally2. The game has packed separate tracks into the left and right audio channels. Selecting the correct track fixes the garbled mess. (Spindizzi)
2019-02-01 21:02:02 +00:00
SpinDizzy
b0813ef7a0
- PCI bridge can be specified in Games.xml for games that use a different version than expected based on stepping. No more hard-coded exceptions.
...
- Real3D PCI ID can be specified in Games.xml for exceptions that require it.
- Real3D status bit timing specified in Games.xml for exceptions that require it.
2019-01-13 16:00:37 +00:00
Ian Curtis
d8f736e7a8
timing fix for srally2x (Spindizzi)
2019-01-06 23:48:34 +00:00
Ian Curtis
78039e91a8
2018-10-28 18:30:04 +00:00
Ian Curtis
b8da2d6064
debug code should be disabled
2018-10-22 21:59:01 +00:00