TwistedUmbrella
e6afd22f98
Merge pull request #1191 from baka0815/gdi_skipws
...
GDI: Reset skipws-flag
2018-06-25 10:33:34 -04:00
Flyinghead
3256e02813
Workaround for Virtua Tennis ball color problem.
...
There's a texture corruption of the tennis ball and other textures,
notably the players' bags in the first intro sequence. The corruption is
due to render to texture squashing existing textures. Not sure what's
going on but this avoids the texture corruption. The original problem
remains.
2018-06-25 15:53:28 +02:00
git@baka0815.de
852d644a5f
GDI: Explicitly set skipws-flag
...
It's not neccesarry to set it every iteration, so just set it before and reset it afterwards.
2018-06-25 09:14:51 +02:00
Christoph "baka0815" Schwerdtfeger
41ee5707a8
GDI: Reset skipws-flag
2018-06-24 14:30:46 +02:00
barbudreadmon
2e8a87cbdf
Allow loading of lst files (Naomi support #1188 )
2018-06-21 19:24:05 +02:00
TwistedUmbrella
75189f0a78
Merge pull request #1180 from baka0815/unused_code
...
Removed unused code in core/linux-dist/main.cpp
2018-06-14 15:52:23 -04:00
Christoph "baka0815" Schwerdtfeger
3d43505504
Allow for custom <device>.cfg files in the /mappings/ directory.
...
Check if a configuration file named exactly like the device exists in the /mappings/ directory.
If it does, use this instead of the generic one.
Expose file_exists() from stdclass.
2018-06-13 19:33:51 +02:00
Christoph "baka0815" Schwerdtfeger
e6854ef87d
Removed unused code in core/linux-dist/main.cpp
...
This is a leftover from #964
2018-06-13 19:17:20 +02:00
Flyinghead
08b8d30589
Implement clipping. Enabled by default.
2018-06-09 18:11:47 +02:00
Stefanos Kornilios Mitsis Poiitidis
d0cd5a5f64
Merge pull request #1152 from flyinghead/fh/modvols
...
Enable modifier volumes. Fix for exclusion volumes.
2018-06-09 17:52:51 +02:00
Flyinghead
7640a35720
Draw modifier volumes only if enabled in settings (defaults to true)
2018-06-09 17:22:01 +02:00
Flyinghead
1f95eb243c
Fix video choppiness
2018-06-07 19:06:16 +02:00
Flyinghead
2fdcf0d821
Use float constants in GLSL
2018-06-07 18:26:02 +02:00
Flyinghead
e1a86b4e0a
Fix SW1-JPB random texture corruption problem and video choppiness.
2018-06-07 17:19:49 +02:00
Flyinghead
b9fe9332cf
GLES 2 fix for fog table: use float only for vars and consts
2018-06-05 13:36:49 +02:00
Flyinghead
49e172b169
Push more silence on audio underrun to catch up
2018-06-05 12:18:42 +02:00
Flyinghead
828990b926
Texture based fog table
2018-06-05 12:18:09 +02:00
Flyinghead
a345fcc4c7
Draw modifier volumes after punch-through so they can be shadowed as
...
well.
2018-05-23 14:31:11 +02:00
Flyinghead
2f9dcfabd8
Use FPU_SHAD_SCALE.scale_factor for shadow intensity instead of
...
hardcoded value.
2018-05-23 12:26:24 +02:00
Flyinghead
488b9ab831
Add TA_GLOB_TILE_CLIP struct. Fix typo.
2018-05-23 12:05:58 +02:00
Flyinghead
bccfb5b70c
Faster implementation for translucent polys depth pass. Disabled by
...
default. Auto-enabled for Cosmic Smash.
2018-05-22 15:47:02 +02:00
Flyinghead
23a2af0a28
Add setting for THPS2. Move RenderToTextureBuffer option to rend
...
section.
2018-05-22 15:34:33 +02:00
Flyinghead
0f6249fdcf
Backport libretro per-game-settings logic
2018-05-22 15:20:37 +02:00
Flyinghead
c8034807bb
dump_frame/read_frame: save/load pvr registers
2018-05-22 13:23:07 +02:00
Flyinghead
4c7ffeb520
Per-pixel fog shading. Shaders cleanup.
2018-05-22 13:04:21 +02:00
Flyinghead
8d01bbe145
Increase Z scaling factor to 100k (fixes background menu in VR2). Set
...
depth mask before clearing buffers.
2018-05-21 16:44:18 +02:00
Flyinghead
9098fd5a22
Autosort poly: Write to the depth buffer in a second pass, and only if
...
multipass rendering.
2018-05-20 21:41:31 +02:00
Flyinghead
2d904372a9
Multipass issues: depth mask must be enabled for autosorted tr poly.
...
Depth buffer must NOT be cleared b/w passes, same for stencil I guess.
2018-05-20 14:16:43 +02:00
Flyinghead
9e994fecaa
Avoid array overflow if more than 10 render passes
2018-05-19 18:57:16 +02:00
Flyinghead
c35aa4262c
Fix OpenGL errors with modvols and multipass
2018-05-19 18:51:30 +02:00
Flyinghead
c427997269
Enable modifier volumes. Fix for exclusion volumes. Prevent overflow of modifier triangles (JGR).
2018-05-19 10:13:00 +02:00
Flyinghead
6e64fe90fc
Reverting c3a90a63a1
as well as the
...
autosort hack, which was certainly a consequence. Fixes texture
corruptions.
2018-05-18 21:35:51 +02:00
Flyinghead
d596f988c8
Revert 99bc20220e
2018-05-17 11:17:51 +02:00
Flyinghead
99bc20220e
Simplify clipping
2018-05-17 10:32:52 +02:00
Flyinghead
80c193b3de
Cache texture parameters. Fixed exclusion volume modifiers.
2018-05-16 19:34:45 +02:00
Flyinghead
e73d11d0ab
glHint nicest->fastest, and just once
2018-05-15 22:37:40 +02:00
Flyinghead
b469f05b9d
Fix wrong fog calculation issue
2018-05-15 21:19:58 +02:00
Flyinghead
d8165376be
GL cache fix
2018-05-15 16:09:50 +02:00
Flyinghead
de046c4620
Use OpenGL state cache. Allocate texture ids in bulk. Avoid modifier
...
volumes entirely when not needed.
2018-05-15 15:22:26 +02:00
Flyinghead
2d834c7396
Revert glChecks
2018-05-15 11:54:14 +02:00
Flyinghead
833a616122
Merge OSX fixes
2018-05-15 11:41:44 +02:00
Flyinghead
46b40ad043
OSX: enable exceptions for vmem
2018-05-15 11:14:48 +02:00
Flyinghead
0a8348b6df
Use CSYM() in assembler code
2018-05-15 11:13:42 +02:00
Flyinghead
34eae365f7
bad character?
2018-05-14 23:16:11 +02:00
Flyinghead
c36e2731d7
read_frame fix
2018-05-14 22:38:22 +02:00
Flyinghead
4aee2eb5fe
Increase gdrom dma buffer size to 8192 sectors
2018-05-14 19:37:33 +02:00
Flyinghead
2564c57cd2
Merge branch 'master' of https://github.com/flyinghead/reicast-emulator
2018-05-14 16:14:35 +02:00
Flyinghead
b30f715796
Fix paletted textures mismatch in texture cache
2018-05-14 16:14:15 +02:00
Flyinghead
699c2986a5
WIP
2018-05-14 12:48:22 +02:00
Flyinghead
ae49c19cea
osx: cpu x86. glViewport now doing in RenderFrame
2018-05-14 09:31:03 +02:00
Flyinghead
46f28cfb27
Fog fix
2018-05-13 23:07:35 +02:00
Flyinghead
95120690ef
Use log2 depth scaling when opengl 3 is available
2018-05-13 20:19:36 +02:00
Flyinghead
688ba5c37d
Fix autosort translucent poly bug (rayman). probably still not right...
2018-05-13 16:48:09 +02:00
Flyinghead
b68f0a16a8
Increase FPS font size
2018-05-13 16:45:20 +02:00
Flyinghead
c30548eb6a
Added on-screen FPS counter. Fix clear screen issue when widescreen
...
enabled but not currently on.
2018-05-13 16:01:08 +02:00
Flyinghead
50a2e7e842
Revert dd9f77b4ab0b4c66fe7a2a717ed4b8cc1835e343: no gl_FragDepth in GLES 2 :(
2018-05-12 14:39:06 +02:00
Flyinghead
dd9f77b4ab
Changed z normalization to log scale
2018-05-12 13:26:50 +02:00
Flyinghead
717ee0b3ce
Make rendering to texture buffer optional
2018-05-11 19:33:17 +02:00
Flyinghead
b02eccd5c7
Fix performance problem with RTT waiting
2018-05-11 19:08:54 +02:00
Flyinghead
43c125c208
Better texture cache: avoid duplicate. Attempt to put the RTT texture in
...
the cache to avoid copy to/from vram.
2018-05-11 15:29:24 +02:00
Flyinghead
683cbbba3e
Multipass rendering
2018-05-10 21:28:20 +02:00
Flyinghead
0f92189585
Fix translucent triangles not being autosorted(?)
2018-05-10 13:02:57 +02:00
Flyinghead
b77843b927
Handle RTT texture stride (VT)
2018-05-09 15:08:13 +02:00
Flyinghead
136c3d6825
When rendering to texture, wait until after the frame is rendered to
...
unlock.
2018-05-09 14:46:06 +02:00
Flyinghead
c13a42611b
Implemented other RTT format conversions.
2018-05-09 13:04:48 +02:00
Flyinghead
5710aa08ed
Remove all vram locks before reading back RTT buffer. Use RGBA/ubyte
...
format when RGB/565 is not available.
2018-05-09 12:28:38 +02:00
Flyinghead
2e4ec3a1ed
Added RTT support
2018-05-08 18:47:00 +02:00
Flyinghead
9f13ded502
Enable Modifier Volumes. Fix modtrig buffer overflow and stencil reset.
2018-05-04 18:18:04 +02:00
Flyinghead
cc88561d4a
Implemented clipping (Daytona USA menus)
2018-05-02 15:41:42 +02:00
Flyinghead
db0534d5dd
Fix PunchThrough texturing on JGR with nvidia
2018-05-02 12:29:47 +02:00
Flyinghead
fe71519d1b
Write some silence on audio underruns
2018-05-01 17:25:42 +00:00
Flyinghead
5320c3adee
Fixed previous screw up
2018-05-01 11:20:25 +02:00
Flyinghead
a953a0baa7
Use ring buffer for samples and detect buffer underruns
2018-04-29 17:56:01 +02:00
Flyinghead
39e0f378cb
OSX: add x64 target. Use JIT compiler. Clean exit. Use semaphore in core audio driver. Use layout-independent key codes to support int'l keyboards. Fixed GL window scaling.
2018-04-29 16:07:54 +02:00
Flyinghead
64a8ac1dd5
Add clean exit patch for x11 and 64-bit architecture
2018-04-27 16:54:15 +02:00
Flyinghead
35d3bd98d4
Disable fog table logging. Small optimization
2018-04-27 10:58:10 +00:00
Flyinghead
b8f3d37df2
Disabled some logging (Mr.Driller)
2018-04-27 10:50:21 +00:00
Flyinghead
94aa7c9e83
Fix alsa backend clicking noise on underrun. Set the buffer size to match the [omx] audio_latency setting
2018-04-27 10:49:23 +00:00
Flyinghead
10bdf7f449
Clean exit when exit key is pressed
2018-04-27 10:37:56 +00:00
rrrh
bcdf38da0a
Merge pull request #1130 from reicast/rrrh/osx-high-sierra
...
Rrrh/osx high sierra
2018-04-21 19:26:27 +02:00
Hugo Hackenstein
d653d4e009
Remove unneeded stdlib include
2018-04-21 19:01:24 +02:00
Hugo Hackenstein
4fcb95a0d1
Mac compile on OSX - Remove deprecated malloc.h include and switch to stdlib.h instead
2018-04-21 19:00:36 +02:00
Stefanos Kornilios Mitsis Poiitidis
34b495baa7
Merge pull request #1098 from reicast/pr/1092
...
fix gdi track parsing in unix #1092
2018-04-19 20:51:13 +02:00
Stefanos Kornilios Mitsis Poiitidis
90e901f4a3
gdi: Normalize paths, add test gdi files
2018-04-18 22:28:05 +02:00
gizmo98
4a7d0b9e7e
rpi: add option to use mesa or new vendor gl libs
2018-04-11 21:42:57 +02:00
gizmo98
b09356f3f7
Fix GCC6 "Bool" issue
2018-04-11 21:37:31 +02:00
Stefan
8c967b0591
Merge pull request #1 from OrN/rpi2-stuff
...
omx audio backend, and dispmanx window
2018-04-11 21:33:45 +02:00
Stefanos Kornilios Mitsis Poiitidis
4300951b51
gdi: Cleanup path code, use C++ strings
2018-04-11 11:40:15 +02:00
Stefanos Kornilios Mitsis Poiitidis
fe30e58504
tactx: Actually use aligned alloc functions
2018-04-11 11:06:46 +02:00
Stefanos Kornilios Mitsis Poiitidis
894e9f1414
Cleanup changes for merge with master
2018-04-09 21:11:06 +02:00
hissingshark
d1bac19a0a
Fixed blunder and changed OS test.
2018-04-05 16:58:23 +01:00
hissingshark
dec5c7bdd2
Added helper functions for aligned memory (de)allocation
2018-04-05 12:13:49 +01:00
hissingshark
3ab9c22516
Fix issue from PR #1023
2018-04-03 17:38:30 +01:00
TwistedUmbrella
fb418d568c
Don't skip whitespace when reading filename
...
https://stackoverflow.com/a/6774866
2018-04-02 03:51:38 -04:00
TwistedUmbrella
052c5c1cb3
Fix for Windows missing definition of ssize_t
2018-04-02 02:54:30 -04:00
Stefanos Kornilios Mitsis Poiitidis
c832df6d62
Merge pull request #1078 from nadenislamarre/nae_get_entry
...
cfg/get_entry: Validate that virtual section has virtual key before using it
2018-03-27 23:01:26 +02:00
i30817
3fdd7f50ea
fix gdi track parsing in unixx
...
Same problem as https://github.com/libretro/reicast-emulator/pull/24
in unix that iteration would not work if the path of the original .gdi file (where we are finding the 'parent directory') was:
1. not existent, ie a gdi on the same directory as the current. It was iterating until the index 3 and stop there. Disaster strikes later ofc, if the first characters weren't C:\ or other thing like that.
2. in a relative subdirectory that is 'small enough' ie: a/crazy-taxi.gdi. In this case the last '/' wouldn't be found, the derived string would be 'crazy-taxi.gdi' and the file not found ofc.
Anyway, this can be solved simply by searching the whole string and using a signed integer. It will go up to -1, stop iteration and increase to 0 on the len++.
Dunno if using relative subdirectories for the tracks on *other* platforms works because of the path separator being different from what's inside the gdi but with this code fixed it works on linux with / at least.
2018-03-25 18:53:18 +01:00
TwistedUmbrella
045ab285ca
Merge pull request #1068 from promi/fix-evdev_mapping
...
Fix #1051
2018-03-09 12:35:06 -05:00
Nicolas HOUDELOT
5c343a219c
fix typo
2018-03-05 01:57:00 +01:00
Nicolas Adenis-Lamarre
8ba58a3d9d
configuration parsing: get_entry must not look into virtual sections only
...
in emu.cfg, when i set rend.WideScreen = 1, its not read.
has_entry and get_entry doesn't use the same check,
thus while has_entry can return true, get_entry can not return the entry.
Signed-off-by: Nicolas Adenis-Lamarre <nicolas.adenis.lamarre@gmail.com>
2018-02-13 23:20:23 +01:00