Hello. I am making a game and I want it to adapt to the performance of the device/browser used. By this I mean reducing the particle number, reducing the screen size, etc... What I'm not sure about is how do I measure the performance of a device. I thought about using fps, but it seems that my game lags at times when there are lots of objects moving, so I'm not sure how to measure it reliantly. Any ideas?