From 523ad6600259d3301d9603c80778e7fbd5136fbd Mon Sep 17 00:00:00 2001 From: onsdagens Date: Wed, 9 Aug 2023 22:24:45 +0200 Subject: [PATCH] Improve memory view performance on scroll by only drawing the delta --- riscv/asm.s | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/riscv/asm.s b/riscv/asm.s index 2244c80f..440c89b2 100644 --- a/riscv/asm.s +++ b/riscv/asm.s @@ -226,6 +226,11 @@ main: sw t1, 4(t0) sw t1, 8(t0) sw t1, 12(t0) + li t0, 0x500000F4 # address should be outide of memview range + sw t1, 0(t0) + sw t1, 4(t0) + sw t1, 8(t0) + sw t1, 12(t0) li s0, 0x0e0657c1 # initialize "seed" la s1, seed # initialize "seed" sw s0, 0(s1)