I had that same issue with a Tauri rust app recently. It just ran as fast as it possible could. Made my phone heat up.