miroiu / nodify

Highly performant and modular controls for node-based editors designed for data-binding and MVVM.
https://miroiu.github.io/nodify
MIT License
1.3k stars 208 forks source link

[Question] Blurry text when zoom in, how to prevent that happen? #65

Closed KaivnD closed 1 year ago

KaivnD commented 1 year ago

Hi everyone! this is what I'm talking about.

dwx0TY6OBj

miroiu commented 1 year ago

Hi! The nodes are rendered to a bitmap and the RenderAtScale was set to a constant value, and when you increased the MaxZoom over that value you got blurry text. I changed it to render at MaxZoom by default. Note that you can remove the CacheMode altoghether if you don't have a large amount of nodes in your own app, or performance problems.

KaivnD commented 1 year ago

@miroiu thanks for explanation, now I see. BitmapCache is for performance, I can remove it for better render results.

After RenderAtScale was bind to MaxZoom, there is another thing doesn't looks good, when zoom is to small, text will be like this. image

KaivnD commented 1 year ago

Second thought, may be this is not a problem after all. It's a trade off, if I want better render results, I will not get better performance.