Commit Graph

875 Commits

Author SHA1 Message Date
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
joseph a06c7d837c Minor formatting fix 2017-01-04 15:55:23 -06:00
joseph c01c6a1077 Validate bootrom on startup 2017-01-04 15:49:35 -06:00
Anthony Pesch 006813063e remove aica frame skipping, unnecessary being that we're timing based on the aica buffer state, not the host's buffer (#2)
give ta a fixed amount of time to render each frame until a better heuristic is figured out
2017-01-04 16:38:39 -08:00
Anthony Pesch 93cde7f1d0 restructure main emulator loop to be driven by the amount of audio available in the aica ring buffer (#1)
made audio backend discard an incoming amount of aica frames proportionate to any silence that was previously written out to keep audio time domain in sync with emulator
2017-01-04 00:45:47 -08:00
gamax92 3f8d06cdf2 Output silence frames when needed
Prevent host audio underflow by emitting silence if there is not enoguh audio

This fixes pulseaudio temporarily locking up on underflow
2017-01-03 09:38:12 -07:00
joseph 6b02d045a3 Initial support for punch-through polygons 2017-01-02 17:35:40 -06:00
Anthony Pesch 0c34c7cd9d avoid race conditions around access to texture entry's dirty state 2017-01-02 23:48:57 -08:00
Anthony Pesch 8419cce2b6 avoid excessive gdrom / aica spam
track number of TA startrenders / second
2017-01-02 12:23:47 -08:00
Anthony Pesch 3c5827a12a fixed texture cache issues caused by games writing to textures between the start and end render events, ultimately leaving textures in the cache which were no longer being watched for updates
don't write the same texture multiple times in the same frame when recording traces
2017-01-02 01:24:40 -08:00
Anthony Pesch 1941712797 avoid parsing a frame after the end of frame interrupts have been fired 2017-01-01 20:20:23 -08:00
Anthony Pesch 32a8239132 windows build fixes 2017-01-01 22:06:16 -08:00
Anthony Pesch febbcc98eb build fix for latest nuklear 2017-01-01 12:42:46 -08:00
Anthony Pesch aa78003251 add background to texture menu 2017-01-01 12:35:05 -08:00
Anthony Pesch 0e49f52ce8 updated nuklear dependency to latest, added back TA_PARAM_VERTEX to tracer param list 2016-12-31 14:49:21 -08:00
Anthony Pesch a3712864de don't calculate the minz of a surface multiple times when sorting 2016-12-31 10:17:39 -08:00
Anthony Pesch becf6561cf temporarily ignore TA_PARAM_VERTEX in tracer view 2016-12-30 23:25:14 -08:00
Anthony Pesch 31a10e09d3 ignore vertical scale factor when used for interlacing 2016-12-30 22:07:22 -08:00
Anthony Pesch 62e0dffe44 added support for twiddled YUV422 textures 2016-12-30 21:34:28 -08:00
Anthony Pesch dfac9f39ca fixed logic around detecting a launch error 2016-12-30 16:58:03 -08:00
gamax92 98c50a0d80 Add audio latency option 2016-12-30 17:32:21 -07:00
Anthony Pesch b2fd497cda separated T and S bits from sh4 status register into their own context members, sr_t and sr_s, reducing codegen by around 15% 2016-12-30 15:41:29 -08:00
Anthony Pesch d658bb2bfe remove SH4_FLAG_SET_T 2016-12-30 14:39:30 -08:00
Anthony Pesch 65d7187d9d added ASSERT_LT debug ir op 2016-12-30 14:38:48 -08:00
Anthony Pesch bf22739dd2 aggregate profiler stats every 120 frames by default 2016-12-29 23:13:37 -08:00
Anthony Pesch f6ccc7b405 render parsed TA polygon lists in predefined order (opaque -> punch through -> translucent) instead of the order they are input 2016-12-29 22:21:02 -08:00
Anthony Pesch a58afaf7c5 added x64_backend_load_mem / x64_backend_store_mem to cut down on copy and paste 2016-12-29 14:59:53 -08:00
Anthony Pesch 361b98c625 dont rely on explicit uniform layout extension
use ifdef instead of if for shader attributes
2016-12-29 11:11:39 -08:00