Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CreateQuery under MacOS doesn't seem to work #622

Open
gujeg opened this issue Sep 20, 2024 · 6 comments
Open

CreateQuery under MacOS doesn't seem to work #622

gujeg opened this issue Sep 20, 2024 · 6 comments

Comments

@gujeg
Copy link

gujeg commented Sep 20, 2024

I'm writing an application that should run on windws, linux and MacOS.
For this I need exact time measurements of the renderengine here and there.

The code shown here in the screenshot returns a valid object under Linux and Windows, but none on MacOS.
What can I do?

image

@TheMostDiligent
Copy link
Contributor

Vulkan implementation on MacOS does not support timestamp or duration queries. You can check the DurationQuery device feature to check the support.

@gujeg
Copy link
Author

gujeg commented Sep 23, 2024

Ok, I was able to understand in the diligent code that this is not supported under vulkan, is probably also due to the Molten substructure.

image

I think it should work under Gl, but I don't want to use it because it's marked as deprecated by Apple.
What does the native metal support in diligent actually look like, is it neatly programmed and supports all technologies that are technically possible? Do the timestamp queries work there ? I know, this is not free and costs something, but is still an option for my project, if "everything" works there fine.
I hope it's okay that I ask this in this thread.

@TheMostDiligent
Copy link
Contributor

Metal backend supports most of features available in Metal. It is used in production by a number of commercial applications.
Timestamp queries, in particular, do work, but due to how they are implemented in Metal, you can only measure the duration of a render pass, e.g. the time of all commands that use the same render target. It is impossible to measure the duration of a single draw command due to how tiled rendering architectures work.

@gujeg
Copy link
Author

gujeg commented Sep 24, 2024

Sounds interesting in any case. What are the prices? Are there price lists somewhere that show what it costs per application sold, or what are the pricing terms in detail? Is there perhaps a test version that you can play around with to see if it does everything you need. Are there also tutorials that you can watch in the Metal context, or do the standard tutorials even work with the Metal backend? Unfortunately, I haven't been able to find anything that really explains it in detail. It would be very nice if you could give me a link that could help me further, or a contact person with whom I can "negotiate".

@TheMostDiligent
Copy link
Contributor

All tutorials and samples work with Metal backend.
Can you send an email to info@diligentgraphics.com?

@gujeg
Copy link
Author

gujeg commented Sep 25, 2024

Thx for all the information, i will do that :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants