Forum
    • Categories
    • Register
    • Login

    BLUR.

    Scheduled Pinned Locked Moved Bug Reports
    22 Posts 5 Posters 169 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ustkU
      ustk @Christoph Hart
      last edited by ustk

      @Christoph-Hart said in BLUR.:

      @ustk the fillPath thing on the profiler isn't the time it takes to encode and decode the path to base64 then do all the overhead in C++ in the CSS engine (that's probably all tucked away under the paintRoutine graph, that's just the function passing on the path data to the GPU which is just a memcpy operation and should be very fast.

      You're right it resides in the paint routine call so it doesn't represent the total build+paint time. Still it improved the construction time anyway compared to what I had before and we see the shadow is still the greedy boy.

      but drawDropShadowFromPath isn't using melatonin yet, no?

      yes it does:

      void ScriptingObjects::GraphicsObject::drawDropShadowFromPath(var path, var area, var colour, int radius, var offset)
      {
      	auto r = getRectangleFromVar(area);
      	auto o = getPointFromVar(offset).toInt();
      	auto c = ScriptingApi::Content::Helpers::getCleanedObjectColour(colour);
      
      	if (auto p = dynamic_cast<ScriptingObjects::PathObject*>(path.getObject()))
      	{
      		Path sp = p->getPath();
      		drawActionHandler.addDrawAction(new ScriptedDrawActions::drawDropShadowFromPath<melatonin::DropShadow>(sp, r, c, radius, o));
      	}
      }
      

      drawDropShadow (rectangle version) doesn't use melatonin but JUCE's own juce::DropShadow

      Hise made me an F5 dude, any other app just suffers...

      1 Reply Last reply Reply Quote 1
      • lalalandsynthL
        lalalandsynth @ustk
        last edited by

        @ustk Sweet , thanks !

        https://trikk.studio/
        https://www.instagram.com/trikkstudio/

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        24

        Online

        2.5k

        Users

        13.9k

        Topics

        120.9k

        Posts