Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor 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
Vulkan2021
VkCV Framework
Merge requests
!89
Resolve "Indirect Dispatch"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Indirect Dispatch"
106-indirect-dispatch
into
develop
Overview
2
Commits
58
Pipelines
45
Changes
2
Merged
Ghost User
requested to merge
106-indirect-dispatch
into
develop
3 years ago
Overview
2
Commits
58
Pipelines
45
Changes
2
Expand
Closes
#106 (closed)
Edited
3 years ago
by
Ghost User
0
0
Merge request reports
Viewing commit
a82d4018
Prev
Next
Show latest version
2 files
+
10
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
a82d4018
[
#106
] Reduce motion blur artifacts when using mouse at high fraerate
· a82d4018
Alexander Gauggel
authored
3 years ago
projects/indirect_dispatch/src/App.cpp
+
8
−
1
Options
@@ -290,7 +290,14 @@ void App::run() {
const
float
microsecondToSecond
=
0.000001
;
const
float
fDeltatimeSeconds
=
microsecondToSecond
*
std
::
chrono
::
duration_cast
<
std
::
chrono
::
microseconds
>
(
frameEndTime
-
frameStartTime
).
count
();
const
float
motionBlurMotionFactor
=
1
/
(
fDeltatimeSeconds
*
cameraShutterSpeedInverse
);
// small mouse movements are restricted to pixel level and therefore quite unprecise
// therefore extrapolating movement at high framerates results in big jerky movements
// this results in wide sudden motion blur, which looks quite bad
// as a workaround the time scale is limited to a maximum value
const
float
motionBlurTimeScaleMax
=
1.
f
/
60
;
const
float
deltaTimeMotionBlur
=
std
::
max
(
fDeltatimeSeconds
,
motionBlurTimeScaleMax
);
const
float
motionBlurMotionFactor
=
1
/
(
deltaTimeMotionBlur
*
cameraShutterSpeedInverse
);
vkcv
::
PushConstants
motionBlurPushConstants
(
sizeof
(
float
)
*
2
);
Loading