SHARE
TWEET

gs title fix

a guest Sep 27th, 2019 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- fix vision logo (Wild Arms 3)
  2. local thresholdArea = 0 -- ignore alls items : fix #112276
  3. emuObj.SetGsTitleFix( "ignoreUpRender", thresholdArea , {  texType = 3, cbp = 0x2390, tbp = 0x288000} )
  4. ------------------------------------------------------------------------------------------------------
  5. -- Ignore up-render shift for triangles when writing mask = write alpha only . Will fix shadows (bug# 6724).
  6. emuObj.SetGsTitleFix( "ignoreUpShiftTri", "reserved" , { fbmask = 0x00FFFFFF  } )
  7. ------------------------------------------------------------------------------------------------------
  8. --  Performance  fix ( bug# 9474 )
  9. if 0 then   -- emuObj.IsNeoMode() then  -- neo mode check disabled, due to bug #10442
  10.     emuObj.SetGsTitleFix( "globalSet",  "reserved", { workLoadThreshold = 125000} )
  11. else
  12.     emuObj.SetGsTitleFix( "globalSet",  "reserved", { workLoadThreshold = 100000} )
  13. end
  14. ------------------------------------------------------------------------------------------------------
  15. -- bug# 9972
  16. emuObj.SetGsTitleFix( "ignoreSubBuffCov", "reserved", { } )
  17. ------------------------------------------------------------------------------------------------------
  18. -- Bully bug 9392
  19. -- Performace fix
  20. local thresholdArea = 600
  21. emuObj.SetGsTitleFix( "ignoreUpRender", thresholdArea , {alpha=0x80000044 , zmsk=1 , tw=4, th=4  } )
  22. ------------------------------------------------------------------------------------------------------
  23. -- Bug#9174 -
  24. emuObj.SetGsTitleFix( "ignoreSubBuffCov", "reserved", { } )
  25. ------------------------------------------------------------------------------------------------------
  26. -- Bug#9240 (Light maps uprender)
  27. -- Copy z-buffer for future use with light maps. psm = SCE_GS_PSMZ24 (49)
  28. emuObj.SetGsTitleFix( "forceSimpleFetch", "reserved", {tw=9, th=9, psm=49, zmsk=1 } )
  29. ------------------------------------------------------------------------------------------------------
  30. -- Apply light maps texMode=2 (bilinear)   psm= SCE_GS_PSMCT32 (0)
  31. emuObj.SetGsTitleFix( "forceSimpleFetch", "reserved", {tw=8, th=8, psm=0, ztst=1, texMode=2 } )
  32. ------------------------------------------------------------------------------------------------------
  33. -- Performace fix (bug #9785 )
  34. emuObj.SetGsTitleFix( "globalSet",  "reserved", { waveThreshold = 90000} )
  35. emuObj.SetGsTitleFix( "ignoreAreaUpdate", 0, { } )
  36. ------------------------------------------------------------------------------------------------------
  37. -- Accumulate fill area only when conditions are met
  38. emuObj.SetGsTitleFix( "includeAreaUpdate", "reserved" , {alphaIsNot = 0, zmsk = 1, tw = 6, th = 6 , tbp = 0x00302000} )
  39. emuObj.SetGsTitleFix( "ignoreUpRender", 130 , { totalArea= 700} )
  40. ------------------------------------------------------------------------------------------------------
  41. -- Fix shadow
  42. emuObj.SetGsTitleFix( "forceSimpleFetch", "reserved", { texMode=1  } )
  43. ------------------------------------------------------------------------------------------------------
  44. -- Reduce flush count
  45. emuObj.SetGsTitleFix( "SetSelfRender", "reserved", { fbmask= 0x00FFFFFF , renderSelf=1 , zmsk=1 , alpha=0 , texMode=1  } )
  46. ------------------------------------------------------------------------------------------------------
  47. -- Disable post-processing
  48. emuObj.SetGsTitleFix( "ignoreSprite", "reserved", {  texType=1 , tw=5 , th=8, zmsk=1 , alpha=0x80000044  } )
  49. ------------------------------------------------------------------------------------------------------
  50. -- Small triangle rejection. Works in conjunction with CLI setting   gs-override-small-tri-area=1
  51. -- keep default area for texture 256x256 ( no blend)  (Anakin face)
  52. emuObj.SetGsTitleFix( "setRejectionArea", 500,{twIsNot=8, thIsNot=8 } )
  53. ------------------------------------------------------------------------------------------------------
  54. -- Set triangle rejection area= 1000  when alpha blend is not 0 ( i.e blend is On)
  55. emuObj.SetGsTitleFix( "setRejectionArea", 1000, {alphaIsNot=0 } )
  56. ------------------------------------------------------------------------------------------------------
  57. -- Performace fix
  58. local thresholdArea = 600
  59. emuObj.SetGsTitleFix( "ignoreUpRender", thresholdArea , {alpha=0x80008068 , zmsk=1 } )
  60. ------------------------------------------------------------------------------------------------------
  61. -- Performace fix
  62. local thresholdArea = 700
  63. emuObj.SetGsTitleFix( "ignoreUpRender", thresholdArea , {alpha=0x80000044 , zmsk=1 } )
  64. ------------------------------------------------------------------------------------------------------
  65. -- Disable uprender on the draw command which samples the framebuffer (0x3200) using bilinear sampling (texMode=2)
  66. -- All lighting effects use TriFan prim type, so use that as well to filter against.
  67. emuObj.SetGsTitleFix( "forceSimpleFetch",  "reserved", {prim=5, texMode=2, tbp=0x320000} )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top