-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Performance boost for SDL ASCII drawing using color modulated textures #27566
Performance boost for SDL ASCII drawing using color modulated textures #27566
Conversation
0c55452
to
d04ecd4
Compare
}, | ||
#endif | ||
"software", COPT_NO_HIDE ); | ||
|
||
add( "SOFTWARE_RENDERING", "graphics", translate_marker( "Software rendering" ), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should get rid of this option since it's redundant with renderer=software
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
- removed SOFTWARE_RENDERING option for non-Android builds; - removed RENDERER option for non-TILES builds.
Removing the software rendering option made things unhappy:
|
Yes, I forgot to handle: get_option( "FRAMEBUFFER_ACCEL" ).setPrerequisite( "SOFTWARE_RENDERING" ); Should I just remove the prerequisite here or should I expand E.g.: get_option( "FRAMEBUFFER_ACCEL" ).setPrerequisite( "RENDERER", "software" ); and/or get_option( "FRAMEBUFFER_ACCEL" ).setPrerequisite( "RENDERER", { "software", "directx" } ); |
Summary
SUMMARY: Performance "Performance boost for SDL drawing using color modulated textures"
Purpose of change
Describe the solution
SDL_RenderFillRect
withSDL_RenderCopy
of a color modulated texture (fallback toSDL_RenderFillRect
when color modulation is unsupported);USE_COLOR_MODULATED_TEXTURES
graphic option which will enable usage of color modulated texture of color modulation (if it is supported);RENDERER
graphic option which allows selecting which render driver to use (direct3d
,opengl
,opengles
orsoftware
);debug.log
and allowed selection of benchmark length.Additional context
Also see #19165 and #21748.