mirror of
https://github.com/HarbourMasters/Starship
synced 2026-07-08 14:46:09 -04:00
fix performance issue for scrolling custom HD textures
This commit is contained in:
@@ -42,6 +42,8 @@ void Lib_Texture_Scroll(u16* texture, s32 width, s32 height, u8 mode) {
|
||||
width = newWidth;
|
||||
height = newHeight;
|
||||
|
||||
scale = 1; // TODO: a higher scale causes performance issues for large textures ?
|
||||
|
||||
for(s32 i = 0; i < (s32) scale; i++){
|
||||
switch (mode) {
|
||||
case 0:
|
||||
|
||||
Reference in New Issue
Block a user