projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
683c922
)
UI: added def for tiles per frame processing
author
Lukas Krickl
<lukas@krickl.dev>
Wed, 16 Jul 2025 03:50:21 +0000
(
05:50
+0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Wed, 16 Jul 2025 03:50:21 +0000
(
05:50
+0200)
src/ui.s
patch
|
blob
|
history
diff --git
a/src/ui.s
b/src/ui.s
index 0fca35660578a791334706adb19cb02a6f3bae44..3b1a721ec17608d255f2c3c336fbfc36d58033e4 100644
(file)
--- a/
src/ui.s
+++ b/
src/ui.s
@@
-28,6
+28,8
@@
ui_redraw_hp:
ret
+#define UI_REDRAW_TILES_PER_FRAME 5
+
; requests a redraw
; this will set up redraw_bg
; redraw_shadow and redraw_steps
@@
-45,7
+47,7
@@
ui_request_redraw:
ld [ui_redraw_shadow+1], a
; steps of 5 * 16
- ld a,
16
+ ld a,
UI_TILE_WIDTH * UI_TILE_HEIGHT / UI_REDRAW_TILES_PER_FRAME
ld [ui_redraw_steps], a
ret
@@
-102,6
+104,7
@@
ui_redraw_vblank:
ld de, 12
add hl, de
@no_jump:
+
ld a, h
ld [ui_redraw_bg], a
ld a, l