1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00
Commit Graph

21 Commits

Author SHA1 Message Date
Sergey Lipskiy
9d2d8f481e Code cleanup 2016-09-11 18:08:09 +07:00
Sergey Lipskiy
a5d3ff9393 Do not correct VI width and height in CFB mode.
Fixed MAME64 incorrect menu #861
2016-08-28 14:56:10 +07:00
Sergey Lipskiy
86fbea9edc Code refactor: replace NULL by nullptr. 2016-06-10 12:40:18 +06:00
Sergey Lipskiy
8ab1ca7468 Code refactor: replace hack_skipVIChangeCheck and hack_ZeldaCamera by one hack_ZeldaMM 2016-05-08 16:58:21 +06:00
Sergey Lipskiy
f06b2d823a Code rafactor to fix compilation errors with mupen64plus build. 2016-02-27 11:58:56 +06:00
Sergey Lipskiy
dca42610a8 Add FBInfo::isSupported() to know that emulator provides FBInfo support.
Correct frame buffer write detection hack (idea by purplemarshmallow).
2016-02-27 10:52:07 +06:00
Sergey Lipskiy
ce7526eaf5 Rewrite RDRAMtoFrameBuffer::CopyFromRDRAM:
copy from RDRAM only those pixels, which were provided with FBWrite.
2016-02-27 10:52:07 +06:00
purplemarshmallow
ee8399c80d correct cfb mode if screeen update on color buffer change is selected
In cfb mode the screen always needs to be updated
2016-01-03 23:57:12 +01:00
purplemarshmallow
8faa7a7372 improve cfb detection
this fixes flickering in Conker's BFD it's war cutscene
2015-12-14 19:23:49 +01:00
Sergey Lipskiy
2f4abc2bd9 Rename BufferSwapMode::bsOnVIUpdate to bsOnVerticalInterrupt. 2015-12-14 21:39:09 +06:00
Sergey Lipskiy
550999133f Add config option frameBufferEmulation.bufferSwapMode
Remove hack_VIUpdateOnCIChange

Default buffer swap mode is swap buffer on each VI_UpdateScreen() call.
This mode need no hacks for correct buffer update, but it causes gfx overheads.
2015-12-14 21:39:06 +06:00
purplemarshmallow
1466e162f3 remove detectCFB hack
if there is no buffer RDRAM content is displayed. If there's an invalid
buffer the buffer is removed and then RDRAM content is displayed. No
game needs the detectCFB hack anymore. This fixes the transitions in BIO
F.R.E.A.K.S #562 and also #362
2015-12-14 21:39:05 +06:00
purplemarshmallow
af8f9bbe55 remove VI width calculation
I see no reason why this is needed. REG.VI_WIDTH always has the correct
width. This fixes the pole position minigame in namco museum and the gb
tower in Pokemon Stadium 2 #529. This fixes transition effects in Body
Harvest  #650. This fixes problems with the copy auxiliary option in
Body Harvest and Mario Tennis
2015-10-30 23:47:14 +01:00
Sergey Lipskiy
1eaa967553 Add hack_skipVIChangeCheck hack for Zelda MM.
Fix problem with Majora's Mask subscreen after Bomber's Notebook read, #698

The game switches to interlaced mode when it opens Notebook screen and background buffer is removed.
This hack prevents buffers clear on VI change.
2015-09-26 22:36:31 +06:00
Sergey Lipskiy
16e3af616c Add hack hack_VIUpdateOnCIChange for Quake II.
Quake II uses single buffer mode when underwater, so additional check
gDP.colorImage.changed != 0 is necessary to detect frame change.
This check may cause dummy buffers swaps, so now it is used for Quake II only.

Fixed #592
2015-07-03 15:03:01 +06:00
Sergey Lipskiy
6d53c3bbd8 Add hack_ignoreVIHeightChange.
Fixed Space Invaders Boss battle gliching #448
2015-06-25 11:14:46 +06:00
Sergey Lipskiy
b219997c80 Always show cfb until first dlist:
- move flag CHANGED_CPU_FB_WRITE from gSP to gDP (code refactor)
- enable CHANGED_CPU_FB_WRITE on video init.
- disable CHANGED_CPU_FB_WRITE in process display list.

many pd roms and demos use cpu rendering only
now they are supported with default settings
also detectCFB=1 now isn't needed anymore for some games

Commit is based on changes made by purplemarshmallow in #536
2015-05-18 12:55:42 +06:00
Sergey Lipskiy
db9943a7b9 Code refactor: move flag CHANGED_COLORBUFFER from gSP to gDP. 2015-05-18 12:35:48 +06:00
Sergey Lipskiy
143cee1712 Disable rendering when config dialog is open to prevent plugin crash if
new settings are incompatible with the current ones.
2015-05-13 10:21:58 +06:00
Sergey Lipskiy
e3d8905984 Fix _isMarioTennisScoreboard() hack for (E) version. 2015-05-13 10:21:46 +06:00
Sergey Lipskiy
52d68d1389 Move all sources to src folder. 2015-05-13 10:21:32 +06:00