Closed cha0s closed 5 years ago
I recommend total removal as I don't think that a global polyfill for raf is Proton's responsibility.
Very good advice, can I look at the code you submitted tomorrow? Sorry, it’s already late.
Take your time and have a good night
Very good change, I have merged into the master branch (can you help verify all the examples?). I also removed it in proton 4.0.
I did check the examples locally when I was developing the pull request, everything seemed to be working fine!
I want to be able to run Proton on a server, where
window
doesn't exist. You can still simulate particles even if you don't actually render them.This is currently not possible, as Proton does
import './polyfill/requestAnimationFrame';
, which throws something like:on a server environment.
I don't see that
requestAnimationFrame
is actually used anywhere in the engine. Only the examples.