Panduan khusus untuk menjalankan Hand Gesture Control di PC tanpa GPU atau GPU yang tidak support.
Jika Anda melihat error seperti ini:
GPU process exited unexpectedly: exit_code=-1073740791
vector[] index out of bounds
Berarti GPU Anda tidak support atau tidak ada GPU dedicated.
REKOMENDASI TERBAIK: Gunakan web mode instead of Electron!
npm start| Feature | Web Mode | Electron (No GPU) |
|---|---|---|
| Performance | ⚡ Smooth | 🐌 Lag |
| FPS | 30-60 | 5-15 |
| Resolution | 1280x720 | 320x240 |
| Setup | Easy | Complex |
| GPU | Browser optimized | Disabled |
Browser sudah optimize GPU handling dengan baik, jadi web mode akan jauh lebih smooth!
File src/js/config/electronConfig.js sudah di-set ke ULTRA_LOW:
export const electronOptimizedConfig = PERFORMANCE_MODES.ULTRA_LOW;Edit src/js/config/electronConfig.js:
export const electronOptimizedConfig = PERFORMANCE_MODES.EXTREME_LOW;Rebuild:
npm run electronEdit src/js/config/systemConfig.js:
visualization: {
enabled: false, // Matikan semua
showLandmarks: false,
showConnections: false,
showLabels: false,
showFPS: true, // Hanya FPS
showBoundingBox: false
}Edit src/js/main.js, comment detector yang tidak perlu:
initializeGestureDetectors() {
// Hanya aktifkan swipe
const swipeDetector = new SwipeDetector(
this.gestureConfig.swipe,
this.landmarkProcessor
);
this.gestureEngine.registerDetector('swipe', swipeDetector);
// Comment semua yang lain
/*
const pinchDetector = new PinchDetector(...);
const pushDetector = new PushDetector(...);
const staticDetector = new StaticGestureDetector(...);
*/
}- Resolution: 320x240
- FPS: 10-15
- Lag: Sedikit
- Usable: Ya, tapi tidak smooth
- Resolution: 160x120
- FPS: 5-10
- Lag: Banyak
- Usable: Barely
- Resolution: 1280x720
- FPS: 30-60
- Lag: Minimal
- Usable: ✅ Smooth!
✅ BEST: npm start (web mode)
⚠️ OK: Electron ULTRA_LOW
❌ BAD: Electron MEDIUM/HIGH
✅ BEST: npm start (web mode)
✅ OK: Electron LOW
⚠️ MAYBE: Electron MEDIUM
✅ BEST: Electron MEDIUM/HIGH
✅ GOOD: npm start (web mode)
npm startBuka: http://localhost:8080
npm run electron- Edit
electronConfig.js→EXTREME_LOW - Run:
npm run electron
- Tutup semua browser tabs
- Tutup aplikasi lain
- Check Task Manager
- Jangan expect 60 FPS
- 10-15 FPS sudah cukup untuk gesture control
- Gerakan harus lebih pelan dan deliberate
- Gunakan hanya gesture yang perlu
- Swipe paling ringan
- Pinch/Static lebih berat
- Lighting bagus = deteksi lebih cepat
- Deteksi cepat = less CPU usage
Coba EXTREME_LOW:
export const electronOptimizedConfig = PERFORMANCE_MODES.EXTREME_LOW;Gunakan Web Mode:
npm startUpgrade Hardware atau Lower Browser Resolution:
- Zoom out browser (Ctrl + -)
- Resize window jadi lebih kecil
- Close other tabs
{
resolution: 160x120,
fps: 5,
maxHands: 1,
visualization: OFF,
targetFPS: 5
}{
resolution: 320x240,
fps: 10,
maxHands: 1,
visualization: MINIMAL,
targetFPS: 10
}{
resolution: 640x480,
fps: 20,
maxHands: 1,
visualization: BASIC,
targetFPS: 20
}Seriously, just use web mode:
npm startBenefits:
- ✅ Much smoother
- ✅ Better GPU handling
- ✅ Higher resolution
- ✅ Better FPS
- ✅ Easier to use
- ✅ No build required
The only downside:
- ❌ Not a standalone app
- ❌ Need browser open
But performance is WAY BETTER!
- Try Chrome (best GPU support)
- Try Firefox
- Try Edge
- Add GPU (even cheap one helps)
- Upgrade CPU
- Add RAM
- Try on another PC
- Use laptop with better specs
TL;DR untuk PC tanpa GPU:
- Best:
npm start(web mode) ← GUNAKAN INI! - OK: Electron ULTRA_LOW
- Last Resort: Electron EXTREME_LOW
- Don't: Electron MEDIUM/HIGH
Web mode is the way to go for PC without GPU! 🚀
Quick Start:
# Just use this!
npm startOpen browser → http://localhost:8080 → Enjoy smooth performance! 🎉