torch is slow to respond
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
Problem description
torch is slow to respond.
Steps to reproduce
when running termux-torch on it takes almost a second for the light to turn on. when doing the same thing in google chrome with the camera api, it responds much faster.
Expected behavior
termux-torch should enable the led immediately.
Additional information
my goal is to toggle the led in a pattern, like morse code. is there a way to achieve this with termux?
- termux-api application version: 0.53.0
- termux-api package version (installed through apt): 0.59.1-1
- Android OS version: 15
- Device model: moto g stylus 5G - 2024
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the delay with termux-torch on on the reported Android device and compare it with the Chrome camera API behavior. Trace the termux-torch command into the termux-api application; done means identifying and reducing the response delay while preserving reliable LED toggling, with timing verified against the reported behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- cli, mobile, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100