-
Notifications
You must be signed in to change notification settings - Fork 71
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
Enchanced per-tile vertical scroll #306
Conversation
…into mine/master
This is a great enhancement feature. Out of courtesy @ekeeke we will let you review this. We hope you can appreciate the inherent interest users have in enhancement features like this - I think this could make for a very welcome addition to Genesis Plus GX across the board. |
This is a nice and original hack idea indeed (although i am afraid it will only benefit to very specific scenes in a very limited set of games as the use of 2-cell vscroll + this kind of rotation effect in MD games is quite rare) and the code changes are localized and seem fine at first glance. I will try to make a proper review and share a few suggestions to improve integration with existing codebase in the upcoming days |
OK, here are my suggestions after reviewing your code changes:
into
Note that this means that you don't need to check
by
could be optimized into
and Note that this could be further optimized by moving the calculation of
|
@ekeeke thanks for the detailed review. I have added the requested changes. but, as I mentioned earlier, I do have some other questions / uncertainties
|
Here are my answers:
|
If you don't mind, I have a few additional remarks in regard to portability, especially compatibility with some compilers that do not support C99 features (I think it is a requirement for libretro cores and ideally the core should remain ANSI C compatible for better portability):
|
Looks fine to me but I remember @LibretroAdmin complaining that double-slash comments would not compile on some of the platforms they support in Retroarch so you might want to change those comments you added in |
Would indeed appreciate it if those comments were changed, yes. |
I have no adverse comments following last commit and merged your pull request in my own repository, thanks for your work. |
Merged via ekeeke#453 and 9f407e8 |
This emulation hack allows allows each cell to be vscrolled individually, instead of being limited to 2-cell (16px). The offset of the new, intermediary cell is calculated as an average of the offset of the current 2-cell and the offset of the next 2-cell.
Before / after comparisons:
![contra-220804-160117](https://user-images.githubusercontent.com/6061770/183509255-9ff3b90f-a101-43c0-927d-0acb3ad5b81e.png)
I still have some questions about the SDL build, the other platforms and the dev workflow. We can discuss here