IDIAMath / idiamath.github.io

1 stars 0 forks source link

Question 1 laggy due to storing of graph elements in array #38

Closed BlackBlueGreens closed 1 year ago

BlackBlueGreens commented 2 years ago

its very laggy when users scale the 3D view . Due to lack of element tracing in jsxgraph, im having to manually store the graphs in an array. It seems like there is only one way to do this manually, and that way is very inefficient, and makes the graphics lag when scaling.

BlackBlueGreens commented 1 year ago

lack element tracing is a problem, but the lag is more related to a method (mouseover) that runs every time the user cursor is moved a single pixel. A timer could be implemented such that every 0.5 seconds, the method does not run for every pixel movement which makes the site lag. A better solution is to manually check whether using javascript, but jsxgraph know where the 3D function is and we dont...

jonasjul commented 1 year ago

I see that the board is quite big as well, 750x1550 - Perhaps the board wouldn't need to be quite this big in a quiz, and scaling it down should help with the performance

BlackBlueGreens commented 1 year ago

It is no longer laggy. The code was experimenting with new ideas which did not work and caused the question to lagg instead