vkedwardli
0cbf6f6601
Fixing Steam Deck's wrong dpi caused by incorrect 60mm * 60mm EDID ( #796 )
2022-10-27 22:00:22 +02:00
bslenul
c8fc873cf9
[Game List] Separate DC and arcade games
2022-10-26 15:37:17 +02:00
Flyinghead
b935bef906
gl: missing init of width and height in GlFramebuffer
...
gl,vk,dx9,dx11: always use the TA context copy for TA_GLOB_TILE_CLIP and
SCALER_CTL
2022-10-25 17:50:41 +02:00
Flyinghead
c1f0dd81d2
pvr: copy pvr regs at start_render time to avoid concurrent update
...
copy TA_GLOB_TILE_CLIP and SCALER_CTL to rend context when starting
render. Use rend context copy to calculate framebuffer size.
Fixes framebuffer size glitches in vf4 water stages.
lr: pass aspect ratio when resizing.
dx11: Wrong sizing of rotated games.
gl: test automation fixes.
2022-10-25 15:00:04 +02:00
Flyinghead
5722dc90f0
Full framebuffer emulation. Renderer interface changes
...
Helps for:
Densha de Go! 2, Issue #171
Vigilante 8, Issue #275
Xtreme Sports
Sonic Shuffle
The Ring of the Nibelungen
2022-10-23 16:32:42 +02:00
Flyinghead
decf70c87c
get rid of INLINE, NOINLINE, __forceinline
2022-10-22 22:14:19 +02:00
Flyinghead
f25aeee756
audio: don't crash if audio init fails. Fall back to auto
...
Don't crash if an audio backend fails to initialize.
Fall back to auto or run without sound.
Better audio backend framework
2022-10-22 12:08:05 +02:00
Edward Li
2b36953fdc
Always fills the window with responsive size
2022-10-21 10:55:34 +02:00
Edward Li
1dcf302665
Add Aspect Fit & Aspect Fill description for Widescreen and Super Widescreen
2022-10-21 10:54:59 +02:00
Flyinghead
b2b860bb8e
gl: vmu not showing and memory corruption
...
Fix vmu not displayed
Memory corruption when restarting gl driver (android)
2022-10-20 09:49:53 +02:00
Flyinghead
0bd88fc9d9
gui: div by zero crash if window is too small
2022-10-19 10:07:48 +02:00
flyinghead
401c402afc
Revert "cmake: use more system libs ( #775 )" ( #785 )
...
This reverts commit c5c941e928
.
2022-10-19 10:04:21 +02:00
Alexandre Bouvier
c5c941e928
cmake: use more system libs ( #775 )
2022-10-18 10:04:15 +02:00
scribam
8426bcad27
vulkan: simplify function calls
2022-10-08 18:32:01 +02:00
Flyinghead
7da0549b8c
operator [0] on empty vector crashes
...
Issue #763
2022-10-04 18:21:10 +02:00
Flyinghead
b240da41e0
lr: use VK_API_VERSION_MAJOR/MINOR/PATCH
2022-09-26 11:19:15 +02:00
Flyinghead
1858cf3b33
Merge remote-tracking branch 'origin/master' into dev
2022-09-24 19:28:38 +02:00
Edward Li
2b8f5a7b9d
Print correct version info for Vulkan and MoltenVK
2022-09-21 14:43:28 +02:00
Edward Li
c2e1425209
Stop Apple fanboys from asking where is Metal
2022-09-21 14:43:28 +02:00
scribam
c9c1218234
vulkan: add deps as submodules and sync with Vulkan 1.3.224.1
2022-09-18 16:56:56 +02:00
scribam
11d776aea1
vulkan: remove external files
2022-09-18 16:56:56 +02:00
Flyinghead
4a4fa7792f
vk oit: limit drawer swap chain to 2, same as non-oit
...
Fixes flashing during partial redraws (south park rally)
2022-09-14 17:48:57 +02:00
Flyinghead
e0d87eb093
Merge remote-tracking branch 'origin/master' into dev
...
# Conflicts:
# core/rend/gui.cpp
2022-08-22 13:09:56 +02:00
Flyinghead
85b8c599c4
pvr: object list is sometimes shared between op and tr modvols
...
Region tile object list pointers can be identical for op and tr modvols,
in which case tr modvols should be drawn using op modvols geometry.
Used by crazy taxi 1/2, alien front online, daytona usa and probably
many others.
Issue #717
2022-08-22 12:38:04 +02:00
Flyinghead
71e9420929
macOS: std::exception handler not catching FlycastException
...
Catch std::runtime_error instead
vk: Clear boxart texture cache before shutting down imgui driver
2022-08-14 18:39:09 +02:00
vkedwardli
3c94cd3194
Fix macOS accent menu ( #708 )
...
* `SDL_StartTextInput` only when textfield is focused
* [macOS] "Reveal in Finder" button for Home Directory
* only enable for `USE_SDL`
2022-08-04 17:35:40 +02:00
Flyinghead
a6ac753c64
boxart: ignore disks with invalid ip_meta. sanitize disk id chars
2022-07-29 10:48:39 +02:00
Flyinghead
ad8b41adb0
boxart: extract 0GDTEX.PVR. Offline scraping
...
extract iso9660 file system utility out of reios
.pvr limited parser
2022-07-21 10:43:45 +02:00
Flyinghead
807b8dea91
lr: Framebuffer size and aspect ratio. Fix vmu size and position (GL)
...
gl4: fix lightgun xhair size and position
2022-07-19 20:26:37 +02:00
Flyinghead
8e8935b9c4
pvr: xform matrix 240p support. screen stretching changes
...
Use FB_R_CTRL.vclk_div to detect progressive mode.
transform_matrix: Support non-4:3 aspect ratio such as 640x240. Don't
expect 480 height. Issue #690
Add black bars at top and bottom if screen aspect ratio is too low.
Issue #584 .
Framebuffer size doesn't depend on screen stretching. Stretching is done
when blitting to screen.
lr: correct subsequent stretching when drawing vmus and xhair
2022-07-18 18:21:09 +02:00
Flyinghead
76bf574668
gl,gl4: disable anisotropic filtering if not linear
...
Issue #695
2022-07-15 20:36:29 +02:00
Flyinghead
19112aecb2
Merge remote-tracking branch 'origin/master' into dev
...
# Conflicts:
# core/hw/naomi/naomi_cart.cpp
2022-07-01 12:42:37 +02:00
Flyinghead
6a5db32d5d
don't protect RTT textures vram
...
Fixes Spikers Battle RTT texture spurious update before use
(transitions)
2022-06-27 13:37:22 +02:00
Flyinghead
b0f3e065be
ui: wrong scaling after imgui driver reset
...
ImGuiStyle::ScaleAllSizes() is cumulative so reset style before calling
it
Issue #676
2022-06-27 13:32:30 +02:00
Flyinghead
9a557978c4
gamesdb: fix exception when boxart is missing
2022-06-26 21:55:00 +02:00
Flyinghead
7f28b767e4
gl: boxart clamp to edge if border not supported
2022-06-24 10:57:48 +02:00
Flyinghead
5f5a748031
boxart: batch uid searches. Bios image. More arcade rom name changes
2022-06-23 22:06:50 +02:00
Flyinghead
faec4d8e50
gl: always use int arithmetic in palette index glsl calculation
2022-06-20 20:52:15 +02:00
Flyinghead
7bcd8c819a
arcade rom names update. non square boxart
...
Correct handling of non square images
Improve search for arcade game names
Retrieve other images if no boxart (titlescreen, screenshot)
Changed some arcade rom names to more friendly ones
2022-06-20 18:07:06 +02:00
Flyinghead
7209a61583
boxart: race conditions. revert dash in disk id hack
...
Filter BIOS by name like regular games.
2022-06-18 17:49:37 +02:00
Flyinghead
1523fafce0
vk: fix crash when resizing window in boxart mode
2022-06-17 16:17:58 +02:00
Flyinghead
3915c55251
boxart: skip invalid disks. fix disk id dash issue. save found status
2022-06-17 16:13:58 +02:00
Flyinghead
5259aa20e6
boxart: delete trailing [.*] in game names. Remove extension first
2022-06-16 17:03:14 +02:00
Flyinghead
11ecb473b6
new option to broadcast digital outputs over the network
...
Similar to MAME's "-output network" option. Should be compatible with
MAME Hooker and the like.
Limit boxart images loaded per frame to 10.
2022-06-16 16:50:26 +02:00
Flyinghead
54d92a11e8
build fixes
2022-06-15 22:38:05 +02:00
Flyinghead
5eb302898f
box art fetch and display
...
Issue #22
2022-06-15 21:22:12 +02:00
Flyinghead
05961ac883
android build fix
2022-06-11 13:41:44 +02:00
flyinghead
afd07c25ba
pvr: store tex address in render context. texture cache refactoring
...
Store FT_W_SOF1 and FT_W_CTRL in render context since they can be
modified before render end. New tentative fix for vf4 water reflection
flashing black during netplay.
Refactor texture cache to use constructors. RTT code moved from
renderers.
Partial revert of ddcd3861d3
2022-06-11 13:24:22 +02:00
flyinghead
d78bb9ed3f
don't list hidden folders and files on windows. Better parent dir prompt
...
Issue #666
2022-06-10 15:29:28 +02:00
flyinghead
26c8e8dab8
dx11 oit: naomi2 regression. Tr modvols shader needs divPosZ too
2022-06-01 19:26:56 +02:00
Flyinghead
fdcea88519
gl4: wrong depth for transparent polys with native depth interp
...
Issue #630
2022-06-01 19:26:56 +02:00
flyinghead
bf6c73060b
native depth interpolation option to help AMD gpus
...
When enabled, set 1/z in pos.w and use native interpolation for colors,
UV and depth.
Get rid of manual modvol clipping in dx11.
2022-06-01 19:26:56 +02:00
Flyinghead
ddcd3861d3
ggpo: don't protect rtt texture vram if ggpo is enabled
...
tentative fix for flashing water reflection texture in vf4 during
netplay
2022-05-31 17:42:42 +02:00
Enrique Santos
13bd42bdab
chat: disable window timeout after you respond to message
2022-05-30 16:15:44 +02:00
Flyinghead
167faff1f3
vk: invalid lightgun crosshair if maple device A isn't a lightgun
2022-05-28 12:58:53 +02:00
Flyinghead
5ac0772a2a
vk oit: out of pool memory with moltenvk during render to texture
2022-05-26 18:06:30 +02:00
Flyinghead
48361f58b6
vk oit: wrong temporary framebuffer dimensions
2022-05-25 16:44:24 +02:00
Enrique Santos
dcb439f74a
add ggpo chat window timeout
2022-05-23 11:42:11 +02:00
flyinghead
739a27be63
dx11 oit: render target and depth/stencil must have same dimensions
...
Fixes glitches during doa2 attract mode (depth/stencil missing).
2022-05-23 11:41:37 +02:00
scribam
12929c4571
openmp: use _OPENMP preprocessor, search openmp pkg unconditionally if enabled
2022-05-17 16:36:57 +02:00
Flyinghead
62522e4eb3
vk: naomi2 crash when lightModel is null
...
fixes crash at end of tutorial in kingrt66
2022-05-17 16:36:34 +02:00
Flyinghead
903c768f7f
vk oit: First frame after init wasn't displayed
2022-05-13 17:12:31 +02:00
flyinghead
cce8cb8528
dx11 oit: missing TextureFiltering support
...
Issue #628
2022-05-11 19:16:31 +02:00
Flyinghead
4554450d1d
oit: add max layers and pixel buffer size options
2022-05-05 18:01:05 +02:00
Flyinghead
a0d1dbf833
dx11: don't create the device in debug mode
2022-05-04 19:38:43 +02:00
Flyinghead
cf36384481
use nearest/point sampling to draw framebuffer if nearest is forced
2022-05-03 17:55:02 +02:00
flyinghead
9103371362
vk: increase descSet pool size for storage buffers and input attachments
...
Fixes out of host memory error on macOS
Issue #619
2022-05-03 17:49:46 +02:00
flyinghead
1b5ad34c8e
dx11: (oit) use temporary render target for multipass
...
Render to temporary render target at end of pass and swap with regular
RT.
Fixes Tony Hawk 2 missing transparent geometry and character shadow.
Issue #618
2022-05-03 17:47:43 +02:00
Flyinghead
3cc991fa4f
oit: poly number/vertex id overflow
...
Use 17 bits for vertex id but substract first vtx index
Use 13 bits for poly number instead of 12
Panzer Front uses more than 4095 tr polys.
Issue #616
2022-05-01 12:33:53 +02:00
Flyinghead
990a4ad583
vk: ignore pipeline cache if loading fails
2022-04-27 14:30:03 +02:00
Flyinghead
3b81bbcae5
naomi2: gmp diffuse/specular flags select vertex or model colors only
...
These flags shouldn't be used to disable diffuse/specular shading
Fixes road surface glitches in initdv3e (Usui map)
2022-04-21 13:55:09 +02:00
Flyinghead
50f5dabf4a
naomi2: use diffuse/specular color before light routing
...
fixes lion's jacket color and shun's face glitch (vf4)
2022-04-20 14:13:42 +02:00
Flyinghead
c625cc68bf
lr: increase vk descSet pool size. Insert card binding
...
vk: Use same descriptor set pool sizes for standalone and core
lr: bind "Insert Card" to L button (Naomi button 6)
lr: reset input descriptors when loading a new game
lr: don't reset maple devices in arcade mode: reloading eeprom cancels game settings
2022-04-17 13:23:16 +02:00
Flyinghead
f2f4010203
clean up types.h, refactoring
2022-04-14 11:34:45 +02:00
Flyinghead
a9e261d280
simplify TA parsing
2022-04-13 20:36:52 +02:00
Flyinghead
a710674cd4
gui: init once. reset ui driver when needed. android 120+ Hz support
...
ImGui is now initialized once at startup and shutdown before
terminating. graphics initialization is independent.
Move more imgui stuff into imgui drivers.
switch: set scaling on external screen to 1.4, same as xbox
UI scaling refactoring.
2022-04-13 18:06:19 +02:00
Flyinghead
ddfc00ed9f
Merge remote-tracking branch 'origin/master' into dev
2022-04-13 16:29:41 +02:00
Flyinghead
fd50529d86
gl: (lr) black screen when vmu display is on
...
need to call glBindVertexArray(0) to avoid VAO being modified by the
frontend
2022-04-12 18:23:09 +02:00
Flyinghead
15b21fff2b
vk: don't use anisotropic with nearest. Use linear mipmap filter
...
Issue #580
2022-04-11 13:35:48 +02:00
scribam
f46bccfecd
cmake: reunified dx9 files
2022-04-10 11:28:09 +02:00
flyinghead
d035af7ff0
xbox: low resolution (640x480) with recent firmware
...
Device ids for xbox series s/x returned from
GetGamingDeviceModelInformation() have changed
2022-04-09 12:04:51 +02:00
Flyinghead
e0058c17ff
lr: don't terminate emu on deinit. gl4: buffer wasn't released on term()
...
shared libraries containing gnuc unique symbols are never unloaded on
linux, and possibly other platforms. So don't terminate the emulator on
deinit and init it only once.
Issue #566
gl4: buffer not released on term() was causing crashes or black screen when restarted.
2022-04-05 14:53:47 +02:00
Flyinghead
bf61f5cfe8
Merge remote-tracking branch 'origin/master' into dev
2022-04-04 12:11:10 +02:00
Flyinghead
a635fb3f77
test automation build fix, better exit
2022-04-03 20:46:50 +02:00
flyinghead
2c96d49cf2
dx9, dx11: support for forced point/linear tex sampling and anisotropy
2022-04-02 11:18:48 +02:00
Hugo Locurcio
a9cabdc342
Add texture filter override setting, expose anisotropic filtering
...
The new texture filter option can be set to:
- Default (keeps the game's intended filter mode).
- Force Nearest-Neighbor (crisper appearance).
- Force Linear (smoother appearance).
Additionally, mipmapping can now be enabled on nearest neighbor-filtered
textures (which is used if nearest-neighbor filtering is enabled, including
with anisotropic filtering).
Anisotropic filtering was already implemented in both OpenGL and Vulkan,
but it was not exposed in the GUI.
2022-04-01 16:00:41 +02:00
Hugo Locurcio
90a95b4688
Add 6×, 7×, 8× and 9× options for internal resolution
...
This can be used to get a smoother image (supersampling) on
1440p and 4K displays. The 9× setting is also suited for native
resolution rendering on 8K displays.
2022-04-01 16:00:28 +02:00
Flyinghead
6c38295d62
new naomi network protocol. vblank event. initd rumble support
...
new vblank event, used by cheats, lua and naomi net
new udp net protocol for naomi. rx/tx on vblank on emu thread.
input: rumble power configurable (Issue #158 )
ui: rumble intensity slider, enable/disable upnp
aica: hook to consume midi out
decode midi out to simulate rumble for initd
upnp can now be disabled
2022-03-27 15:23:21 +02:00
Flyinghead
1e01dbb151
wrong line padding value when copying RTT to vram due to previous commit
2022-03-26 20:51:07 +01:00
Flyinghead
be270259ee
crash with RTT and copy to VRAM if width > linestride
...
RTT texture width must not exceed FB_W_LINESTRIDE
fixes Flag to flag crash
2022-03-25 15:41:16 +01:00
Flyinghead
56768f2d3d
naomi2: use TA parser. Use N2light directly with vk, dx11
...
Use TA parser to handle list type and clipping for Naomi 2 polys.
Pass all pass-throuch TA data to TA parser but stop on naomi2 command.
Set default projection matrix instead of identity (fixes Area conquered
screen invisible in initd).
Change N2Light and N2LightModel so they are usable in GLSL (vulkan) and
HLSL (dx11).
TA parser throws exception for unhandled param.
ta_vtx.cpp refactoring.
Support for subtractive lights (diffuse+specular). Used in some clubk
circuits.
Fix vulkan crash when direct FB render.
2022-03-16 17:28:45 +01:00
Flyinghead
ad08590197
vulkan: cache per-poly desc sets in map
...
avoid desc set pool exhaustion in per-triangle
2022-03-13 11:39:30 +01:00
Flyinghead
53b5588bda
Merge remote-tracking branch 'origin/master' into dev
2022-03-13 11:01:27 +01:00
Flyinghead
1015a8c098
naomi2: vulkan support
...
oit: use #define instead of functions in GLSL
2022-03-12 17:56:46 +01:00
Flyinghead
27ddc215cc
naomi2: boost lights by constant factor. simplify shaders
2022-03-08 17:38:29 +01:00
Flyinghead
c11a6cd432
naomi2: partial gles2 compatibility
...
Issue #553
2022-03-07 20:32:08 +01:00
Flyinghead
7f61b44d42
imgui: better drag scrolling code
2022-02-21 19:48:52 +01:00
Flyinghead
ecc03e3ebc
naomi: use boot rom id to configure eeprom
...
Make eeprom from scratch if it doesn't exist based on boot id info.
Override eeprom settings to make game happy
Change region to supported one
Get rid of per-rom region info in rom list
New option to configure Naomi games in free play
2022-02-18 17:35:20 +01:00
Flyinghead
d736dd027d
naomi2: initd card support. lua: fix multi-threading crash
...
initial d card reader support. insert card button.
lua: use mutex to enforce thread-safety
2022-02-16 19:02:04 +01:00
Flyinghead
214db9e0b1
gl4: depth pass need texture and UV for punch-through polys
2022-02-15 17:18:32 +01:00