Commit graph

986 commits

Author SHA1 Message Date
Ian Curtis 40c8259130 Rewrite the whole project for GL4+. I figured if we removed the limitation of a legacy rendering API we could improve things a bit. With GL4+ we can do unsigned integer math in the shaders. This allows us to upload a direct copy of the real3d texture sheet, and texture directly from this memory given the x/y pos and type. This massively simplifies the binding and invalidation code. Also the crazy corner cases will work because it essentially works the same way as the original hardware.
The standard triangle render requires gl 4.1 core, so should work on mac. The quad renderer runs on 4.5 core. The legacy renderer should still work, and when enabled a regular opengl context will be created, which allows functions marked depreciated in the core profiles to still work. This will only work in windows/linux I think. Apple doesn't support this.

A GL 4.1 GPU is now the min required spec. Sorry if you have an OLDER gpu. GL 4.1 is over 12 years old now.

This is a big update so I apologise in advance if I accidently broke something :]
2022-11-07 21:33:01 +00:00
toxieainc 4c727abdc8 change all INT16 mixing/intermediate clamping to floats
also fixes 3 bugs:
1) mpeg right channel volume was always using the left channel volume, too
2) too high MusicVolume setting was not clamped to 0..200
3) too high SoundVolume setting was not clamped to 0..200
2022-11-06 13:00:13 -08:00
Bart Trzynadlowski 121f81c742 68K now uses run-time hooks for IRQ and instruction hook callbacks 2022-11-02 18:46:08 -07:00
Bart Trzynadlowski 33c04ce345 Games.xml: Added re-dumped magtruck and retained old ROM set with patch (mgtrkbad) for users who fail to obtain newest MAME ROMs 2022-10-29 11:44:34 -07:00
Ian Curtis b2e5a200da Fix build for linux (just missing header) 2022-10-17 09:34:11 +01:00
Ian Curtis f0872cc998 Upgrade the glsl shader class a bit. Add a const char* comparitor so we can use a map with a simple "string" key. Fine to use when performance is not critical. 2022-10-16 21:03:41 +01:00
Ian Curtis 6fbf938335 Add a proper git ignore file .. And fix the legacy renderer to build with new visual studio (2019) 2022-10-16 20:45:40 +01:00
toxieainc e644751f01 after clarifications, minor cleanup 2022-10-10 16:35:02 -07:00
toxieainc 75771b3d14 remove 2 dupe function calls, where ProcessLos should actually be rather costly 2022-10-10 16:35:02 -07:00
Fernando Casas Schössow 412e9232d7 Fix new 3D engine texture2DLod function missing error on Linux/MESA. MESA requires needed extensions to be explicitly declared in code otherwise it will not enable them. 2022-10-10 16:30:09 -07:00
toxieainc aae58edd62 change one more place with potential aliasing issue 2022-10-03 17:59:59 -07:00
toxieainc 5f97e5af6c address review 2022-10-03 17:59:59 -07:00
toxieainc 519d695f57 address review and move bit casts to new header 2022-10-03 17:59:59 -07:00
toxieainc 1b0e3be8dc use correct slash 2022-10-03 17:59:59 -07:00
toxieainc 22ffb5cc19 Harmless math warning fixes. map->unordered_map in CNew3D::CacheModel. Avoid general aliasing problems (using bit_cast or the recommended/optimized-away memcpy). 2022-10-03 17:59:59 -07:00
toxieainc 0eef09ba2b Revert "port some changes from MAME/MESS"
This reverts commit b5f3d8b68e1ae62a08b00a730b6b8150758c0af3.
2022-08-19 08:41:22 -07:00
toxieainc d7041a83c9 fix missing version GLSL compiler warnings on startup
happens (at least) on Intel drivers
2022-08-19 08:41:22 -07:00
toxieainc 7052e8375e port some changes from MAME/MESS 2022-08-19 08:41:22 -07:00
toxieainc a60f99848f Revert "port some changes from MAME/MESS"
This reverts commit b5f3d8b68e1ae62a08b00a730b6b8150758c0af3.
2022-08-16 21:34:31 -07:00
toxieainc 6c24bf7c8f Optimize quad rendering by replacing the double computations for the area computation with the equivalent shoelace algorithm along with kahans algorithm to compute the cross products. In addition pull out the /w to the end, which increases precision even more.
Thus making the result similar to the fp64 version, tested e.g. with harleys first person mode (all artifacts still gone as before).

Improves perf on low end boards (e.g. Intel) dramatically (10fps with harley before, now 70 on my laptop), and even on higher end (e.g. NVIDIA laptop, quads are now faster than tri pipeline on my laptop).
2022-08-16 21:34:31 -07:00
toxieainc d919f3865c port some changes from MAME/MESS 2022-08-16 21:34:31 -07:00
Bart Trzynadlowski dda6d4cf95 Added some options to default Supermodel.ini that otherwise are not documented anywhere because README.txt is out of date 2022-08-16 18:33:33 -07:00
ToBul e06788e768 Fix SUPERMODEL_DEBUGGER build. - Ian
As requested by Bart; Ian's last SourceForge commit.
Also, purely to appease my OCD, a change I forgot on my last 'Games.xml' PR that really shouldn't bother me as much as it does.
2022-08-14 11:46:35 -07:00
toxieainc d4633a868d Revert "port some changes from MAME/MESS"
This reverts commit b5f3d8b68e1ae62a08b00a730b6b8150758c0af3.
2022-08-09 20:37:42 -07:00
toxieainc 03002d3f22 port some changes from MAME/MESS 2022-08-09 20:37:42 -07:00
toxieainc 2df681f009 equivalent optimizations, NFC 2022-08-09 20:37:42 -07:00
toxieainc cb9d73c9d0 port some (simple) changes from MAME/MESS 2022-08-09 20:37:42 -07:00
trzy d60feab2ca
Merge pull request #1 from toxieainc/master
Fix some errors, fix some performance warnings, and some simple (but effective) optimizations
2022-07-18 13:00:27 -07:00
toxie 7b87908631
Merge branch 'trzy:master' into master 2022-07-18 21:53:49 +02:00
toxieainc 27e071dafb add comment 2022-07-18 21:43:13 +02:00
toxieainc dda48d7606 address review 2022-07-17 20:29:25 +02:00
toxieainc 24173a2140 revert "" -> std::string() 2022-07-17 20:25:51 +02:00
toxieainc c42a2d8951 check for __GNUC__ instead of just assuming it 2022-07-17 20:23:11 +02:00
trzy bd4399bcea
Merge pull request #2 from ToBul/master
Games.xml: Align ROM names with MAME.
2022-07-16 21:01:44 -07:00
Tony Bulmer e1e61c4bdc Games.xml: Align ROM names with MAME.
Minor and inconsequential change.
Makes manual ROM building 'slightly' easier when using latest MAME ROM set (currently 0.245).
2022-07-12 10:45:39 +01:00
toxieainc abb1273aa0 slightly optimize DrawTileLine (less branches/logic) 2022-07-11 18:49:02 +02:00
toxieainc b98be0c2e7 optimize ReadRegister, as localtime (at least on MSVC/Windows) is significantly showing up in profiling
e.g. in SW Trilogy

caches localtime until time changes (i.e. limits calls to 1/sec)
2022-07-11 18:47:13 +02:00
toxieainc ba7145df52 use intrinsics for endian swap 2022-07-11 18:42:15 +02:00
toxieainc b2b8396947 missed 2 changed files with last commit 2022-07-11 18:27:44 +02:00
toxieainc 4961951a89 fix a real error (m68kdasm) and some harmless performance warnings and use modern headers 2022-07-11 18:10:41 +02:00
toxieainc e0053b3a46 fix some real errors (Model3,InputSystem), minor errors (SCSP,SDL/Main) and some performance warnings 2022-07-11 17:43:59 +02:00
Bart Trzynadlowski 46eff8c5eb supermodel_build_bot.py: New build bot script for GitHub 2022-06-25 15:53:47 -07:00
trzy 35a7e8a60b
Update README.md 2022-06-25 15:53:36 -07:00
Bart Trzynadlowski 237f2756c0 Rules.inc: whitespace error 2022-06-23 12:41:32 -07:00
Bart Trzynadlowski d42f7d6563 Rules.inc: Fixed git revision parsing 2022-06-23 12:38:58 -07:00
Bart Trzynadlowski 8c8cc3d32b Preparing for Git snapshot build bot and updated copyright header to reference full lifespan of Supermodel repo 2022-06-23 12:34:02 -07:00
trzy 3803d6b705
Updated Supermodel.ini comment to reference Supermodel.log instead of error.log 2022-06-20 23:42:42 -07:00
Bart Trzynadlowski 015b96026a Corrections to README.md and Supermodel.ini 2022-06-20 23:41:43 -07:00
Bart Trzynadlowski 6460a06c1a Removed disassembly of Scud Race Plus 2022-06-20 23:31:34 -07:00
trzy 849f2e8407
Update README.md
Trying again to make the images fit side-by-side.
2022-06-20 23:24:01 -07:00