mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 04:59:57 -04:00
Add floor_watch: hardware watchpoints on the floor the scan finds log which game code reads and writes it, at 60 fps and again at 120 fps or more.
floor_watch.c takes up to twelve of the floor scan's survivors (the platform's rigid body controller unit first, then one per object at the pivot's height), watches them four at a time through the debug registers on every thread (platform.h plat_watch_set, Windows only), counts each access's call chain in a lock-free table and logs the chains with the executable's symbol names after each pass. prof_syms gains a callback form for that. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -68,6 +68,16 @@ int mem_copy_readable(uint8_t *const *dst, const uint64_t (*src)[2], int n, uint
|
||||
return 0;
|
||||
}
|
||||
uint64_t kern_now_ns(void) { return 0; }
|
||||
// the floor watch (off here)
|
||||
int floor_watch_wanted(void) { return 0; }
|
||||
int floor_watch_found(const uint64_t *addr, const float *val, const int *unit, int n, const float link[3]) {
|
||||
(void)addr, (void)val, (void)unit, (void)n, (void)link;
|
||||
return 0;
|
||||
}
|
||||
int floor_watch_present(const float link[3], int link_ok, float frames) {
|
||||
(void)link, (void)link_ok, (void)frames;
|
||||
return 0;
|
||||
}
|
||||
void plat_mutex_lock(PlatMutex *m) { (void)m; } // one thread here
|
||||
void plat_mutex_unlock(PlatMutex *m) { (void)m; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user