General Code Cleanup + Delta Time for Smoother Video Streaming (Maintains 30 FPS)