Commit graph

1067 commits

Author SHA1 Message Date
joachim c97e3acce7 Add two video settings:
-pos=<x>,<y>            Position [Default: centered]
-borderless             Windowed mode with no border

These 2 settings are usefull when setting up a multiplayer game on one machine.

Example for 4 windows in fullHD:

start "Master" /D"Master_P4" Supermodel.exe -input-system=sdl ..\ROMS\dayto2pe.zip -res=960,540 -borderless -pos=0,0
start "Slave1" /D"Slave1_P4" Supermodel.exe -input-system=sdl ..\ROMS\dayto2pe.zip -res=960,540 -borderless -pos=960,0
start "Slave2" /D"Slave2_P4" Supermodel.exe -input-system=sdl ..\ROMS\dayto2pe.zip -res=960,540 -borderless -pos=0,540
start "Slave3" /D"Slave3_P4" Supermodel.exe -input-system=sdl ..\ROMS\dayto2pe.zip -res=960,540 -borderless -pos=960,540
2023-03-09 10:34:51 -08:00
joachim 5fa190490d Allow joystick to be fetch if windows has no focus in SDL input mode.
This is usefull for multiple instance of supermodel networked on the same machine.
2023-03-09 10:34:51 -08:00
Bart Trzynadlowski f7dcc1c445 Games.xml and README.txt updated by Brian Troha (new Ocean Hunter ROM sets and several updates to version descriptions, etc.) 2023-03-06 21:47:03 -08:00
The Brink of Tomorrow ffc320904e Update README.md with macOS build details
Update README.md with macOS build and run instructions
2023-02-25 14:52:32 -08:00
Aaron Paden 78f5056223 Add missing filename to ErrorLog call. 2022-12-28 20:04:25 -08:00
CapitaineSheridan 7e025e64a2 Memory allocated but not released. 2022-12-28 18:24:11 -08:00
Ian Curtis 69a458ecf7 Make sure to invalidate texture memory when going fullscreen otherwise it might not be syned correctly. 2022-12-25 00:32:01 +00:00
Ian Curtis 11c01a349f SDL_SetWindowFullscreen isn't needed as we call ResizeGLScreen which sets the fullscreen mode afterwards. 2022-12-24 23:54:47 +00:00
Ian Curtis 6dcf144694 We must explicitly call SDL_SetWindowFullscreen after setting the display mode otherwise the refresh rate doesn't change. 2022-12-24 17:29:08 +00:00
Ian Curtis ad0aed42a4 be a bit more flexible with the display frequencies we'll match 2022-12-19 14:11:21 +00:00
Ian Curtis 25604512f4 The model 3 (actually model 1,2 and 3) all used some crazy refresh rate of 57.524hz. If your screen refresh rate is 60hz, supermodel will work fine, but really run too fast. Anyway if you create a custom refresh rate, supermodel will automatically pick this, and set it when the emulator is in fullscreen mode. Apparently this works with most monitors, even cheapo low end ones.
To active set your command line to:
-res=1920,1080 -vsync -fullscreen -true-hz

Replace the resolution with whatever your monitor's native resolution is.
2022-12-19 00:13:08 +00:00
Ian Curtis 984f78ad1b Merge branch 'master' of https://github.com/trzy/Supermodel 2022-12-17 23:46:11 +00:00
Ian Curtis 57ead6037d Better opengl resource allocation. Fixes going fullscreen and back. 2022-12-17 23:46:02 +00:00
gm-matthew 50d947deee Add FileSystemPath.cpp to Visual Studio project 2022-12-14 00:29:25 -08:00
Fernando Casas Schössow d83e4754fe Fixed build on macOS 2022-12-12 16:49:07 -08:00
Fernando Casas Schössow 07429b9187 Switched to Util::Format() to generate screenshot filename 2022-12-12 16:49:07 -08:00
Fernando Casas Schössow 317f8bacde First review code changes (identation and cosmetic changes) 2022-12-12 16:49:07 -08:00
Fernando Casas Schössow d11efb8553 Changed pathType from string var to enum 2022-12-12 16:49:07 -08:00
Fernando Casas Schössow df7787f040 Keep Supermodel files (config, nvram, saves, etc.) in a predictable path when running on Linux 2022-12-12 16:49:07 -08:00
toxieainc db455ba5c1 add undefd codepath for correct use of the 18bit DAC path (which seems to be triggered for all games)
the volume correction to bring the data back into a valid range is not really needed in practice though, only Daytona2 seems to need it, and also only extremely rarely, so lets just live with a tiny bit of clamping for that game then

while add it, make some formatting similar to MAME, and add one comment regarding a most likely wrong recent MAME change
2022-11-29 12:36:27 -08:00
Ian Curtis 153c510009 Fix uniform location. 2022-11-26 12:58:07 +00:00
Matthew Daniels 7513cc769a Update Model3.cpp
whitespace
2022-11-25 15:27:12 -08:00
gm-matthew 6a392f2cc9 Add comment 2022-11-25 15:27:12 -08:00
gm-matthew 916d3d3af1 whitespace 2022-11-25 15:27:12 -08:00
gm-matthew 2063303a4d Wait until IRQ2 is acknowledged before starting IRQ40 sequence. Fixes Ski Champ hanging at FBI screen when region set to USA 2022-11-25 15:27:12 -08:00
gm-matthew 79a2414f3f Incomplete texture headers uploaded via FIFO are now discarded. Ski Champ sends one more 32-bit word via DMA than it should which was causing Supermodel to erroneously intepret the extra word as another texture 2022-11-19 21:06:39 -08:00
ToBul acc7161ca5 [Makefile.Win32] $MSYSTEM check never fails.
'make clean' from Win command shell doesn't fully clean, condition always true.
2022-11-13 10:49:20 -08:00
Ian Curtis 5f30614c4c FIx shaders failing to build on apple h/w 2022-11-09 18:56:15 +00:00
Ian Curtis fe36b07702 Update makefile 2022-11-08 10:35:05 +00:00
Ian Curtis e47258c61d Remove some left over depreciated opengl functions. They were basically no-op anyway with shader path. 2022-11-07 23:52:44 +00:00
Ian Curtis 9348fd852d Merge branch 'master' of https://github.com/trzy/Supermodel 2022-11-07 21:33:08 +00:00
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