frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Flutter Performance Tuning on HarmonyOS

1•flfljh•5h ago
Flutter applications adapted for HarmonyOS can be debugged using DevTools for Dart code.

*Prerequisites*

- OpenHarmony Next system - Flutter interface running in foreground - Analysis tools: DevEco Studio Profiler SmartPerf

*Flutter Thread Architecture* Flutter utilizes multiple threads for essential operations. All Dart code executes on the UI thread, which impacts other threads:

- *Platform Thread* Main platform thread where plugin code runs - *UI Thread* Executes Dart code in Dart VM. Handles: - Developer-written code - Framework-generated code - Creates lightweight layer trees (device-agnostic rendering commands) - Sends layer trees to GPU thread *Critical:* Never block this thread! Appears in performance overlay's bottom bar. - *Raster Thread (GPU Thread)* Processes layer trees and sends to GPU. While you can't directly interact: - Slowness indicates Dart code issues - Hosts Skia graphics library - Appears in performance overlay's top bar - *I/O Thread* Handles heavy I/O operations to prevent blocking UI/raster threads. Not shown in performance overlay. - *RenderService Thread* RS process main thread. After Flutter renders frames: - Texture mode: Composites with main thread (affected by main thread) - Surface mode: Direct display (unaffected by main thread)

*Problem Boundary Definition* In DevEco Studio:

1. Open Profiler tab 2. Capture application trace 3. Focus on `<x>.ui`, `<x>.raster`, and RenderService main threads

![image-1-301](https://p.ipic.vip/dh0ed2.png)

The missing frames in the RenderService in the above image are due to the UI thread taking a longer time per frame, exceeding one frame (at a frame rate of 120, one frame is 8.33 milliseconds).

![image-1-302](https://p.ipic.vip/pmgebf.png)

If the total duration of<x>. ui and<x>. master in a frame rendering process exceeds one frame time, the performance issue can be defined as Flutter problem. The positioning of the problem requires further performance analysis.

First NetHack ascension, and insights into the AI capabilities it requires

https://mikaelhenaff.substack.com/p/first-nethack-ascension-and-insights
1•JamesBarney•4m ago•0 comments

Why I don't ride the AI Hype Train

https://mertbulan.com/2025/06/26/why-i-dont-ride-the-ai-hype-train/
1•mertbio•6m ago•0 comments

NLnet Foundation announces 62 new projects for the NGI Zero Commons Fund

https://nlnet.nl/news/2025/20250624-announcement-grants-CommonsFund.html
1•pabs3•7m ago•0 comments

Ask HN: Is Cloud Run down for anyone else?

1•pasxizeis•7m ago•0 comments

Agent Lineage Evolution: A Novel Framework for Managing LLM Agent Degradation

https://danieltan.weblog.lol/2025/06/agent-lineage-evolution-a-novel-framework-for-managing-llm-agent-degradation
1•danieltanfh95•17m ago•1 comments

Show HN: A Free, Offline-First Cash Register That Runs in the Browser

https://takeasale.com/
1•gerardojbaez•18m ago•0 comments

Twenty (Open Source CRM) is out of beta

https://twenty.com/releases
1•pavl•22m ago•0 comments

More time in bed benefits morning and evening-type teens differently

https://www.psypost.org/more-time-in-bed-benefits-morning-and-evening-type-teens-differently-new-study-suggests/
1•lentoutcry•24m ago•0 comments

Clerk is down, and so are all apps using it

https://status.clerk.com
3•cheerioty•25m ago•1 comments

Donate Less

https://blogs.gnome.org/steven/2025/06/26/donate-less/
3•edent•26m ago•0 comments

Show HN: Mind maps in Visual Studio and VS Code with nodes linked to source code

https://codemindmap.com/
1•kentich•26m ago•0 comments

Pro-Indy accounts go dark after Israeli strikes

https://ukdefencejournal.org.uk/dozens-of-pro-indy-accounts-go-dark-after-israeli-strikes/
1•doener•27m ago•0 comments

We increased Roblox game profits by 30% using overlooked economic patterns

https://medium.com/@untouchable/theres-a-hidden-30-in-your-game-we-found-it-b394d5757163
5•HaunChangpeng•31m ago•1 comments

Clerk Is Down

https://clerk.com
1•wonderfuly•31m ago•0 comments

Show HN: Meeting Waste Calculator – See the Real Cost of Your Meetings

https://gitdigest.ai/meeting-waste
1•RaulOnRails•33m ago•0 comments

Seniors in Wheelchairs Zip-Tied and Arrested During Senate Budget Protest

https://centeredamerica.substack.com/p/breaking-seniors-in-wheelchairs-zip
1•lentoutcry•34m ago•0 comments

The European wood pigeon helped me appreciate its omnipresent city cousins

https://www.nytimes.com/2025/06/24/magazine/pigeons-city-nature.html
1•Thevet•35m ago•0 comments

Oldest boomerang doesn't come back

https://www.bbc.co.uk/news/articles/cren818q5x1o
2•ljf•38m ago•0 comments

Highbrow Climate Misinformation

https://josephheath.substack.com/p/highbrow-climate-misinformation
1•af78•41m ago•0 comments

CLI coding agents battle royale

https://twitter.com/SIGKITTEN/status/1937950811910234377
2•freediver•45m ago•0 comments

Amazon's Ring can now use AI to 'learn the routines of your residence'

https://www.theregister.com/2025/06/25/amazons_ring_ai_video_description/
4•detaro•46m ago•1 comments

A space for all people interested in gold and gold trading

https://www.xau-usd.space/
2•nonplayercaesar•49m ago•0 comments

Reverse Engineering the Microchip CLB Part 1: Background and Reverse Engineerin

http://mcp-clb.markomo.me/P1-Background-and-RE/
2•todsacerdoti•50m ago•0 comments

Gemini Users: We're Going to Look at Your Texts Whether You Like It or Not

https://gizmodo.com/google-to-gemini-users-were-going-to-look-at-your-texts-whether-you-like-it-or-not-2000620141
2•miles•50m ago•0 comments

Changes to Cody Free, Pro, and Enterprise Starter Plans

https://sourcegraph.com/blog/changes-to-cody-free-pro-and-enterprise-starter-plans
1•ingve•51m ago•0 comments

Yes, I will judge you for using AI

https://jaysthoughts.com/aithoughts1
33•CoffeeOnWrite•52m ago•29 comments

Weight loss and diabetes jabs linked to potentially fatal side effect

https://news.sky.com/story/weight-loss-and-diabetes-jabs-linked-to-potentially-fatal-side-effect-13388528
3•austinallegro•53m ago•0 comments

Work begins to create artificial human DNA from scratch

https://www.bbc.co.uk/news/articles/c6256wpn97ro
1•iamphilrae•56m ago•0 comments

Akinator Made with Claude Artifacts

https://claude.ai/public/artifacts/3cebb65f-a869-4dd8-9a89-63513e4830f7
1•ehdehdrb•59m ago•1 comments

Show HN: Frametwo – Tired of my videos getting flagged, so I built this

https://frametwo.com/
2•andrewjustus•59m ago•0 comments