xander-will
71341a27e4
Integer Scaling + Screen-Level Linear Interpolation Options ( #1976 )
2025-06-13 11:59:15 +02:00
Flyinghead
27f19a5b54
rend: fix dithering kernel
...
Use the actual PVR2 dithering kernel (standard 4x4 Bayer matrix) used on
real hardware.
Fixes the screen melt effect of Doom64 (per-pixel only).
Issue #1939
2025-05-26 19:27:02 +02:00
Flyinghead
3114394019
Merge remote-tracking branch 'origin/dev'
2025-04-05 22:30:31 +02:00
Flyinghead
130675aae3
gles3: use GL_R8 internal format for fog texture
...
regression due to 3469b7f
Issue #1886
2025-03-28 11:12:30 +01:00
Isaac Marovitz
5a110fd666
Replace sprintf with snprintf ( #1884 )
...
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
2025-03-25 18:47:07 +01:00
Flyinghead
0bf9c64b1b
Merge remote-tracking branch 'origin/dev'
2025-02-18 09:27:07 +01:00
Flyinghead
5b513cac5b
gl: use textureProj for palette texture sampling when possible/available
...
Fixes UV precision issue when doing the Z-divide manually.
Issue #1804
2025-01-21 18:18:05 +01:00
Edward Li
3114344414
[macOS] Fix booting game stuck at "Starting..." when Video Routing is enabled with OpenGL
2025-01-09 13:59:54 +01:00
Flyinghead
1bd894f941
rend: reset scissoring before drawing final modvol quad
...
See d618abc320
Issue #1797
2025-01-05 22:06:37 +01:00
Flyinghead
e18ada7225
rend: reset scissoring before drawing final modvol quad
...
See d618abc320
Issue #1797
2024-12-31 18:22:07 +01:00
Flyinghead
3f8d645c42
rend: last frame was sometimes presented after the game is stopped
...
When the clearLastFrame flag is set, renderers should return false from
Present() and RenderLastFrame() until a new frame is rendered.
2024-12-15 15:55:28 +01:00
Flyinghead
e5b1d56a7c
rend: split texture conversion routines into their own file
2024-12-14 19:07:18 +01:00
Flyinghead
d789b57412
rend: get rid of globals for fog/palette updates & tex cache flush
...
Add state vars to Renderer
Use events to detect loading a state and terminating the game.
Don't present last rendered frame after game terminated.
2024-12-14 17:00:51 +01:00
Flyinghead
421245aeba
lightgun xhair: centralize logic in crosshairNeeded()
2024-12-13 17:21:32 +01:00
Flyinghead
354d649ebd
Merge remote-tracking branch 'origin/master' into dev
2024-12-07 20:38:55 +01:00
Flyinghead
a9fa33c17a
gl: test glBlitFramebuffer compliance and disable its use if failing
2024-11-26 10:03:33 +01:00
Flyinghead
b4dcc64ef6
android: draw onscreen gamepad with imgui
...
Get rid of Renderer::DrawOSD.
gl: make a GlQuadDrawer class.
Draw on-screen gamepad using imgui.
Clean up vgamepad interface.
2024-11-22 14:42:51 +01:00
Flyinghead
d618abc320
rend: modifier volumes must be clipped
...
Modifier volumes should also be clipped when needed.
Implement outside clipping for non-OIT renderers.
OIT renderers are less affected since the shadowed polys themselves are
usually also clipped after shadow is applied.
Fixes overflowing shadows in baserunner cams in WSB 2K1.
2024-11-17 12:09:40 +01:00
Flyinghead
b2c6159b10
Merge remote-tracking branch 'origin/dev'
2024-10-11 15:28:19 +02:00
Flyinghead
2653c5ed73
naomi2: fix modifier volumes clipping
...
Don't clip modifier volumes but tesselate triangles intersecting the
near plane. Then project clipped vertices onto it in the vertex shader.
Issue #1651
2024-09-29 16:42:38 +02:00
Flyinghead
f179c00bdd
gl: fix Delay Frame Swapping pacing issue on android
...
Partial revert of c83b0e325f
.
Fix root issue in OpenGLRenderer::DrawOSD.
2024-09-24 14:50:41 +02:00
Flyinghead
245b9043c5
gl: GL_READ_FRAMEBUFFER doesn't exist in GLES2
...
and glBindFramebuffer isn't needed at this point
2024-06-19 15:06:13 +02:00
Flyinghead
4cd6278104
rend: force palette update when setting dx order. extra depth for cvs
...
Force palette update when changing directx color order.
Add 10k extra depth scale to Capcom vs SNK 2000 Pro and cvs.zip to fix
winner character portraits not appearing during ending.
Issue #1546
2024-06-08 16:43:52 +02:00
Flyinghead
ec82c7b9ed
gl: only display crosshairs when needed
...
regression due to 4f834610b3
2024-05-18 12:11:08 +02:00
Flyinghead
4f834610b3
gl: refactor vmu and xhair drawing. Blit rendered frame only once
...
Refactor vmu and xhair drawing to use the same code as libretro.
Fix an issue were each rendered frame was blit twice to the backbuffer.
2024-05-17 17:37:32 +02:00
Flyinghead
35acb7e62c
ui: load savestate thumbnails asynchronously. limit thumbnail size
...
GetLastFrame can take max width or height.
Limit width of savestate screenshot to 640.
Load savestate thumbnail in async task.
2024-05-14 14:23:40 +02:00
Flyinghead
6f0581032b
save screenshot. add screenshot to savestates
...
Retrieve last frame rgb data (gl, vk, dx9, dx11).
Specific save screenshot code for android, iOS and UWP.
Add Save Screenshot emu key (F12 by default)
vk: defer deletion of in-flight textures when texture cache is cleared.
vk: fix issue when updating imgui textures after a render pass has begun
(achievements)
vk: palette texture not updated after a state has been loaded.
gl: Move opengl-specific stuff into opengl imgui driver.
savestate: Add non compressed header, following by screenshot png data,
before actual savestate.
Issue #842
2024-05-13 15:47:34 +02:00
Flyinghead
13302b87c8
move ui to its own folder
2024-05-07 22:23:51 +02:00
Flyinghead
ceec01ac2e
ui: use imgui for vmu on pause menu. toast notifications
...
Allow nearest sampling with imgui textures (vmu, crosshair)
Use raii for styles and colors
2024-05-06 21:31:04 +02:00
Flyinghead
236b747db8
gl: fix GLES2 build
...
Issue #1470
2024-03-28 17:48:39 +01:00
Flyinghead
3ffb09ec72
gl: fully recreate opengl texture when loading a custom one
...
Regenerate texID and call glTexStorage2D when loading a custom texture
(GL 4.2+, GLES3).
rend: missing old_vqtexture_hash in move constructor.
2024-03-14 12:56:11 +01:00
Flyinghead
19a240503d
minor clean up
2024-02-29 16:26:49 +01:00
Flyinghead
3469b7fca7
gl: use red for single channel textures instead of alpha on GLES3
...
Only GLES2 needs to use the alpha channel. glTexStorage2D only supports
red.
Issue #1391
2024-02-09 12:59:50 +01:00
flyinghead
c146a92f83
Merge pull request #1379 from flyinghead/dev
...
merge dev branch
2024-02-03 18:25:15 +01:00
Flyinghead
e714e94510
rend: do bilinear filtering of palette textures on the GPU
...
All renderers updated.
2024-01-31 16:46:25 +01:00
Flyinghead
8715e5a5e9
gl: use glTexStorage/glTexSubImage to update textures when available
2024-01-31 16:03:07 +01:00
Flyinghead
57c88e07c4
gl: even better test to detect the nouveau driver
...
Issue #1373
2024-01-29 10:51:48 +01:00
Flyinghead
88fd2641d9
pvr: allow blending for opaque polys of list continuations
...
Fixes Crackin'DJ invisible background animation and Monkey Ball grey map
background.
2024-01-23 19:20:40 +01:00
Flyinghead
07d6ca6c84
gl: better test to detect the nouveau driver
...
GL_VENDOR=nouveau or GL_RENDERER=NVE4 (case insensitive)
Issue #1373
2024-01-22 09:18:17 +01:00
Flyinghead
032cc17659
video routing fixes
...
dx11: terminate video routing in DX11Renderer::Term. Don't use
DX11Context.
dx11: avoid using local static vars
gl: don't send rendered frame when full FB is on
gl: send rendered framebuffer
gl: terminate video routing in termGLCommon. Don't use GLGraphicsContext
gl: avoid crash on quick exit during test automation
2024-01-05 12:46:39 +01:00
scribam
6aa59c54a5
Minor misc changes ( #1360 )
...
* core: cleanup include headers
* dx11: remove unimplemented function
* core: annotate destructors with override
* aica: use range-based for loop
* bm: use const reference/structured bindings with blkmap
2024-01-02 14:38:16 +01:00
Bobby Smith
57c2dcd961
[Libretro] Fix VMU scaling for dynamic res games
2023-12-21 14:20:34 +01:00
vkedwardli
790f5b1ad2
Video Routing Revamp ( #1323 )
...
* Update Spout2 dep
* Remove all `initVideoRouting` call from `GraphicContext`
* Fix MinGW build error
2023-12-21 14:19:57 +01:00
scribam
105ab95efa
deps: update imgui and implot
2023-11-25 17:08:01 +01:00
Bobby Smith
78a874d20e
Add slider to change crosshair size and a core option for the Libretro core ( #1304 )
2023-11-18 13:44:57 +01:00
Bobby Smith
665ef86cf0
[Libretro] Change VMUs scaling for GL/D3D11
2023-11-15 11:55:25 +01:00
Flyinghead
73cbd7a183
libretro: crosshair/vmu invisible with gl per-triangle/per-strip
...
libretro needs ofbo.aspectRatio to be set when drawing crosshairs and
vmus
2023-11-15 11:47:34 +01:00
Flyinghead
ab25cc73a9
libretro: fix lightgun crosshair blend func and size
...
Use upscale factor for lightgun crosshair (opengl, dx11)
Fix crosshair blend function (opengl)
2023-11-14 15:46:44 +01:00
Flyinghead
98a0f2b821
gl: frame upside down with GLES 2.0 if video shift is on
...
drawQuad ignores the swapY param if vertices are provided so swap Y
coords of vertices.
2023-10-25 16:53:25 +02:00
Flyinghead
4fafa91506
gl: disable dithering with GLES 2.0
...
GLES 2.0 doesn't allow initialization of const arrays.
Fixes MINIDUMP-1YP MINIDUMP-1YQ
2023-10-25 16:51:44 +02:00