Counters seem an important tool, eg I don't know how else to use timestamps.
But newCounterSampleBufferWithDescriptor:error:
discussion says
The method may produce an error if the GPU driver has exhausted its underlying resources for counter sample buffers.
And indeed, when I make the call I get error code 14 with localized description "out of memory." How to resolve this? Might the counter buffers be exhausted by other applications or what? Is there no sharing of these resources like other GPU resources? I'd be surprised if tools as important as timestamps/counters can simply be unavailable at any time with no explanation.
If this is indeed the sad state of affairs, are there any tools like in Xcode I can use for timestamping?
If relevant, I have: Intel UHD Graphics 617 1536 MB
Sorry, I meant attach it to the the feedback request you make with the Feedback Assistant app.
In this example, I'd expect sample_buffer
to be.nil
in any case since you haven't populated the counterSet
and sampleCount
properties in the descriptor. The odd part is that you're getting an "out of memory" error and not something more descriptive.
Are you getting nil
even when you've set up properties in the descriptor with valid values?