timedemo.zsh 537 B

123456789101112131415161718192021222324252627
  1. #!/bin/zsh
  2. buildRoot=./build
  3. executable=$buildRoot/Quake3.app/Contents/MacOS/Quake3
  4. ls -l $executable
  5. flags="$flags +set timedemo 1"
  6. flags="$flags +set s_initsound 0"
  7. flags="$flags +set vm_cgame 1"
  8. flags="$flags +set vm_game 1"
  9. flags="$flags +set r_texturebits 16"
  10. flags="$flags +set r_depthbits 16"
  11. flags="$flags +set r_colorbits 16"
  12. flags="$flags +set stencilbits 8"
  13. flags="$flags +set r_appleTransformHint 1"
  14. echo flags=$flags
  15. function demo {
  16. echo Demo $*
  17. $executable $flags +demo $* |& egrep "(seconds|VM)"
  18. }
  19. demo foo