You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
1.7 KiB

#!/bin/bash
# Android Emulator Launch Script - Pure OpenGL Mode
# Forces OpenGL rendering on NVIDIA GPU (no Vulkan)
# Use when Vulkan+OpenGL mixed mode binds to Intel iGPU
# Author: Matthew Raymer
echo "🚀 Launching Android Emulator - Pure OpenGL Mode..."
# Check if emulator command exists
if ! command -v emulator &> /dev/null; then
echo "❌ Error: Android emulator not found!"
echo "Please install Android Studio and add emulator to PATH"
exit 1
fi
# Check if AVD exists
if ! emulator -list-avds | grep -q "TimeSafari_Emulator"; then
echo "❌ Error: TimeSafari_Emulator AVD not found!"
echo "Available AVDs:"
emulator -list-avds
exit 1
fi
echo "✅ Environment checks passed"
echo "🎮 Starting emulator with Pure OpenGL rendering..."
# Launch emulator with Pure OpenGL and performance tuning
QT_QPA_PLATFORM=xcb \
__NV_PRIME_RENDER_OFFLOAD=1 \
__GLX_VENDOR_LIBRARY_NAME=nvidia \
DRI_PRIME=1 \
emulator -avd TimeSafari_Emulator \
-gpu host \
-accel on \
-cores 6 \
-memory 4096 \
-no-boot-anim \
-no-snapshot-load \
-feature -Bluetooth
echo "🎯 Emulator launched with Pure OpenGL rendering!"
echo ""
echo "📋 Configuration:"
echo " - Pure OpenGL rendering (no Vulkan)"
echo " - NVIDIA GPU offloading"
echo " - 6 CPU cores allocated"
echo " - 4GB RAM allocated"
echo " - Hardware acceleration enabled"
echo " - Fast startup (no boot animation)"
echo " - Clean state (no snapshot loading)"
echo " - Bluetooth disabled (prevents hangs)"
echo ""
echo "🔍 Verification:"
echo " - Check banner for 'OpenGL Vendor=Google (NVIDIA)'"
echo " - Monitor GPU: nvidia-smi dmon -s u"
echo " - Should avoid Intel iGPU binding issues"