| 685 | |
| 686 | |
| 687 | void usage(char **argv) |
| 688 | { |
| 689 | fprintf(stderr, "USAGE: %s [options]\n\n", argv[0]); |
| 690 | fprintf(stderr, "Options:\n"); |
| 691 | #ifndef _WIN32 |
| 692 | fprintf(stderr, "-checkdb = Verify that double buffering is working correctly\n"); |
| 693 | fprintf(stderr, "-noshm = Do not use MIT-SHM extension to accelerate blitting\n"); |
| 694 | fprintf(stderr, "-pm = Blit to a pixmap rather than to a window\n"); |
| 695 | #endif |
| 696 | fprintf(stderr, "-mt = Run multithreaded stress tests\n"); |
| 697 | fprintf(stderr, "-v = Print all warnings and informational messages from FBX\n"); |
| 698 | fprintf(stderr, "-fs = Full-screen mode\n"); |
| 699 | fprintf(stderr, "-time <t> = Run each benchmark for <t> seconds (default: %.1f)\n", |
| 700 | benchTime); |
| 701 | fprintf(stderr, "-size <wxh> = Specify drawable width & height (default: %dx%d)\n\n", |
| 702 | DEFAULT_WIDTH, DEFAULT_HEIGHT); |
| 703 | exit(1); |
| 704 | } |
| 705 | |
| 706 | |
| 707 | int main(int argc, char **argv) |