math-editor icon indicating copy to clipboard operation
math-editor copied to clipboard

Rendering Performance

Open MovGP0 opened this issue 4 years ago • 4 comments

There are some issues with rendering performance. Ie. there is a noticable lag between entering text and the cursor position.

This might be solved by porting to SkiaSharp instead of WPF as rendering engine. This would also allow to make the code more portable.

However, this would be a major reimplementation of a large portion of the code.

MovGP0 avatar Aug 04 '21 21:08 MovGP0

An alternative would be Microsoft.Maui.Graphics, but it's currently in beta.

MovGP0 avatar Aug 04 '21 21:08 MovGP0

@MovGP0 I was wondering how good are you with JavaScript? If you, or anyone else you know, who are interested in further development of this equation editor, I think porting it to HTML5 Canvas would be a great step. That way it work on all platforms right in the browser. Just a thought.

kashifimran avatar Aug 04 '21 23:08 kashifimran

I guess Blazor would be the method of choice. Don't use JavaScript and TypeScript anymore. Still, I think that SKIA would be the better option for this project.

Besides, you can use SKIA+Blazor to render to a WebAssembly Canvas.

MovGP0 avatar Aug 05 '21 18:08 MovGP0

Nice ideas. I guess for now what we have is OK for the users though. In case you were not aware, this project was originally on https://sourceforge.net/projects/eqtype/ and still gets a few hundred downloads a month. I think the undo/redo bug crashes the apps at times and make it a little less usable. Unfortunately, I am not in a position to work on this anymore. But it still provides good value to students. So, I am happy where it is.

kashifimran avatar Aug 07 '21 03:08 kashifimran