You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Douglas Rhiner

Intermediate

  • "Douglas Rhiner" started this thread

Posts: 137

Location: San Anselmo, CA

Occupation: Code-Slave

  • Send private message

1

Thursday, February 10th 2022, 8:03pm

requestAnimationFrame handler

Good day,

Running into an issue where repeated, meaning multiple per second, [Violation] 'requestAnimationFrame' handler took <N>ms is/are being returned to the JS console.
We are using KRPano v 1.20.11 ( build 2022-1-13)



Here is a link for an example. https://www.xplorit.com/slocal .

What could be causing this?

*confused*
Perhaps a callwhen(); that never is satisfied?
Or are there any other elements of KRPano that could be causing this?

What makes this difficult to track down is that there is no "trigger" being reported in the JS console.


TIA for any advice.

2

Thursday, February 10th 2022, 9:34pm

Hi,

that site is getting slower and slower the longer it runs...
And as it seams this is caused by some bad scripting...
Adding new callwhens every frame might be such of course.

Either check your code or try typically debugging stuff - e.g. start with excluding part for part and see what makes a difference.

Best regards,
Klaus