drbap/laser-beam-for-obsidian

Enhancements and Suggestions for Laser Function Plugin

Closed this issue · 9 comments

Thank you for this plugin.. this is what i wanted out of the laser function from the beginning (follow mouse)

there is some suggestions,

  1. It seems slightly less smooth. I believe it's a trade-off between smoothness and speed. I feel that prioritizing smoothness would result in more comfortable reading compared to quickness, which can sometimes come across as stuttering.

demo

(i feel it looks smoother in gif than in reality)

  1. how about an autoscroll function.. like how the mysnippets plugin scrolls as shown below...

Edits: ok we can still use mouse middle click and scroll easily ... (so autoscroll wont be a problem i guess)

demo1

i dont know if its my computer . it feels very laggy sometimes...
but i can notice its more laggy after i enabled the plugin.

demo2

Thanks for trying it and suggestions. Much appreciated.

Here's how it works for me (8GB Core i5 computer, so it is an old computer). I recorded at 24fps. Of course I'm exaggerating the movements just to show that I have no noticeable delays.

laser_beam_plugin_test

laser_beam_plugin_test2

I added a throttle function with a 100 ms delay to avoid consuming too many computer resources to reposition the laser line. What is your screen resolution? I tested the performance (dev tools) and I'm getting 48-52fps (when the plugin laser is activated and moved at that speed).

Well it is version 1.0.0, I hope to keep improving it. This test was recorded using only 2 plugins activated (Style Settings and Laser beam).

Here it is in slow mouse movement (I'm also using a screen recording, so it's not the best performance scenario).

laser_beam_plugin_test3_slow

I will post an update in a few hours (maybe in a day), so hopefully the performance will be better. Stay tuned.

EDIT: Please let me know if you are using any CSS snippet with animations or a big number of CSS snippets loaded. Anyway, I hope you will notice a performance improvement in your computer.

Please check plugin version 1.0.1. Let me know if you notice any improvement.

I had 50 plugins on..

When i turned them all off, the speed is very much like you have shown in the video...

Even with all them off.. its not that buttery smooth yet even after the update ... smooth like the moving clouds lol..

Please check plugin version 1.0.2. Let me know if it is working well.

All the best

Here it is how it moves now (v1.0.2) - > 50fps.

laser_beam_plugin_test_t1

Much better experience now... thank you

Thank you for testing and for your valuable feedback. Much appreciated. The autoscroll feature, you already said the solution (middle click and move). Maybe in the future I can add the autoscroll function to this plugin (I added it to the list of features to consider).

If you notice other issues, please let me know (open another issue).

All the best