Skip to content

Commit

Permalink
Disable frame duplication by default
Browse files Browse the repository at this point in the history
It breaks newer PCSX rearmed versions by pushing dozen of frames in bursts.

To implement a proper support later.
  • Loading branch information
sergystepanov committed Feb 13, 2024
1 parent e2226e7 commit ce7aa1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/worker/caged/libretro/nanoarch/nanoarch.go
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,9 @@ func coreEnvironment(cmd C.unsigned, data unsafe.Pointer) C.bool {
setRotation((*(*uint)(data) % 4) * 90)
return true
case C.RETRO_ENVIRONMENT_GET_CAN_DUPE:
*(*C.bool)(data) = C.bool(true)
return true
// !to implement frame dup (nil) some time later
*(*C.bool)(data) = C.bool(false)
return false
case C.RETRO_ENVIRONMENT_GET_USERNAME:
*(**C.char)(data) = Nan0.cUserName
return true
Expand Down

0 comments on commit ce7aa1b

Please sign in to comment.