rogerman
6c4e951e68
Cocoa Port: Only enable the "Use External Firmware Image" checkbox if the "Use External BIOS Images" checkbox is checked and only if both BIOS images are set.
2017-11-13 18:38:18 -08:00
rogerman
63a5cb90ae
Windows Port: Fix compiling due to BackupDevice::_info name change. (Regression from commit 0907207.)
2017-11-13 14:43:41 -08:00
rogerman
0907207222
mc.cpp: It is now possible for DeSmuME to import its own battery save file format using the new method, BackupDevice::import_dsv().
2017-11-13 14:13:09 -08:00
rogerman
3b2a9ededc
Cocoa Port: The "File > Import ROM Save File" menu option now pauses the emulation when the NSOpenPanel is up.
...
- Also disable the "File > Export ROM Save File" menu option when there is no actual file to export.
2017-11-12 20:24:26 -08:00
rogerman
509d117f5f
Cocoa Port (OpenEmu Plug-in): Update the OpenEmu plug-in to work using the latest version of the SDK.
2017-11-11 23:39:44 -08:00
rogerman
4abfa4466a
Cocoa Port: Don't compile Lua-related files right now. Let's bring them back once there's an actual working prototype of this feature.
2017-11-11 17:24:10 -08:00
rogerman
128f9d0c96
Cocoa Port: As a small optimization, the MTLBuffers used in Metal display views should use MTLResourceCPUCacheModeWriteCombined wherever possible.
2017-11-11 16:16:17 -08:00
rogerman
b03a799834
Linux Port (CLI and GTK): When building with --enable-hud, fix the segfault on startup that was caused by an uninitialized OSD object. (Fixes #107.)
2017-11-10 14:26:29 -08:00
rogerman
109dd6f373
Render3D: Change the Depth-Equal Test tolerance from +/-512 to +/-255.
...
- Special thanks to StapleButter for coming to us and informing us of this issue. 47a71941ac (commitcomment-25533528)
- This change does imply that GBATEK got this value wrong. http://problemkaputt.de/gbatek.htm#ds3dpolygonattributes
2017-11-10 09:43:54 -08:00
rogerman
89a74e5c3e
Cocoa Port: Fix a whole slew of synchronization issues in the entire client display system, hopefully improving stability.
...
- Of special note, Metal display views aren't allowed to run on macOS High Sierra because of an assert bug in [id<MTLDevice> newBufferWithBytesNoCopy:length:options:deallocator:] in this particular version of macOS. Note that Metal display views will continue to work with macOS El Capitan and macOS Sierra.
2017-11-10 01:31:50 -08:00
zeromus
57f5fa0e6e
Merge pull request #112 from atsampson/master
...
Linux Port: Fix missing semicolon.
2017-10-25 11:36:49 -04:00
Adam Sampson
d74ab529a7
Linux Port: Fix missing semicolon.
...
This was lost in 0869afded6315fb14d2265e8b3872b36ccc3fdce's refactoring.
2017-10-25 14:40:28 +01:00
rogerman
0869afded6
GPU: All GPU settings are now staged. Pending settings are applied only right before the GPU actually renders.
...
- Of note, initialization of the 3D rendering engine is also staged, where the pending engine is initialized prior to applying the 3D rendering settings. However, only ports that support this behavior will do this. Ports that do not support this behavior will work the same way as before (initialize the 3D engine immediately).
2017-10-24 09:40:56 -07:00
rogerman
3ca9e871e8
Colorspace Handler: Fix some pixel alignment issues in ColorspaceConvertBuffer555XTo888_AVX2() and ColorspaceConvertBuffer888XTo888_AVX2(). (Related to commit 858b05d.)
...
- Also do some additional optimizations while we're at it.
2017-10-23 15:51:39 -07:00
rogerman
1be210271b
Windows Port: AVI RGB888 color conversions are now multithreaded, and are also vectorized for SSSE3 and AVX2. (Fixes #105.)
2017-10-23 12:21:42 -07:00
rogerman
4c950d2a37
Colorspace Handler: Oops! Fix compiling in colorspacehandler_AVX2.cpp. (Related to commit 858b05d
. Fixes #111.)
2017-10-23 11:11:49 -07:00
rogerman
8e16b618a7
Colorspace Handler: Fix bug where RB-swapping in ColorspaceConvert555XTo888() would cancel itself out, leaving RB unswapped in all cases. (Related to commit 858b05d.)
2017-10-22 23:31:24 -07:00
rogerman
858b05df79
Colorspace Handler: Add new functions for converting 16-bit RGBA5551 and 32-bit RGBA8888 color buffers to 24-bit RGB888.
...
- Also improve the performance of RGB555-to-RGBA6665 and RGB555-to-RGBA8888 conversions.
2017-10-22 22:14:05 -07:00
rogerman
2bc3be0711
Cocoa Port: Bottom-tier GPUs running an OpenGL display presenter now use faster (but less accurate) shaders for Bicubic B-Spline and Bicubic Michell-Netravali.
2017-10-22 22:08:41 -07:00
rogerman
d9394594bf
Cocoa Port: Fix bug where touch locations were being improperly calculated on Retina displays. (Regression from commit 059ea51
. Fixes #110.)
2017-10-20 14:21:47 -07:00
rogerman
97525d94d7
Colorspace Handler: Properly maintain the alpha value when applying intensity to an RGBA5551 color buffer.
2017-10-20 13:03:03 -07:00
rogerman
64d32dca0e
Cocoa Port: In the Screenshot Capture Tool, users can now assign the save directory by drag-and-dropping a folder onto the NSTextField.
2017-10-20 13:02:06 -07:00
rogerman
70d6df40d6
Cocoa Port: Enable Lua's ability to use dynamic-linked libraries.
2017-10-20 12:50:48 -07:00
rogerman
45572fb277
Render3D: Assume the initial states of the 3D rendering instead of initializing them with CommonSettings. Most notably, assume that _enableTextureDeposterize = false in order to force it to create its buffer later on. Fixes a potential crashing bug whenever Texture Deposterization is enabled. (Regression from commit 15a19ba
. Fixes #109.)
2017-10-19 16:11:55 -07:00
rogerman
711115921b
Cocoa Port: Begin setting up support for LUA.
2017-10-19 11:06:05 -07:00
rogerman
15a19ba02f
Render3D: All 3D rendering settings are now staged. Pending settings are applied only right before the 3D renderer actually renders.
2017-10-18 15:45:46 -07:00
rogerman
8be15113e2
Linux Port (GTK-Glade): Fix screen drawing for GTK-GL. (Regression from commit f5c9a36.)
2017-10-17 23:31:00 -07:00
rogerman
43e740c661
GPU: Fix the clear color on big-endian systems when running RGB666 and RGB888.
...
- Also endian swap the BGnX and BGnY values on big-endian systems. This is a non-functional change, and is only meant to show that the endian swaps are indeed the correct choice for big-endian.
2017-10-17 18:49:05 -07:00
rogerman
f5ead86d89
Cocoa Port: Fix various presentation issues, focusing mostly on the OpenGL presenter and the Screenshot Capture Tool.
...
- Changing the display video source now updates the display window properly while the emulator is paused.
- Fix bug in the Screenshot Capture Tool where screenshots would have incorrect colors if taken on a PowerPC Mac.
- Fix bug in the Screenshot Capture Tool where screenshots would be completely black if a CPU-based pixel scaler on OpenGL was used.
- The OpenGL presenter's GPU tiering system has been changed to be more strict. This effectively pushes many older GPUs into lower tiers.
- The following pixel scalers now require at least a Low-Tier GPU (previously only required Bottom-Tier): 2xSaI, Super2xSaI, SuperEagle, HQ3x, HQ3xS, HQ4x, HQ4xS
- The following pixel scalers now require at least a Mid-Tier GPU (previously only required Low-Tier): 2xBRZ, 3xBRZ
- Due to the new changes to the GPU tiering system and allowed pixel scalers per tier, the Screenshot Capture Tool running OpenGL now allows pixel upscaling on the GPU instead of disabling it completely.
2017-10-17 13:45:55 -07:00
rogerman
e8e3200a23
GFX3D: Fix bug where 3D would fail to render on big-endian systems. (Regression from commit c6a5740.)
2017-10-16 17:38:37 -07:00
rogerman
ba6e8e0bab
Cocoa Port: Fix a bunch of HUD coloring issues on PowerPC Macs.
...
- Also fix a display backlight intensity issue on big-endian systems.
2017-10-16 17:03:01 -07:00
rogerman
c31a5717ab
Cocoa Port: Whenever attempting to take a screenshot using the Screenshot Capture Tool, simply cancel the operation altogether if the target directory does not exist or is not writable.
2017-10-16 12:11:57 -07:00
rogerman
7d2c70b7a8
Cocoa Port: Fix some issues with the Screenshot Capture Tool.
...
- Fix potential crashing bug that may occur if the target directory
isn’t found when clicking the Take Screenshot button.
- In the Display Layout dropdown panel, reposition the Display
Separation menu to be in the center section instead of in the leftmost
section.
2017-10-16 11:56:24 -07:00
rogerman
649587fcb1
Cocoa Port: Change CommandAttributes, now renamed ClientCommandAttributes, to call a C function pointer instead of an Objective-C selector when dispatching its command function.
2017-10-16 11:35:49 -07:00
zeromus
5c9fbdfb06
winport-fix some screenshots
2017-10-15 16:07:28 -05:00
rogerman
baef8b3fda
Cocoa Port: In the Screenshot Capture Tool, allow users to override the default display scale (calculated from GPU Scaling Factor) with their own user-defined display scale.
2017-10-14 17:29:59 -07:00
rogerman
73b5074313
OpenGL Renderer: Bring back support for handling the transparent polygon ID check. This fixes many graphical glitches involving transparent polygons in many games. (Regression from r5372. Fixes #74 and fixes #24.)
2017-10-13 18:35:05 -07:00
rogerman
9bfbaf23b8
GFX3D: Correct some notes about the POLYGON_ATTR Mode attribute.
2017-10-13 17:30:00 -07:00
rogerman
5f0c4ecf52
OpenGL Renderer: Shadow polygons doing the polygon ID check should only update the stencil buffer once instead of twice.
2017-10-11 12:45:29 -07:00
rogerman
8e94926072
OpenGL Renderer: Fix bug where translucent fragments drawing on top of zero-alpha fragments were not overwriting the destination fragment color as intended. (Regression from commit 2a1aaf7.)
2017-10-10 17:43:43 -07:00
rogerman
47a71941ac
OpenGL Renderer: Add true support for the depth-equals test by properly emulating the tolerance value. This fixes many longstanding bugs related to missing polygons, Z-fighting glitches, and other misc. graphical glitches in many games.
2017-10-10 11:25:16 -07:00
rogerman
2a1aaf727e
OpenGL Renderer: Reduce the number of stencil bits needed to emulate the shadow volume mask from 2 to 1.
2017-10-09 14:05:53 -07:00
rogerman
c9025e81cb
OpenGL Renderer: The fragment depth calculation now works more like how SoftRasterizer does it.
...
- Also update some comments in gfx3d.h.
2017-10-09 11:05:56 -07:00
rogerman
c6a5740665
GFX3D: Rework polygon attributes and texture parameters using the latest coding style. Also improve the performance of SoftRasterizer while we’re at it.
2017-10-06 17:13:08 -07:00
rogerman
e7d63e6cd2
GFX3D: Reduce the memory requirement of the vertex lists to one-third of its previous size.
...
- Has the positive side-effect of improving the OpenGL renderer's performance when many vertices are used.
- Also fix the vertex list double-buffering so that it actually works as intended.
2017-10-04 16:55:08 -07:00
rogerman
f4c01c4b57
GPU: Fix bug where the backlight intensity would be incorrectly averaged if frameskipping is enabled. (Regression from commit f5c9a36.)
2017-10-04 00:32:43 -07:00
rogerman
6ca2dbe6d0
Cocoa Port: Fix a crash and a potential deadlock that may occur when responding to host display changes. (Regression from commit 4957d7b.)
2017-10-03 23:49:18 -07:00
rogerman
addb17b660
Fix a bug where games would almost always start up with the main screen at low brightness and touch screen completely off. (Regression from commit f5c9a36.)
2017-10-03 17:28:33 -07:00
rogerman
ff4a3e0a5c
Linux Port (CLI and GTK-Glade): Add support for rendering the backlight intensity on the CPU-based display methods. (Related to commits f5c9a36
and 74ba49e.)
2017-10-03 15:16:18 -07:00
rogerman
a3a577f2e9
Windows Port: Replace the backlight kludge in the DirectDraw display method with the new ColorspaceApplyIntensityToBuffer32(). (Related to commits f5c9a36
, 3a000b6
and 74ba49e.)
...
- Also fixes a build problem in MSVC. (Regression from commit 74ba49e.)
2017-10-03 14:26:36 -07:00