use glhelpers types and tie speed to framrate