Giter Site home page Giter Site logo

Comments (8)

timunie avatar timunie commented on August 26, 2024

Is that debug mode? Performance can only be judged using the App in release mode without a debugger attached.

from avalonia.

1324278444 avatar 1324278444 commented on August 26, 2024

Is that debug mode? Performance can only be judged using the App in release mode without a debugger attached.

In release mode, the animation is not smooth either

from avalonia.

maxkatz6 avatar maxkatz6 commented on August 26, 2024

Needs repro or a dotTrace profiling. Nothing actionable here otherwise, as hard to tell what's exactly is slow.

from avalonia.

1324278444 avatar 1324278444 commented on August 26, 2024

需要重现或 dotTrace 分析。否则,这里没有什么可操作的,因为很难说到底是什么很慢。

AvaloniaApplication1.zip
I hope you can help me solve this problem. Thank you

from avalonia.

maxkatz6 avatar maxkatz6 commented on August 26, 2024

@1324278444 thanks. Checked with dotTrace, and found two details:

  • UI thread is mostly fine, render thread is choking on animation.
  • It's not related to the number of controls, but more specific to text entries
  • The most time (and memory) is spent on native Skia side rendering text for each tick of the each frame

from avalonia.

1324278444 avatar 1324278444 commented on August 26, 2024

@1324278444 thanks. Checked with dotTrace, and found two details:

  • UI thread is mostly fine, render thread is choking on animation.
  • It's not related to the number of controls, but more specific to text entries
  • The most time (and memory) is spent on native Skia side rendering text for each tick of the each frame

Thank you, how can I solve this problem

from avalonia.

maxkatz6 avatar maxkatz6 commented on August 26, 2024

@1324278444 apparently, it's also font related. As @MrJul noticed, Source Han Sans CN doesn't ASCII characters at all, only full width fallbacks, which makes its rendering pretty slow. If you remove this font (or use another font for ASCII text), it should be smooth.

from avalonia.

1324278444 avatar 1324278444 commented on August 26, 2024

@1324278444 apparently, it's also font related. As @MrJul noticed, Source Han Sans CN doesn't ASCII characters at all, only full width fallbacks, which makes its rendering pretty slow. If you remove this font (or use another font for ASCII text), it should be smooth.

Thank you. After changing the font, the animation became smoother

from avalonia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.