Commit Graph

91 Commits

Author SHA1 Message Date
Anthony Pesch 3f2e5ae9f2 don't invalidate last video source when video output is disabled 2017-11-22 00:50:27 -05:00
Anthony Pesch 225592a955 initial support for background textures 2017-11-22 00:50:26 -05:00
Anthony Pesch 58c43da2cc added host debug menu
added audio/video sync option
enabled video sync by default
2017-11-21 21:03:51 -05:00
Anthony Pesch eca0c94b2c throttle the ui to 60 fps
ran latest clang-format
2017-11-21 21:03:50 -05:00
Anthony Pesch 6e9f8b9ddb split joystick input into positive / negative keys such that it can
easily be bound to the keyboard
2017-10-19 15:38:16 -07:00
Anthony Pesch 1e412dac1d simplified and optimized memory access code
hid all fastmem-related code behind HAVE_FASTMEM define
2017-10-18 18:40:28 -04:00
Anthony Pesch 046411f8f8 added support for honoring VO_CONTROL->blank_video
added support for rendering the raw framebuffer in case it is
directly written to
2017-10-14 10:23:23 -04:00
Anthony Pesch 7c277d5038 run each frame up to the vblank_out, not vblank_in, enabling the code ran during
vblank to be ran in parallel
2017-10-14 10:23:14 -04:00
Anthony Pesch daf3b61e35 render latest ta context if a new one isn't submitted before vblank in single threaded mode as well 2017-10-14 10:23:14 -04:00
Anthony Pesch f7e08114ab added arm7 debug menu 2017-10-07 15:29:20 -04:00
Anthony Pesch dcf1ff4282 remove debug menu option, default disable it 2017-10-05 23:36:08 -04:00
Anthony Pesch 0593853b2a removed debug menus for options that are now accessible through the ui
added key mappings as options
added return value to keydown events so they can be cancelled
2017-10-05 18:08:16 -04:00
Anthony Pesch 8d4486b2c3 use ints for keycode 2017-10-05 12:28:07 -04:00
Anthony Pesch 59c8dd9ea5 move all stat definitions into stats.c / stats.h 2017-10-03 19:05:29 -04:00
Anthony Pesch b2f780dbe7 place all options in options.c / options.h
added assert.h, log.h, math.h and string.h to core.h to reduce includes
2017-10-03 17:52:50 -04:00
Anthony Pesch 0b4ed0c3ab don't try to render a frame when dreamcast is suspended
remove extern "C" from each imgui_* function
2017-10-01 20:01:30 -04:00
Anthony Pesch 7e7aa80c62 changed region patching to patch each game for all regions vs
patching the flash settings for a particular supported region

added post_init callback to device, removing the need for the
call to bios_preboot
2017-09-29 20:26:53 -04:00
Anthony Pesch adcebc3779 remove patch code 2017-09-29 20:26:53 -04:00
Anthony Pesch 6957c0aea0 simplify host interface by directly calling into user functions
don't pass initial renderer struct to emu_create
2017-09-29 20:26:51 -04:00
Anthony Pesch 083db97f9c remove host_ and guest_ prefix from emulator callbacks
don't call dc_resume redundantly
group audio / video / input state in host by respective type
clear color buffer in gl_backend in case the emulator's video output isn't being stretched to fit the window
remove old texture handle system that enabled the render backend to share texture handles across backends
2017-09-11 21:48:11 -04:00
Anthony Pesch aaa58d7142 moved imgui and microprofile 2017-09-10 20:25:57 -04:00
Anthony Pesch 1067df8099 tile accelerator / renderer tlc
standardized some parameter names, added comments to provide an overview of the ta functionality
2017-09-05 18:39:09 -04:00
Anthony Pesch ac82825cb5 moved imgui code up into host to prepare for frontend 2017-09-01 01:13:56 -04:00
7oxicshadow 81c87fc838 added support for persistent debug menu toggle
added support for persistent fullscreen toggle
2017-08-12 00:44:17 -04:00
Anthony Pesch 68e2cb47dd rename array_size to ARRAY_SIZE 2017-08-10 17:08:26 -04:00
Anthony Pesch b1662457a1 windows compile fixes 2017-07-26 17:07:19 -04:00
Anthony Pesch f6c8642d21 add 16:9 aspect ratio 2017-07-23 19:00:58 -04:00
Anthony Pesch 817e91e058 avoid overwriting persistent aspect ratio option when forcing aspect
ratio due to a widescreen hack being enabled
2017-07-23 12:20:57 -04:00
Anthony Pesch 173aa37b33 default to 4:3 aspect ratio if no widescreen patch is available 2017-07-22 01:21:44 -04:00
Anthony Pesch d37dc725c6 initial widescreen patching support 2017-07-21 21:29:08 -04:00
Anthony Pesch 54e61ef637 rename ENABLE_* defines to HAVE_* 2017-07-19 19:15:21 -04:00
Anthony Pesch 38f7fe536a added aspect ratio options 2017-07-18 21:03:21 -04:00
Anthony Pesch 4b45de9d7c removed inter-frame input polling 2017-07-18 00:08:58 -04:00
Anthony Pesch 7cb3f56f54 respect original aspect ratio of dreamcast video 2017-07-17 00:33:50 -04:00
Anthony Pesch d796f47cc8 added back video_resized event which was accidentally removed 2017-07-16 15:27:39 -04:00
Anthony Pesch 37bb1137b6 moved rendering back to the main thread, avoiding excessive context switching
removed offscreen fbo used for rendering the current frame
2017-07-15 16:27:23 -04:00
Anthony Pesch 1df4e5d3a4 remove unnecessary secondary GL context 2017-07-10 01:21:24 -04:00
Anthony Pesch f007ca1f4a Revert "remove inter-frame input polling"
This reverts commit 089c3016cc.
2017-07-05 00:24:43 -04:00
Anthony Pesch d392e2dfe5 break out of emu_run_frame loop based on vblank event, not render event. this
fixes games which render a loading / notice screen once (not every frame) and
don't render again until the user presses a button
2017-07-01 16:25:40 -04:00
Anthony Pesch 089c3016cc remove inter-frame input polling 2017-07-01 16:17:21 -04:00
Anthony Pesch 917674d94c moved trace.c 2017-07-01 16:17:20 -04:00
Anthony Pesch 80f806492f fix assert on video context destroy 2017-06-16 22:10:10 -04:00
Anthony Pesch 67612f9055 move renderer creation to host 2017-06-16 19:22:23 -04:00
Anthony Pesch 955a2ae89c add frame time debug graph 2017-06-15 23:55:30 -04:00
Anthony Pesch b8da4eada6 add ENABLE_IMGUI 2017-06-15 21:57:11 -04:00
Anthony Pesch 2a1781922c fixed issues with bios over-invalidating flash
added flash_erase helper
removed some unnecessary casts
2017-06-13 17:33:20 -04:00
Anthony Pesch d4a4f0bb2a moved hw and hle code to guest 2017-06-12 20:09:52 -04:00
Anthony Pesch 55da995676 windows build fixes 2017-06-11 21:32:43 -07:00
Anthony Pesch acd9e6c4a9 initial hle flash support 2017-06-11 23:11:08 -04:00
Anthony Pesch d106733ee0 rename exception struct to exception_state to resolve collison in <math.h>
don't write out flash modifications until program exit
2017-06-11 15:37:32 -04:00