@@ -436,7 +436,7 @@ EndConfig()
436436#ifndef GPUCA_GPUCODE_DEVICE
437437// Light settings concerning the event display (can be changed without rebuilding vertices)
438438BeginSubConfig (GPUSettingsDisplayLight, light, configStandalone.display, " GLL" , ' g' , " Light OpenGL display settings" , display_light)
439- AddOption(animationMode, int32_t , 0 , " " , 0 , " " )
439+ AddOption(animationMode, int32_t , 0 , " " , 0 , " " , min( 0 ), max( 6 ) )
440440AddOption(smoothPoints, bool , true , " " , 0 , " Apply smoothing to points" )
441441AddOption(smoothLines, bool , false , " " , 0 , " Apply smoothing to lines" )
442442AddOption(depthBuffer, bool , false , " " , 0 , " Enable Z-buffer" )
@@ -449,19 +449,19 @@ AddOption(drawTracks, bool, false, "", 0, "Highlight sector tracks")
449449AddOption(drawExtrapolatedTracks, bool , false , " " , 0 , " Highlight global sector tracks prolonged into adjacent sector" )
450450AddOption(drawFinal, bool , false , " " , 0 , " Highlight final tracks" )
451451AddOption(excludeClusters, int32_t , 0 , " " , 0 , " Exclude clusters from selected draw objects from display, (2 = exclude clusters but still show tracks)" )
452- AddOption(drawSector, int32_t , -1 , " " , 0 , " Show individual sector" )
452+ AddOption(drawSector, int32_t , -1 , " " , 0 , " Show individual sector" , min(- 1 ), max( 35 ) )
453453AddOption(drawRelatedSectors, int32_t , 0 , " " , 0 , " Show related sectors (if drawSector != -1)" )
454454AddOption(drawGrid, int32_t , 0 , " " , 0 , " Highlight grid" )
455455AddOption(propagateTracks, int32_t , 0 , " " , 0 , " Propagate final tracks further (inward / outward / show MC tracks)" )
456456AddOption(showCollision, int32_t , -1 , " " , 0 , " Show only individual collision" )
457457AddOption(colorCollisions, int32_t , 0 , " " , 0 , " Distinguish collisions in timeframe by color" )
458458AddOption(colorClusters, int32_t , 1 , " " , 0 , " Color clusters belonging to track objects" )
459- AddOption(pointSize, float , 2 .0f , " " , 0 , " Set point size" )
460- AddOption(lineWidth, float , 1 .4f , " " , 0 , " Set line width" )
459+ AddOption(pointSize, float , 2 .0f , " " , 0 , " Set point size" , min( 0 . 8f ), max( 20 .f) )
460+ AddOption(lineWidth, float , 1 .4f , " " , 0 , " Set line width" , min( 0 . 4f ), max( 20 .f) )
461461AddOption(drawTPC, bool , true , " " , 0 , " Enable drawing TPC data" )
462- AddOption(drawTRD, bool , true , " " , 0 , " Enabale drawing TRD data" )
463- AddOption(drawTOF, bool , true , " " , 0 , " Enabale drawing TOF data" )
464- AddOption(drawITS, bool , true , " " , 0 , " Enabale drawing ITS data" )
462+ AddOption(drawTRD, bool , true , " " , 0 , " Enable drawing TRD data" )
463+ AddOption(drawTOF, bool , true , " " , 0 , " Enable drawing TOF data" )
464+ AddOption(drawITS, bool , true , " " , 0 , " Enable drawing ITS data" )
465465AddOption(drawField, bool , false , " " , 0 , " Enable drawing magnetic field" )
466466AddOption(bFieldStepSize, float , 5 .0f , " " , 0 , " Set field line step size" )
467467AddOption(bFieldStepCount, int32_t , 100 , " " , 0 , " Set field line step count" )
@@ -477,7 +477,7 @@ AddOption(drawITSTracks, bool, true, "", 0, "Show tracks with ITS contribution")
477477AddOption(drawTRDTracks, bool , true , " " , 0 , " Show tracks with TRD contribution" )
478478AddOption(drawTOFTracks, bool , true , " " , 0 , " Show tracks with TOF contribution" )
479479AddOption(drawTracksAndFilter, bool , false , " " , 0 , " Use AND filter instead of OR filter for selecting tracks" )
480- AddOption(propagateLoopers, bool , false , " " , 0 , " Enabale propagation of loopers" )
480+ AddOption(propagateLoopers, bool , false , " " , 0 , " Enable propagation of loopers" )
481481AddOption(clustersOnly, bool , false , " " , 0 , " Visualize clusters only" )
482482AddOption(clustersOnNominalRow, bool , false , " " , 0 , " Show clusters at nominal x of pad row for early-transformed data" )
483483AddOption(separateExtrapolatedTracks, bool , false , " " , 0 , " Draw track segments propagated to adjacent sectors separately" )
@@ -490,8 +490,7 @@ AddOption(hideRejectedTracks, int32_t, 1, "", 0, "Hide rejected tracks")
490490AddOption(hideUnmatchedClusters, int32_t , 0 , " " , 0 , " Hide unmatched clusters" )
491491AddOption(trackFilter, int32_t , 0 , " " , 0 , " Apply filter on tracks to be displayed" )
492492AddOption(projectXY, int32_t , 0 , " " , 0 , " Project everything on the XY-plane" )
493- AddOption(xAdd, float , 0 , " " , 0 , " Separate sectors, increase X coordinate" )
494- AddOption(zAdd, float , 0 , " " , 0 , " Separate sides, increase Z coordinate" )
493+ AddOption(xzAdd, float , 0 , " " , 0 , " Separate sectors, increase X coordinate" , min(0 .f), max(300 .f))
495494AddHelp(" help" , ' h' )
496495EndConfig()
497496
@@ -502,14 +501,14 @@ AddOption(camYUp, bool, false, "", 0, "Orient the camera such that the y-axis is
502501AddOption(cameraMode, int32_t , 0 , " " , 0 , " Camera mode" )
503502AddOption(fullScreen, bool , false , " " , 0 , " Full Screen" )
504503AddOption(maximized, bool , true , " " , 0 , " Maximized window" )
505- AddOption(drawQualityMSAA, int32_t , 0 , " " , 0 , " MultiSample Anti Aliasing" )
506- AddOption(drawQualityDownsampleFSAA, int32_t , 0 , " " , 0 , " Downsampling Anti Aliasing" )
504+ AddOption(drawQualityMSAA, int32_t , 0 , " " , 0 , " MultiSample Anti Aliasing" , min( 0 ), max( 8 ) )
505+ AddOption(drawQualityDownsampleFSAA, int32_t , 0 , " " , 0 , " Downsampling Anti Aliasing" , min( 0 ), max( 4 ) )
507506AddOption(drawQualityVSync, bool , true , " " , 0 , " Enable Vertical Sync" )
508507AddOption(fpsLimit, int32_t , 1 , " " , 0 , " FPS limit: 0 = none (maximum rate), 1 = display refresh rate (no limit without VSync), 2 = fpsRate" )
509- AddOption(fpsRate, int32_t , 100 , " " , 0 , " Target frame rate (frames per second) for fpsLimit 2, or if the backend cannot limit to the refresh rate (0 = no limit) " )
508+ AddOption(fpsRate, int32_t , 100 , " " , 0 , " Target frame rate (frames per second) for fpsLimit 2, or if the backend cannot limit to the refresh rate" , min( 1 ), max( 9999 ) )
510509AddOption(useGLIndirectDraw, bool , true , " " , 0 , " Use OpenGL indirect draws to reduce number of draw calls" )
511- AddOption(screenshotScaleFactor, int32_t , 1 , " " , 0 , " Resolution scale factor when taking screenshots" )
512- AddOption(fov, int32_t , 45 , " " , 0 , " Display FOV" )
510+ AddOption(screenshotScaleFactor, int32_t , 1 , " " , 0 , " Resolution scale factor when taking screenshots" , min( 1 ), max( 5 ) )
511+ AddOption(fov, float , 45 .f , " " , 0 , " Display FOV" , min( 5 .f), max( 175 .f) )
513512AddHelp(" help" , ' h' )
514513EndConfig()
515514
0 commit comments