ギア指定時に最小タイマ分解能を変更。 (副作用はあるのか?)
@@ -662,8 +662,16 @@ | ||
662 | 662 | } |
663 | 663 | } |
664 | 664 | |
665 | + if ( gear != GEAR_MAX ) { | |
666 | + TIMECAPS tc; | |
667 | + if ( timeGetDevCaps( &tc, sizeof( TIMECAPS ) ) == MMSYSERR_NOERROR ) { | |
668 | + timeBeginPeriod( tc.wPeriodMin ); | |
669 | + } | |
670 | + } | |
671 | + | |
665 | 672 | nThread = popcnt64( proc_mask ); |
666 | 673 | printf( "%d 個の検索スレッドを起動\n", nThread ); |
674 | + | |
667 | 675 | if ( verbose ) { |
668 | 676 | int i; |
669 | 677 | printf( "優先度を" ); |