Working offline!
Alkebsi opened this issue ยท 2 comments
Tried to initiate the r3f-perf offline, but it didn't work! Is there a way I can work around that error?
The UI appears, but the stats are not displayed!
I have a similar issue (am unable to load assets not on our whitelisted domains).
The root of the problem is that troika-text-3d
(which this tool depends on through its dependency on drei
) loads fonts via a CDN, if a unicodeFontsUrl is not provided and that is not exposed in the Perf
interface.
You can see where you would need to add it here (and below):
r3f-perf/src/components/TextsHighHZ.tsx
Line 108 in 292adb1
I have a similar issue (am unable to load assets not on our whitelisted domains).
The root of the problem is that
troika-text-3d
(which this tool depends on through its dependency ondrei
) loads fonts via a CDN, if a unicodeFontsUrl is not provided and that is not exposed in thePerf
interface.You can see where you would need to add it here (and below):
r3f-perf/src/components/TextsHighHZ.tsx
Line 108 in 292adb1
Knowing the root of the problem is amazing. Seen that once I was using drei, but I was always able to refer a local font. Will try to do that here on Perf
and see if that would make sense to be a useful PR!
Otherwise, I will just use it for myself ๐
Thanks, that was really useful ๐