Commit Graph

139 Commits

Author SHA1 Message Date
nattthebear ebe789eed2 heh 2017-05-10 07:45:23 -04:00
adelikat 59139ab266 Spell out Numerator and Denominator 2017-05-05 11:25:38 -05:00
adelikat 62a13d961d Move VsyncNum and VsyncDen out of CoreComm and into IVideoProvider 2017-05-05 11:21:37 -05:00
J.D. Purcell 303e8d41e9 Cleanup code to create GUI Renderer. 2017-04-29 17:49:34 -04:00
J.D. Purcell 676da1002d Update MultiHawk's DisplayManager. Because I was testing out multiple D3D controls. 2017-04-09 22:44:58 -04:00
J.D. Purcell 93aeffe69e Remove some duplicate/unused code in MultiHawk. 2017-04-09 21:47:59 -04:00
J.D. Purcell f1dee6c20e Fix flickering when toggling vsync on/off (e.g. while fast forwarding). 2017-04-08 16:56:15 -04:00
J.D. Purcell 0b81463408 Make sure Direct3D objects get disposed. Fixes all SlimDX warnings when exiting. 2017-04-08 15:18:55 -04:00
zeromus f7638e8352 "fix" client.bufferwidth and client.bufferheight .... I dont understand why they were doing what they were doing. It seems like such a simple thing, just return the dimensions of the core's videoprovider. Someone should rethink all these (and the surface names, and the padding names) and craft a complete, new design. 2017-01-26 00:54:44 -06:00
zeromus 676b5791f6 lua: add gui.DrawFinish() which will let you choose when to finish drawing; and add optional argument to gui.DrawNew which when set to false lets you keep it from being cleared. 2016-04-21 16:43:37 -05:00
zeromus 3adc8f7c82 dont send 0-sized framebuffers deep into displaymanager (prevents crashes when sending fullscreen windows to other monitors sometimes, and probably other bugs) 2016-04-20 12:33:59 -05:00
zeromus 1a1a688b96 remove NeedsToPaint; client now repaints ~100fps while paused all the time. as it already did when input display was enabled. fixes #615.. probably 2016-04-20 12:17:41 -05:00
zeromus f1ea49133d fix bug in d3d alternate vsync + frame advance 2016-03-29 03:05:00 -05:00
zeromus 17cae0ad1c fix old bug in raw screenshot with game extra padding 2016-03-27 21:02:18 -05:00
zeromus e426b33017 fix new bug in game extra padding 2016-03-27 21:02:18 -05:00
zeromus 10272b4857 add alternate vsync method for d3d display method, in case youre the lucky owner of a system that sucks 2016-03-27 04:49:17 -05:00
zeromus 406b431280 add comments for later about triple buffering 2016-03-26 12:39:31 -05:00
zeromus 3deb7fcb31 add autoprescale concept. default it to on, since really I can't think of when you'd ever not want it, except in some very low-spec system scenarios. Add NOP concept to filter chain, potentially troublesome 2016-03-23 20:26:31 -05:00
zeromus 86b3ecf7b8 displaymanager: change how windows shrink to <1:1 by shrinking content instead of attempting to inversely 'letterbox' it by shoving it offscreen (fixes #579) 2016-03-04 01:59:25 -06:00
zeromus 95bc69b448 some prepwork for opengl texture ID importing (skip rendertarget resolve on OGL display method) but there are still problems and it can't be enabled yet 2016-02-22 00:23:20 -06:00
zeromus 07e93e6b4f add comments about what not to do in DisplayManager 2016-02-06 15:00:05 -06:00
zeromus e0d74c7718 better error handling in shader compiling. kind of sloppy, but gets the job done. entire system could use a little rethinking, if i ever revisit filters 2016-02-03 02:28:03 -06:00
feos 128c09e7b4 progress with lua:
- added fceux and gens/snes9x pixelated fonts
- added gui.pixelFont() function for them (no resizing, so perfectly scalable)
- added background to drawText and pixelText (halo was painfully slow, so just a box)
- reordered fore and back colors for gui.text (no need to specify back every time we want to change fore). thought its back color was shadow, that is obsoleted by halo now, whose color we can't change. anyway, it's way slower than simple text functions, so they should be used mostly.
- option to toggle all scripts if none is selected. greatly reduces routine when heavily tweaking a script, and is just generally pretty.
2015-11-28 22:19:15 +03:00
feos 1928d04137 default font now has halo.
if someone really prefers the shadow way (why would anyone?), it can be made optional. well, halo color can't be edited. regarding lua, this only affects gui.text, since it uses the same bitmap font.
2015-11-26 22:51:48 +03:00
zeromus ea45f40743 fix error in sizing of lua draw buffers with SetGameExtraPadding (and probably ClientExtraPadding) use 2015-11-13 15:07:14 -06:00
zeromus 4fe51a1364 support custom AR selection in addition to custom exact-specified resolution 2015-10-25 02:15:59 -05:00
zeromus 3919f5f5d3 support #include in .cg files 2015-10-18 21:13:12 -05:00
zeromus bd795ed162 validate shaders when selecting them from display manager config dialog to prevent setting broken shaders. also specifically reject .cgp containing .glsl references 2015-10-17 19:28:57 -05:00
zeromus c3ff70b864 fix gameExtraPadding coordinate translation and revise lua autodoc for the concerned functions. Presently the entire assortment of functions is confusing, but at least it does something that works. 2015-10-16 19:17:23 -05:00
zeromus 19b3f8b205 retro shaders no longer need sampler to be named s_p 2015-10-15 20:10:58 -05:00
zeromus 7f5546fac4 tidy some oddities with the scanline filter 2015-10-15 20:10:35 -05:00
zeromus cfe215d6c0 repair lousy assortment of built-in shaders (fixes #518) 2015-10-13 17:18:41 -05:00
zeromus 21579c1c86 lua - add client.SetClientExtraPadding 2015-10-12 20:30:09 -05:00
zeromus 787cb82e28 fix problem with client.SetGameExtraPadding distortion in >1x window scales. This logic is insanely complex, so regressions are possible. 2015-10-12 19:57:11 -05:00
adelikat 08978978d0 issue #493 - add option to not display OSD messages 2015-09-05 16:48:37 -04:00
zeromus 7e828d5618 d3d display method 2015-08-24 13:10:50 -05:00
zeromus 3f78e2e70f add feature to display config > misc tab for disabling display of screen and hud for true maximum turbo performance. also display FPS in window caption during that mode, so you can still tell what's going on 2015-08-17 23:26:19 -05:00
zeromus 0cd3a82862 psx - improve framebuffer clipping method, add deinterlacer settings, fix some PAR for PAL games; fix bugs in GameExtraPadding handling 2015-08-09 13:57:45 -05:00
adelikat 791089a06d Rerecord count OSD: don't display "Rerecords: " 2015-07-09 14:14:06 -04:00
zeromus db1191dc48 emuhawk - add experimental prescale option to display manager 2015-07-06 12:31:30 -05:00
zeromus e77c1455b3 canvas extension: ok, this works better 2015-03-23 03:43:39 +00:00
zeromus dfafee2b25 here's one way of extending the canvas. I dont think it's right. I can't test it now anyway, I'm checking it in for reference. I will probably revert it and do it another way: add a filter after the input filter but before the "emu" surface filter. 2015-03-23 03:19:06 +00:00
adelikat eccbe1ce2a MultiHawk - removing more stuff 2015-03-09 21:06:40 +00:00
adelikat 307845b3b5 Lua - recover from a locked drawing surface exception and log to the console, rather than crash the emulator 2015-01-29 02:14:39 +00:00
jdpurcell 798f882457 Redo r8309. Try a different fix for vsync not taking effect at startup. 2015-01-15 15:56:23 +00:00
jdpurcell 28f1ad1c0e Allow clock throttle to take over for audio / vsync throttles during fast forward or rewind for proper speed control. 2015-01-13 04:21:32 +00:00
hegyak 9dea7cf0b0 Hide Frame Count on Null Emulator. 2014-12-16 04:31:07 +00:00
hegyak 69473b842c Correct Issue 343 2014-12-16 03:36:38 +00:00
zeromus 979fa2c0f7 displaymanager - maybe, just maybe, successfully get rid of the need for 0xFF000000 in the VideoProvider buffers. Should enable some little speedups and cleanups of other code that had to add the 0xFF000000 alpha channel 2014-12-13 23:04:22 +00:00
zeromus ba3a6ca817 display manager: dont crash when receiving 0,0 buffer size to autosize to, even though that was probably a mistake 2014-12-12 00:39:50 +00:00