Comments (4)
Hi @Radamanthe,
I just applied your "cube.c" changes and tried it on my Ubuntu system, also with NVIDIA graphics (sorry, I don't know which card), and saw some anomalies. Normally, cube looks pretty steady for me, but it was good to slow it down, per your changes. What I saw was:
- Occasional "stutter". That is, most of the time the cube rotated in a certain direction, about 2FPS. Sometimes, it would go back-and-forth very quickly (i.e. go forwards and backwards at a must faster frame rate) for one of the frames.
- A few times, I didn't see a new frame drawn (like what you reported, only much more occasionally).
I then ported this to Windows, and ran it on a laptop with an Intel Skylake GPU. I saw no visual anomalies at all. My guess is that this is a driver bug.
from vulkansamples.
Yes, by default (without modification), the cube.c sample is quite steady for me too. But that's not surprising: in IMMEDIATE presentation mode, it runs at several thousands FPS! In other words, the presentation is made several times per V-Blank (maybe like ~20 or more times). So we cannot see that some of them are missing. It's a little more obvious when simply changing the presentation mode to FIFO, logically limiting the number of presented frames to 1 per V-Blank.
I made this patch on cube.c because that behavior I described happened to my current Vulkan engine (WIP) and I wanted to make sure I did not do something wrong. Your description is quite different: it seems more random (still erratic though). Mine is always exactly as I described it (and that to me is even more weird... looks like a deliberate behavior).
Anyway, I'm quite sure it's a driver bug. BTW, it's not very surprising that the GNU/Linux version of the drivers is more bugged than Windows one. So I can only guess it will be fixed at some point. I think I'll take some time soon to report it properly to NVidia directly. Thanks for sharing your experience.
Even though it definitely doesn't look like a LunarG issue, I won't close it for now. Again, I would not take it wrong if LunarG team decides to close it promptly. I just hope some more people will try it on their GNU/Linux rig and share their experience.
from vulkansamples.
Hi,
Thanks for reporting this issue. I do confirm that this is an NVIDIA driver bug. It will be fixed in our next 367 release.
from vulkansamples.
Glad to see NVIDIA catched this one. I'm eager to test the 367 release.... thanks!
from vulkansamples.
Related Issues (20)
- VK_FORMAT_D24_UNORM_S8_UINT incorrectly assumed supported on Android HOT 1
- gradle issues HOT 6
- Samples never deal with present queues different from rendering queue HOT 2
- Missing dependency on VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT HOT 2
- It's not really clear you need a semaphore per frame HOT 1
- Mweb HOT 2
- Frame stutter when resizing window HOT 5
- Missing include folder HOT 4
- [Can not find ]fatal error: '15-draw_cube.vert.h' file not found HOT 31
- Vulkan Samples
- your advice for create the makefile in build.md don't work the makefile keep missing HOT 8
- Dependency on removed VK_DYNAMIC_STATE_RANGE_SIZE HOT 1
- Existing gradlew breaks with Java version 14 HOT 2
- Overlay layer gets vkCreateDevice pointer illegally HOT 2
- Samples should query existence and enable portability extension
- Any additional informations for "issue with the dynamic viewport(or scissors) on Android" ? HOT 1
- YOUR EXAMPLES ARE NOT COLLECTING !!!!!!!!! YOUR EXAMPLES ARE NOT COLLECTING !!!!!!!!! ВАШИ ПРИМЕРЫ НЕ СОБИРАЮТСЯ !!!!!!!!! NOT GOING TO YOUR EXAMPLES !!!!!!!!! HOT 1
- Build infrastructure assumes amd64 architecture
- VulkanSamples for MacOS HOT 2
- Suggestion to update the android samples to use Volk
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulkansamples.