Commit Graph

702 Commits

Author SHA1 Message Date
Anthony Pesch cb46c710fd move window implementation details out of header 2017-04-20 17:00:26 -04:00
Anthony Pesch 9fd243c909 move SDL code out of gl_backend 2017-04-19 23:33:56 -04:00
Anthony Pesch c38b16f001 misc fixes to get Windows mostly building 2017-04-19 20:08:09 -07:00
Anthony Pesch 3db514367d fixed several fundamental issues in ringbuffer implementation to resolve issues with garbage audio being passed to the audio backends 2017-04-19 22:03:08 -04:00
Anthony Pesch 31cde0677d updated ps4 controller profile to work on my local machine 2017-04-19 16:17:55 -04:00
Anthony Pesch 063fbfb7c8 initial ADPCM decoding support 2017-04-19 16:17:40 -04:00
Anthony Pesch f6c469889d fixed interpolation of 8-bit PCM data 2017-04-18 20:09:23 -04:00
Anthony Pesch acb77c72c9 move rendering of video display to a secondary thread
previously, all rendering occured on the primary thread, with the emulator
itself running on a secondary thread. this caused multithreading issues
when passing window and input events to the emulation thread. in order to
avoid each hardware device having to deal with these issues, the main
rendering of the video display was moved to a secondary thread, and the
emulator itself was moved to the main thread

the main thread now runs the emulator, handles window and input events,
and presents the offscreen framebuffers rendered to by the secondary
video thread
2017-04-18 19:40:39 -04:00
Anthony Pesch c29ae7b6d2 removed overly generic begin_frame / end_frame calls 2017-04-18 08:54:18 -04:00
Anthony Pesch 5fae12ddaa support sharing render_backend / OpenGL contexts 2017-04-16 19:41:47 -04:00
Anthony Pesch f4f8393ded rename render backend to be more consistent with jit / audio backends 2017-04-16 00:04:13 -04:00
Anthony Pesch 6d377e53b9 remove debug wireframe mode 2017-04-13 23:49:36 -04:00
Anthony Pesch bcdddec36c added framebuffer objects to render_backend
added rb_sync / rb_wait
rename vertex2d / surface2d to vertex2 / surface2
2017-04-13 23:37:10 -04:00
Anthony Pesch 20e3a0b8ae renamed tr structs 2017-04-13 23:05:12 -04:00
Anthony Pesch 6660c33c1c remove paint event from window listener
add multiple context support to win_gl_create_context
2017-04-13 19:21:26 -04:00
Anthony Pesch 83b74a2e46 simplify emulator lifecycle with a few asserts 2017-04-11 19:36:55 -04:00
Anthony Pesch 4529e50280 removed emu/ subdirectory 2017-04-11 18:21:44 -04:00
Anthony Pesch 0c02b2e1bf move render backend, nuklear and microprofile objects out of window 2017-04-11 18:04:31 -04:00
Anthony Pesch 4c30c2b4e5 removed unused textinput event
updated to latest clang-format
2017-04-11 08:54:49 -04:00
Anthony Pesch 9696732537 move opengl context creation over to window 2017-04-10 22:22:13 -04:00
Anthony Pesch df2cf0e916 fix sh4 lookup table generation 2017-04-01 11:53:12 -04:00
Anthony Pesch 17e32fb26d fixed parens in alignment macro 2017-04-01 11:40:38 -04:00
Anthony Pesch 768820de4a updated lse to work over multiple blocks 2017-01-31 19:54:06 -08:00
Anthony Pesch b0d69e7d20 updated ra to work over multiple blocks 2017-04-01 11:29:52 -04:00
Anthony Pesch af48774b16 added blocks to ir
added control flow analysis pass
2017-01-07 00:32:54 -08:00
Anthony Pesch 9009d156af allocate instance for each pass 2017-02-12 20:28:52 -08:00
Anthony Pesch f63c3fd7a2 temporarily scale up arm cycle count until more accurate cycle counting is added 2017-02-18 20:22:16 -08:00
Anthony Pesch d99187f608 explicitly track fastmem status instead of assuming invalidated blocks were
invalidated due to fastmem. while this was true at one point in time, after
cache reset support was added many blocks were being incorrectly compiled
without fastmem optimizations because they were invalidated by a cache reset
2017-02-18 20:18:26 -08:00
Anthony Pesch 37e2f67178 avoid resetting entire render context 2017-02-18 20:15:23 -08:00
Anthony Pesch 9276233328 check for AVX2, not just AVX 2017-02-15 20:34:41 -08:00
Anthony Pesch 4dbb061ea4 temporary disable /WX on Debug libsoundio builds 2017-02-15 20:22:24 -08:00
James Jacobsson c803ad01f3 Change default build type to RelWithDebInfo (#66) 2017-02-16 05:18:07 +01:00
Anthony Pesch f3a6d87af4 move default disabling of fastmem up to jit.c 2017-02-15 01:25:36 -08:00
Anthony Pesch 5670283ca6 disable border on menu bar menus 2017-02-15 01:11:17 -08:00
Anthony Pesch c3aecfa035 added support for using keys as analog inputs 2017-02-14 00:29:51 -08:00
Anthony Pesch 26fc11b9d2 added option to enable/disable the audio backend 2017-02-14 00:05:49 -08:00
Anthony Pesch c38a8725c7 added rb_empty_tree / rb_for_each_entry_safe 2017-02-02 15:23:01 -08:00
Anthony Pesch 1420012dea added rb_empty_node 2017-02-01 22:50:31 -08:00
Anthony Pesch b1048df88d added OP_DEBUG_BREAK 2017-01-16 18:55:50 -08:00
duodenim 41eea651ad Fix building on Visual Studio 2017 (#67)
* Use the actual instead of suggested audio latency in audio buffer calculation

* Allow compiling from VS2015+

This fixes the define in microprofile.h preventing building on versions of Visual Studio after VS2015
2017-01-23 21:44:21 -06:00
slowcoder 79e9eb7ba6 Profile (and code) for DualShock 3 controllers (#63) 2017-01-21 19:18:59 +01:00
slowcoder 01f09624f8 Allow closing of the application in normal ways (#59)
Fixes app-close on window-close
Fixes app-close on Ctrl-C/SIGINT
2017-01-20 20:22:30 +01:00
duodenim ff6d20fef1 Use the actual instead of suggested audio latency in audio buffer calculation (#61) 2017-01-20 12:19:23 -06:00
duodenim 336f290a45 Use binary mode for flash read/writes (#58)
use binary mode for flash read/writes
use binary mode for vmu read/writes
2017-01-14 12:25:30 -06:00
Anthony Pesch c4942957f3 add debug pc logging to sh4 dispatch 2017-01-08 15:38:19 -08:00
Anthony Pesch c4ac2ab941 fixed typo 2017-01-07 22:22:50 -08:00
Anthony Pesch 3e4df110f4 update profiler stats even when running slower than full speed 2017-01-06 11:17:53 -08:00
Anthony Pesch c9b4989a14 added comments around dispatch thunks 2017-01-05 09:53:07 -08:00
Anthony Pesch c9b2ad0bbd removed timing explanation from source, will add to docs
ran clang-format
2017-01-04 17:24:08 -08:00
joseph cba5a7deb0 More formatting fixes 2017-01-04 16:09:34 -06:00