Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add retrofw target #157

Merged
merged 1 commit into from
Dec 3, 2021
Merged

add retrofw target #157

merged 1 commit into from
Dec 3, 2021

Conversation

Poligraf
Copy link

@Poligraf Poligraf commented Dec 3, 2021

Retrofw is a OD like CFW running on the jz4760 chipsets and retroarch already has retrofw as a target.

Retrofw is almost identical to OD jz4770 in most respects, except that the chipset is half as powerful.

I would like to add retrofw as a target to CI to your excellent gearboy core which is by far my favorite gb core.

I will definetely add gearcoleco in the near future as well.

Thank you in advance

@drhelius
Copy link
Owner

drhelius commented Dec 3, 2021

Awesome! Thanks for your effort.

If you want to contribute this to Gearsystem and Gearcoleco I’ll be more than happy to accept the PR.

@drhelius drhelius merged commit 14da785 into drhelius:master Dec 3, 2021
@Poligraf
Copy link
Author

Poligraf commented Dec 3, 2021

No problem about gearsystem and gearcoleco.
Not sure the CPU is fast enough for gearsystem yet but will find out.

@Poligraf
Copy link
Author

Poligraf commented Dec 3, 2021

I threw as many flags as I could on gearsystem including Ofast but I still am running at around 55-58 fps without rewind

  TARGET := $(TARGET_NAME)_libretro.so
  CC = /opt/retrofw-toolchain/usr/bin/mipsel-linux-gcc
  CXX = /opt/retrofw-toolchain/usr/bin/mipsel-linux-g++
  AR = /opt/retrofw-toolchain/usr/bin/mipsel-linux-ar
  fpic := -fPIC
  SHARED := -shared -Wl,-version-script=$(CORE_DIR)/link.T
  PLATFORM_DEFINES := -DCC_RESAMPLER -DCC_RESAMPLER_NO_HIGHPASS
  LDFLAGS += -flto -mplt 
  CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32 -mhard-float
  CFLAGS += -falign-functions=1 -falign-jumps=1 -falign-loops=1
  CFLAGS += -fomit-frame-pointer -fmerge-all-constants -flto
  CFLAGS += -funsafe-math-optimizations -fsingle-precision-constant -fexpensive-optimizations
  CFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops
  CFLAGS += -fmerge-all-constants -fno-math-errno -fno-stack-protector -fno-ident    
  CXXFLAGS += $(CFLAGS)
	```

@drhelius
Copy link
Owner

drhelius commented Dec 3, 2021

You can try adding the following definition:

-DPERFORMANCE

It will sacrifice accuracy for a bit of performance.

@Poligraf
Copy link
Author

Poligraf commented Dec 3, 2021

Oooo nifty. Trying it now. Like I said for sms which has some great platformers I am of the opinion that it must lock at 60.
Playing sonic at 58 fps is just.....horrible you feel those 2 frames

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants