fix freeze in direct mode games while changuing hz