Made FPScounter as on demand import#557
Conversation
suresh-gangumalla
commented
Dec 18, 2025
- re-enabled FPS counter comonent
- Removed this component from being avialable by default
- One can import this into blits app by named import
1. re-enabled FPS counter comonent 2. Removed this component from being avialable by default 3. One can import this into blits app by named import Signed-off-by: Suresh Kumar Gangumalla <sureshkumar.gangumalla@invecas.com>
Test Results: ❌ FAILEDRun at: 2025-12-18T07:41:39.559Z Summary: Error Output: |
Signed-off-by: Suresh Kumar Gangumalla <sureshkumar.gangumalla@invecas.com>
Test Results: ✅ PASSEDRun at: 2025-12-18T10:01:47.839Z Summary: |
Test Results: ✅ PASSEDRun at: 2025-12-24T11:45:51.772Z Summary: |
michielvandergeest
left a comment
There was a problem hiding this comment.
It seems like the on demand import isn't working properly because the renderer isn't instantiated yet when the computed first runs. We should review this, and possibly revert to the built-in component structure (where the component is deliberately wrapped inside a function to prevent premature instantiation)
when FPScounter component is used inside app.js then renderer is not initialized so observered null as value for Sprite component so re computing sprite texture computed method after setTimeout to makesure renderer will be avaible in Next Tick. Signed-off-by: Suresh Kumar Gangumalla <sureshkumar.gangumalla@invecas.com>
…angumalla/blits into enable/fps-counter-comp
Test Results: ✅ PASSEDRun at: 2026-01-06T12:39:16.683Z Summary: |
Signed-off-by: Suresh Kumar Gangumalla <sureshkumar.gangumalla@invecas.com>
Test Results: ✅ PASSEDRun at: 2026-02-26T10:18:49.808Z Summary: |