run pg, wait 10 sec, check highest possible fps i see
do 10 times for each version, result above its a highest fps for 10 runs
i do 10 times because there is fluctuations in fps. some runs have 83 highest fps in 7.54 version some runs have 88 and 77 for 8.51 etc, also i reduce number of spheres because 5k spheres have 22 fps and its hard to see difference between versions
cc @ryantrem for the perf difference between v1 & v2.
I took a snapshot in v1 and v2, and noticed that everything was slower in v2. So I thought that, for some reason, JS optimizations were disabled (or limited) when the v2 inspector was open. So I disabled JS optimizations (in chrome://settings/content/v8) and, after restarting Chrome, the absolute fps was similar in both cases (I had to reduce the number of spheres to 500 to get more than 60 frames per second): 90 frames per second ± 2 frames per second.
Hey, It’s hard to say. Fix was about inspector versions but i don’t use inspector for fps check i just use indicator in bottom right. Anyway i couldn’t get 100 fps on previous version but now i can so i think it became better.
But i noticed another thing. When i open PG i have ~100fps. But if i click play PG (not f5 page reload just PG button) i see 10-15 fps drop and it never recover to 100 fps no matter how many i try to play PG. It looks like there is some leak of resources. Do you have any thoughts?
I’m not sure but maybe it’s related. From some last version (about 2-3 weeks ago) playgrounds started to open very slow. This PG which i linked is opening about 60 secs. But if i open it through VPN it opens much faster. I see errors in console about some timeouts
I think PG opens too slow because of this timeouts. It waits until they fail and only then show PG. Through VPN no timeouts and it opens faster (about 10 secs) but I think it’s because of VPN. My friend from another country opens it very fast(2secs) but when he uses VPN it loads too slow.
I didn’t report this as it seems my local issue (maybe some country restrictions) and i think you will not fix it but maybe bug which i reported above can be related to this. If it’s so then i think i need to test it with inspector v1. Not sure if it’s possible as i can’t find any switcher to previous inspector.
I tried to reproduce your problem, but I couldn’t. I got about 90/92 frames per second the first time. I then clicked “Play” five times, waiting 10 seconds each time to let the frames per second stabilize, and I still got about 90/92 frames per second each time.
It looks like the problem comes from githack.com server, which is answering too slow.
You can force using v1 by adding inspectorv1 to the url:
with inspector v1 i still have this issue. 70fps→62fps. Then the only way is to have more tests. Maybe other people will try to test this case and send their results