Commit Graph

1658 Commits

Author SHA1 Message Date
Miodrag Milanovic
1c728dddf0 remove debug data (nw) 2016-02-07 19:58:34 +01:00
Miodrag Milanovic
a572b3da0f respect waitsync param (nw) 2016-02-07 19:55:56 +01:00
Miodrag Milanovic
9d4945d386 removed vsync flag (nw) 2016-02-07 19:46:58 +01:00
Miodrag Milanovic
e3d8dbb364 optimized code a bit, reused Aarons code (nw) 2016-02-07 19:19:18 +01:00
Miodrag Milanovic
db8397c470 propagate color to texture (nw) 2016-02-07 17:22:50 +01:00
Miodrag Milanovic
178167b8fe Initial support for BGFX [Dario Manesku, Branimir Karadic, Miodrag Milanovic]
Need optimization and cleanup, note that all shaders can be built only on windows
due to usage of DirectX DLLs
2016-02-07 15:49:55 +01:00
Justin Kerk
0174ccbbe1 Fix indentation (nw) 2016-02-06 16:01:59 -08:00
Miodrag Milanovic
fe79bbad82 fix output interface(nw) 2016-02-06 15:23:17 +01:00
Dankan1890
701df7fe9e Initial import of MEWUI to MAME [Dankan1890] 2016-02-04 15:14:24 +01:00
Justin Kerk
039a07bb4d Substantial improvements to Web Audio sound backend for Emscripten port. [Grant Galitz] 2016-02-04 04:36:17 +00:00
Miodrag Milanovic
f005b29cce using dereferenced mutex = bad idea (nw) 2016-01-31 17:05:40 +01:00
hap
22941d57de osd/windows: small cleanup 2016-01-31 01:51:33 +01:00
Miodrag Milanovic
42622cfe8e replace osd_lock with std::mutex [Miodrag Milanovic] 2016-01-30 20:43:50 +01:00
dankan1890
29ba71768c Use nothrow allocation in these circumstance. 2016-01-30 09:31:46 +01:00
Miodrag Milanović
1ec138b458 Merge pull request #591 from stuartcarnie/mame0170
osdmini: fixes build issues [Stuart Carnie]
2016-01-30 07:50:33 +01:00
Stuart Carnie
048fd105db osdmini: fixes build issues 2016-01-29 22:44:18 -07:00
mahlemiut
e0da1a7288 SDL: if binding, listening or connecting to a socket fails, then close the socket handle. 2016-01-29 22:20:39 +13:00
Miodrag Milanovic
1686fdd06e Fix error by ImJezze (nw) 2016-01-27 13:51:08 +01:00
Miodrag Milanovic
b1d6f6d63f Cleanups and version bump 2016-01-27 08:12:00 +01:00
Miodrag Milanovic
9425c141de fix error (nw) 2016-01-27 06:56:44 +01:00
Miodrag Milanović
8b283b9753 Merge pull request #587 from ImJezze/pull
HLSL: NTSC and color convergence refactoring
2016-01-27 06:46:02 +01:00
ImJezze
a5fb439705 Cleanup (nw) 2016-01-26 22:14:41 +01:00
ImJezze
d516871e6f NTSC Refactoring and Options
- merged YIQ encode and decode pass into one NTSC pass
- added options for most NTSC settings
- reduced sample count to 64
- changed default O value to 0
- fit NTSC signal jitter between a reasonable limit of 0 and 1
- fit A and B value between a reasonable limit of -1 and 1
- fit scanline jitter between a reasonable limit of 0 and 1
- added hum bar simulation based on [MooglyGuy's] GLSL port of the mame
shader pipeline
- added monochrome-chessboard.png
- added slot-mask-aligned.png (to simulate a TFT LCD)
2016-01-25 22:02:24 +01:00
Miodrag Milanovic
0260e5b299 fix compile for windows (nw) 2016-01-24 10:17:55 +01:00
Brad Hughes
9a6eb2250b XAudio2 Bug fix - forgot to initialize buffers and no need to init COM 2016-01-23 19:02:58 -05:00
R. Belmont
6fd9e66cd0 Merge pull request #571 from bradhugh/xaudio2
XAudio2 support
2016-01-22 17:59:21 -05:00
Dankan1890
170ebc7f06 Fix OSX build. (nw) 2016-01-21 14:05:28 +01:00
Brad Hughes
c5c9367079 Fix GCC compiler warning in xaudio2 implementation 2016-01-20 23:38:01 -05:00
Bradley Hughes
7b072ad174 Update XAudio2 support to handle overflow, underflow, and audio_latency properly. 2016-01-20 23:16:18 -05:00
Brad Hughes
2f36228306 XAudio2 support 2016-01-20 23:16:18 -05:00
Miodrag Milanovic
4e8e3066f8 reverting:
SHA-1: 1f90ceab07

* tags are now strings (nw)
fix start project for custom builds in Visual Studio (nw)
2016-01-20 21:42:13 +01:00
Miodrag Milanovic
7c9cd3feea Revert "rest of device parameters to std::string (nw)"
This reverts commit caba131d84.
2016-01-20 21:35:11 +01:00
Miodrag Milanovic
69b44cd860 Revert "fixed qt build (nw)"
This reverts commit a23a0abc76.
2016-01-20 21:34:41 +01:00
Miodrag Milanovic
5f31386020 Revert "Fix OSX build (nw)"
This reverts commit 8144b878ab.
2016-01-20 21:34:20 +01:00
Miodrag Milanovic
8144b878ab Fix OSX build (nw) 2016-01-16 21:00:21 +01:00
Miodrag Milanovic
a23a0abc76 fixed qt build (nw) 2016-01-16 20:55:10 +01:00
Miodrag Milanovic
caba131d84 rest of device parameters to std::string (nw) 2016-01-16 20:05:32 +01:00
Miodrag Milanovic
c02754e802 Fix OSX build (nw) 2016-01-16 18:46:38 +01:00
Miodrag Milanovic
1f90ceab07 tags are now strings (nw)
fix start project for custom builds in Visual Studio (nw)
2016-01-16 14:54:42 +01:00
Miodrag Milanovic
807265ed21 put debug_view back in machine due to issues with QT (nw) 2016-01-12 12:00:56 +01:00
Miodrag Milanovic
db0bd9e5e5 Fix compile on OSX 2016-01-12 11:08:03 +01:00
Miodrag Milanovic
79fd7e15d1 Fix linux compile 2016-01-12 10:02:55 +01:00
Miodrag Milanovic
f9a9eafba0 created debugger_manager, now this one owns debug_view_manager (nw) 2016-01-12 09:50:59 +01:00
Miodrag Milanovic
04a5484b49 change initialization order, removes need for additional checks (nw) 2016-01-11 10:21:21 +01:00
Miodrag Milanović
36195292e3 Merge pull request #561 from ajrhacker/strings
Return std::string objects by value rather than pass by reference [ajrhacker]
2016-01-11 09:18:43 +01:00
AJR
115db95642 Return std::string objects by value rather than pass by reference
- strprintf is unaltered, but strformat now takes one fewer argument
- state_string_export still fills a buffer, but has been made const
- get_default_card_software now takes no arguments but returns a string
2016-01-10 16:36:18 -05:00
Miodrag Milanovic
30c10f6f79 modernized ui_input_manager (nw) 2016-01-10 20:32:30 +01:00
Miodrag Milanovic
833094f88c disable debugging (nw) 2016-01-10 18:42:20 +01:00
Miodrag Milanovic
f9f908d48b modernize output_manager (nw) 2016-01-10 18:41:17 +01:00
Miodrag Milanovic
3e5ad46410 modernized configuration_manager (nw) 2016-01-10 15:17:18 +01:00
mahlemiut
7520eea004 Make internal debugger menu remember its currently selected item, to help make switching CPUs/regions/options easier. Also, set all windows to visible only on initial display. 2016-01-11 00:20:56 +13:00
ImJezze
ded9493cb0 Fixed YIQ passes
- fixed half texel offset
- readded usage of A value in encode/decode pass
- readded jitter of B value in encode/decode pass
- readded usage of P value in encode pass
- fixed not set O value uniform for decode pass
- removed duplicate YIQ option definition
- changed default of O value back to 1.0
2016-01-09 16:41:53 +01:00
ImJezze
37b596b7b4 Refactored color converge
- color converge is now independent from ratio
- the radial converge now "translates" the most outer pixel as thay
would be translated by the linar converge with the same amount
- color converge is now limited to a maximum of 10
- added color converge pass to vector rendering
2016-01-09 16:15:45 +01:00
Miodrag Milanovic
08c8c26b62 remove usage of NO_MEM_TRACKING macro (nw) 2016-01-08 13:42:19 +01:00
Miodrag Milanovic
ce75a5d682 removed memory tracking (nw) 2016-01-08 12:41:13 +01:00
Jeffrey Clark
81a7c7b20c common osd path environment var expansion 2016-01-06 02:34:33 -06:00
mahlemiut
c5f16b5022 fix input regression in internal debugger window editors 2016-01-06 14:10:53 +13:00
mahlemiut
2dfaf69380 Prevent keypresses from passing through to internal debugger windows while the windows are hidden. 2016-01-04 21:32:51 +13:00
ImJezze
1cacb7d040 Refactoring (nw)
- restructured bloom level size and weight uniforms
2016-01-03 16:20:27 +01:00
mahlemiut
521fc5c927 Add various keyboard shortcuts and pass keypresses to the debug view with input focus. 2016-01-04 00:08:45 +13:00
AJR
3e6c0d3434 Allow mame -validate -verbose to capture verbose messages 2016-01-02 09:40:15 -05:00
mahlemiut
72f5e11450 fix vertical scrollbar on large windows (such as the program space of an i386) 2016-01-02 20:32:41 +13:00
ImJezze
a2c7b61daa Refactoring
- replaced shader parameters OrientationSwapXY xor RotationSwapXY by
SwapXY
- made shader parameters SourceDims, SourceRect, TargetDims, ScreenDims,
QuadDims and SwapXY available for all shaders
- color convolution, defocus and phosphor pass will now be skipped if
all influencing parameters are 0
- removed unused bloom_texture and bloom_target arrays from cache_target
class
- fixed half texel offset in prescale.fx
2015-12-31 16:59:23 +01:00
ImJezze
eea40fd0e4 Cleanup (nw)
- removed unused pincushion.fx
2015-12-31 16:32:35 +01:00
Miodrag Milanovic
4afd75e2fd Cleanups and version bump 2015-12-30 08:18:51 +01:00
Miodrag Milanovic
5d1eb49824 Make SDL2 use software if hardware acceleration is not available 2015-12-27 18:25:13 +01:00
Miodrag Milanovic
fd21d7accb Do not add this for other then windows (nw) 2015-12-27 13:51:16 +01:00
Miodrag Milanovic
4810f2e98e Fix for windows Qt5 compile (nw) 2015-12-27 13:49:04 +01:00
Olivier Galibert
9d231a83ad qt5 debugger port [O. Galibert] 2015-12-27 12:58:00 +01:00
Miodrag Milanović
851f66aff9 Merge pull request #522 from ImJezze/pull
HLSL: Improved Defocus, Fixed LCD screen, Extended Shadow Mask and Bloom [ImJezze]

Made defocus strength equal for x/y and independent from screen size

defocus is now independent from screen size and ratio
horizontal and vertical defocus now have the same strength
replaced asymmetric defocus kernel by a symmetric kernel
defocus is now limited to a maximum of 10
added shader uniforms for orientation and rotation settings
Fixed HLSL for LCD screen

fixed wrong detection of vector screen, which meant that a LCD screen was also detected as vector screen
re-enabled scan-line and other CRT related sliders for LCD screen
Extended Shadow Mask and Bloom functionality

added shadow mask option to choose between "Screen" and "Source" tile mode ("Screen" is the default as before)
added bloom option to choose between "Addition" and "Darken" blend mode ("Addition" is the default as before)
the alpha channel of a shadow mask is now filled with the background color of the screen by the amount of the inverted alpha value
added monochrome-matrix.png which can be used in combination with "Source" tile mode and "Darken" blend mode to simulate a STN LCD
2015-12-26 14:19:44 +01:00
ImJezze
ff77b7897b Cleanup (nw)
- renamed shadow_mask_type to shadow_mask_tile_mode
- renamed bloom_type to bloom_blend_mode
- implemented "Source" shadow mask tile mode for artwork_support/post.fx
2015-12-26 12:27:07 +01:00
yz70s
a8ef53fa51 debugint.cpp: fix uninitialized variable error (nw) 2015-12-25 20:18:31 +01:00
ImJezze
1b373eb812 Extended Shadow Mask and Bloom functionality
- added shadow mask type option to choose between "Screen" and "Source"
tile mode ("Screen" is the default as before)
- added bloom type option to choose between "Addition" and "Darken"
blend mode ("Addition" is the default as before)
- the alpha channel of a shadow mask is now filled with the background
color of the screen by the amount of the inverted alpha value
- added monochrome-matrix.png which can be used in combination with
"Source" tile mode and "Darken" blend mode to simulate a STN LCD, for
example
2015-12-25 20:02:47 +01:00
ImJezze
099f547d05 Fixed HLSL for LCD screen type
- fixed wrong detection of vector screen, which meant that a LCD screen
was also detected as vector screen
- re-enabled scan-line and other CRT related sliders for LCD screens
2015-12-24 14:06:01 +01:00
ImJezze
b1f1300517 Made defocus strength equal for x/y and independent from screen size
- defocus is now independent from screen size and ratio
- horizontal and vertical defocus now have the same strength
- replaced asymmetric defocus kernel by a symmetric kernel
- defocus is now limited to a maximum of 10
- added shader uniforms for orientation and rotation settings
2015-12-20 13:57:28 +01:00
arbee
89ec79c953 Support 64 and 80-bit floats in OS X debugger (nw) 2015-12-19 22:08:45 -05:00
mahlemiut
4facaf6c24 Stop internal debugger windows from drawing space characters, speeds rendering up quite a bit. 2015-12-19 21:36:34 +13:00
mahlemiut
043eed6171 Make new internal debugger windows appear in a cascade-like position, and give some windows better default sizes. Change render_target::debug_top() to put targets at the end of the target list, fixing the order in which windows are rendered (nothing else uses this function). 2015-12-17 19:10:31 +13:00
mahlemiut
73276c7ae8 Stop internal debugger window title and editors from drawing text outside the bounds of the window. 2015-12-15 19:41:38 +13:00
mahlemiut
bbf703252e Made internal debugger window editors appear over the window to which it is related (makes it a little bit clearer). 2015-12-14 15:03:13 +13:00
mahlemiut
408edf4f77 Base the size of internal debugger window title bars on the font size. 2015-12-13 23:33:05 +13:00
mahlemiut
14d5966a37 Internal debugger now honours the -debugger_font and -debugger_font_size options. 2015-12-13 20:54:13 +13:00
mahlemiut
27d7781b7c Add memory window to internal debugger. 2015-12-12 21:56:34 +13:00
Miodrag Milanovic
379581fb36 macro removal INLINE -> static inline (nw) 2015-12-12 08:58:57 +01:00
mahlemiut
799c299ade Make internal debugger windows just a bit more pleasing to the eye. 2015-12-12 13:31:21 +13:00
mahlemiut
3c628e4681 Giving the internal debugger a bit of love. Make closed windows actually disappear, and add a Run and Hide Debugger option. Also spaced out initial windows, so that they aren't on top of each other to start with. 2015-12-11 22:50:25 +13:00
Miodrag Milanovic
3414b0166e tagmap_t to std::unordered_map or std::unordered_set where applicable (nw) 2015-12-09 21:14:13 +01:00
Miodrag Milanovic
52612a9fdd cleanup of osdcomm.h (nw) 2015-12-09 15:20:48 +01:00
Miodrag Milanovic
791743976e Revert "Cleanup of osdcomm.h (nw)"
This reverts commit 1d40aecb58.
2015-12-09 11:37:33 +01:00
Miodrag Milanovic
1d40aecb58 Cleanup of osdcomm.h (nw) 2015-12-09 10:50:20 +01:00
Miodrag Milanovic
bc86cde3c6 VS2012 is not supported anymore (nw) 2015-12-07 19:41:55 +01:00
yz70s
e76dc64868 Show 64 and 80 bit floats in windows and qt debugger (issue #476) 2015-12-06 23:33:03 +01:00
Cowering
b910bf5a85 missed two (nw) 2015-12-06 14:01:59 -06:00
Cowering
418d057e97 fix SDL on Windows compile 2015-12-06 13:56:05 -06:00
Miodrag Milanovic
784a5e690a implementation must be removed too (nw) 2015-12-06 16:44:45 +01:00
Miodrag Milanovic
5a3352a6b0 Fix clang build on OSX/Linux 2015-12-06 16:40:18 +01:00
Miodrag Milanovic
93d0471081 Fix clang build on OSX/Linux 2015-12-06 16:39:38 +01:00
Miodrag Milanovic
ff21376524 fix for non-windows os (nw) 2015-12-06 16:33:16 +01:00
Miodrag Milanovic
3ee9b6cee4 fixing some more override (nw) 2015-12-06 09:23:23 +01:00
Miodrag Milanovic
3e5898124e some core c++11 narrowing fixes (nw) 2015-12-04 15:03:26 +01:00