-
Notifications
You must be signed in to change notification settings - Fork 26
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
Rework blitter functions arguments #185
Comments
seems like a good idea, you can do some easy batch rendereing with only changing two values, especially with my wall rendering calls blitcopymask 2000* odd times a frame. might be an little exaggerated |
If we pass a structure, there will be a pointer dereference for each original parameter inside the blit call. I'm curious if that will still be faster than passing in 10 arguments to the function or if the compiler can optimize the extra dereference away. |
Definitely needs benchmarking! |
Currently, blitCopy() etc require something like 10 args, passing which is a bad idea performance-wise.
It could be replace by passing an arg struct. Instead of
It would be something like
Pros:
Cons:
The text was updated successfully, but these errors were encountered: