Commit Graph

7 Commits

Author SHA1 Message Date
type-two
e3396e6084
Merge pull request #1 from type-two/code-cleanup-and-optimization-12114006608232278591
Refactor and optimize EMDR simulator for performance
2025-12-26 01:09:27 +10:00
google-labs-jules[bot]
0d29e5add7 Refactor codebase and optimize for low-end devices
- Extracted patient logic from `patient.html` to `js/patient.js` for better maintainability.
- Optimized `js/bls.js` renderer to reduce garbage collection by reusing objects in the draw loop.
- Decoupled state persistence from state updates. Added a `persist` flag to `setState` and `mergeState`.
- Disabled state persistence in the Patient view and Admin preview to prevent excessive `localStorage` writes, significantly improving performance on low-end hardware.
- Cleaned up `js/admin.js` to explicitly handle persistence only when necessary.
2025-12-25 15:07:50 +00:00
Jing Kohn
0eb18095e0 jiggling out a lil bit of jank 2025-11-25 19:08:00 +10:00
Jing Kohn
8ef5c54c9b ui fix, many features added 2025-11-25 18:55:21 +10:00
Jing Kohn
cbd4b25bc6 easier instructions and connection for multi-computer over lan 2025-11-24 22:45:29 +10:00
Jing Kohn
d3f7f374ab added websocket for separate computers on same wifi/lan 2025-11-24 20:06:16 +10:00
Jing Kohn
3c9646cf0b enjoy 2025-11-24 19:22:10 +10:00