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

WIP: Make inline all the GU methods #227

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fjtrujy
Copy link
Member

@fjtrujy fjtrujy commented Aug 15, 2024

Description

This PR follows kind of similar approach to the one done #172

This function makes static inline the majority of the libgu functions.
The way it has been done was basically to put all the implementations within the pspgu.h.

What are the consequences:

  • This could improve performance in several cases as we save navigating deeper to functions and turning back.
  • The size of the binaries now could increase/decrease (it depends on implementation)
  • pspgu.h now contains at the bottom of the file all the implementations.

Additionally, some other minor changes and clean-ups have been done.

Please, if possible test it with your apps, I have tested it with several of the samples/gu, picodrive and daedalus so far it has increased performance in a couple of FPS.

PD: Looks like the official PSP SDK did it in the same way.

Cheers.

@fjtrujy fjtrujy marked this pull request as draft August 15, 2024 14:54
@fjtrujy fjtrujy changed the title Make inline all the GU methods WIP: Make inline all the GU methods Aug 15, 2024
@fjtrujy fjtrujy force-pushed the inline_gu branch 2 times, most recently from 5c0595a to 727b7a2 Compare August 19, 2024 14:26
@Fewnity
Copy link

Fewnity commented Oct 22, 2024

Any news about this cool PR?

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.

2 participants