Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
instant-ngp-tomography
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Pickles
instant-ngp-tomography
Commits
a3d25b31
Commit
a3d25b31
authored
2 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
Add VSync toggle to the GUI
parent
ddfc7738
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/neural-graphics-primitives/testbed.h
+2
-0
2 additions, 0 deletions
include/neural-graphics-primitives/testbed.h
src/testbed.cu
+3
-0
3 additions, 0 deletions
src/testbed.cu
with
5 additions
and
0 deletions
include/neural-graphics-primitives/testbed.h
+
2
−
0
View file @
a3d25b31
...
...
@@ -810,6 +810,8 @@ public:
std
::
chrono
::
time_point
<
std
::
chrono
::
steady_clock
>
m_training_start_time_point
;
Eigen
::
Array4f
m_background_color
=
{
0.0
f
,
0.0
f
,
0.0
f
,
1.0
f
};
bool
m_vsync
=
false
;
// Visualization of neuron activations
int
m_visualized_dimension
=
-
1
;
int
m_visualized_layer
=
0
;
...
...
This diff is collapsed.
Click to expand it.
src/testbed.cu
+
3
−
0
View file @
a3d25b31
...
...
@@ -649,6 +649,9 @@ void Testbed::imgui() {
}
ImGui
::
Checkbox
(
"Dynamic resolution"
,
&
m_dynamic_res
);
if
(
ImGui
::
Checkbox
(
"VSync"
,
&
m_vsync
))
{
glfwSwapInterval
(
m_vsync
?
1
:
0
);
}
ImGui
::
SliderFloat
(
"Target FPS"
,
&
m_dynamic_res_target_fps
,
2.0
f
,
144.0
f
,
"%.01f"
,
ImGuiSliderFlags_Logarithmic
|
ImGuiSliderFlags_NoRoundToFormat
);
ImGui
::
SliderInt
(
"Max spp"
,
&
m_max_spp
,
0
,
1024
,
"%d"
,
ImGuiSliderFlags_Logarithmic
|
ImGuiSliderFlags_NoRoundToFormat
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment