Code Monkey home page Code Monkey logo

Comments (4)

janne-hmp avatar janne-hmp commented on May 31, 2024 1

Let me investigate this further myself, too. I checked yesterday that some of the other SKCanvases in other custom controls in fact do not update themselves, so perhaps this is something very specific to the setup. It is just a few custom controls named "CustomLabel" on the main screen when the page is hidden under another page. I'll see if I can reproduce this in a smaller sample project, and will come back to you a bit later.

from skiasharp.

janne-hmp avatar janne-hmp commented on May 31, 2024

@mattleibow As far as I can tell, all SKCanvasViews get updated (OnPaintSurface is called) each time one of them gets invalidated / updated. This is a pretty big performance hog in .NET MAUI compared to Xamarin, so I would prioritize fixing this, if possible. Currently, I have to run separate checks at the start of OnPaintSurface of each SKCanvasView in .NET MAUI to determine whether the control should actually be redrawn or not. For some custom controls, it is difficult to tell if they should be redrawn or not, so the result is a meaningful performance degradation from Xamarin to .NET MAUI.

from skiasharp.

mattleibow avatar mattleibow commented on May 31, 2024

The sample is quite large, are you able to create a smaller sample for me to check? Typically the invalidation is asking the view to update, so there should be no cross-invalidation. Each view is separate and in no way linked to others.

from skiasharp.

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.