Skip to content

Commit 707fb83

Browse files
committed
GPU Display: improve configuration
1 parent 747bc4b commit 707fb83

5 files changed

Lines changed: 255 additions & 248 deletions

File tree

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ AddOption(drawTPC, bool, true, "", 0, "Enable drawing TPC data")
193193
AddOption(drawTRD, bool, true, "", 0, "Enabale drawing TRD data")
194194
AddOption(drawTOF, bool, true, "", 0, "Enabale drawing TOF data")
195195
AddOption(drawITS, bool, true, "", 0, "Enabale drawing ITS data")
196+
AddOption(invertColors, bool, false, "", 0, "Invert colors")
196197
AddHelp("help", 'h')
197198
EndConfig()
198199

@@ -203,8 +204,37 @@ AddOption(drawITSTracks, bool, true, "", 0, "Show tracks with ITS contribution")
203204
AddOption(drawTRDTracks, bool, true, "", 0, "Show tracks with TRD contribution")
204205
AddOption(drawTOFTracks, bool, true, "", 0, "Show tracks with TOF contribution")
205206
AddOption(drawTracksAndFilter, bool, false, "", 0, "Use AND filter instead of OR filter for selecting tracks")
207+
AddOption(propagateLoopers, bool, false, "", 0, "Enabale propagation of loopers")
206208
AddOption(clustersOnly, bool, false, "", 0, "Visualize clusters only")
207209
AddOption(clustersOnNominalRow, bool, false, "", 0, "Show clusters at nominal x of pad row for early-transformed data")
210+
AddOption(separateGlobalTracks, bool, false, "", 0, "Separate global tracks")
211+
AddOption(markClusters, int, 0, "", 0, "Mark clusters")
212+
AddOption(markFakeClusters, int, 0, "", 0, "Mark fake clusters")
213+
AddOption(markAdjacentClusters, int, 0, "", 0, "Mark adjacent clusters")
214+
AddOption(hideRejectedClusters, int, 1, "", 0, "Hide rejected clusters")
215+
AddOption(hideRejectedTracks, int, 1, "", 0, "Hide rejected tracks")
216+
AddOption(hideUnmatchedClusters, int, 0, "", 0, "Hide unmatched clusters")
217+
AddOption(trackFilter, int, 0, "", 0, "Apply filter on tracks to be displayed")
218+
AddOption(projectXY, int, 0, "", 0, "Project everything on the XY-plane")
219+
AddOption(xAdd, float, 0, "", 0, "Separate sectors, increase X coordinate")
220+
AddOption(zAdd, float, 0, "", 0, "Separate sides, increase Z coordinate")
221+
AddHelp("help", 'h')
222+
EndConfig()
223+
224+
// Camera, window, and renderer settings for the event display
225+
BeginSubConfig(GPUSettingsDisplayRenderer, renderer, configStandalone.display, "GLR", 'g', "Camera / window / renderer OpenGL display settings", display_camera)
226+
AddOption(camLookOrigin, bool, false, "", 0, "Make the camera look at the origin")
227+
AddOption(camYUp, bool, false, "", 0, "Orient the camera such that the y-axis is always upwards")
228+
AddOption(cameraMode, int, 0, "", 0, "Camera mode")
229+
AddOption(fullScreen, bool, false, "", 0, "Full Screen")
230+
AddOption(maximized, bool, false, "", 0, "Full Screen")
231+
AddOption(openGLCore, bool, false, "", 0, "Use renderer path for OpenGL core profile")
232+
AddOption(drawQualityMSAA, int, 0, "", 0, "MultiSample Anti Aliasing")
233+
AddOption(drawQualityDownsampleFSAA, int, 0, "", 0, "Downsampling Anti Aliasing")
234+
AddOption(drawQualityVSync, bool, false, "", 0, "Enable Vertical Sync")
235+
AddOption(maxFPSRate, int, 0, "", 0, "Do not limit FPS but run at maximum possible rate")
236+
AddOption(useGLIndirectDraw, bool, true, "", 0, "Use OpenGL indirect draws to reduce number of draw calls")
237+
AddOption(screenshotScaleFactor, int, 1, "", 0, "Resolution scale factor when taking screenshots")
208238
AddHelp("help", 'h')
209239
EndConfig()
210240

@@ -213,6 +243,7 @@ BeginSubConfig(GPUSettingsDisplay, display, configStandalone, "GL", 'g', "OpenGL
213243
AddOption(showTPCTracksFromO2Format, bool, false, "", 0, "Use TPC tracks in O2 output format instead of GPU format")
214244
AddSubConfig(GPUSettingsDisplayLight, light)
215245
AddSubConfig(GPUSettingsDisplayHeavy, heavy)
246+
AddSubConfig(GPUSettingsDisplayRenderer, renderer)
216247
AddHelp("help", 'h')
217248
EndConfig()
218249

GPU/GPUTracking/GPUTrackingLinkDef_O2.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#pragma link C++ class o2::gpu::GPUConfigurableParamGPUSettingsDisplay + ;
3232
#pragma link C++ class o2::gpu::GPUConfigurableParamGPUSettingsDisplayLight + ;
3333
#pragma link C++ class o2::gpu::GPUConfigurableParamGPUSettingsDisplayHeavy + ;
34+
#pragma link C++ class o2::gpu::GPUConfigurableParamGPUSettingsDisplayRenderer + ;
3435
#pragma link C++ class o2::gpu::GPUConfigurableParamGPUSettingsQA + ;
3536

3637
#endif

0 commit comments

Comments
 (0)