@bradlarson I didn't play around with GPUImage 1, but is GPU Image 2's FilterShowcase crashing on Simulator intentional?
-
-
-
@r0unak The Simulator has no camera, so if you look on the console you’ll probably see that it’s erroring out for that reason. - View other replies
-
@bradlarson Yep, I got that. I meant to ask, if the crash is intentional, or do you want to display a message on the screen about that? -
@r0unak An error alert would probably be cleaner and easier to follow. People commonly got confused about this in the old framework. -
@bradlarson Let me know what you think https://github.com/BradLarson/GPUImage2/pull/2 … Happy to make any changes -
@r0unak Can devicesWithMediaType() ever return something other than an AVCaptureDevice? If not, I wouldn’t worry about the optional there. -
@bradlarson you mean L27 right? It gives a warning: Treating a forced downcast to 'AVCaptureDevice' as optional will never produce nil -
@r0unak What version of Xcode / Swift are you using? Xcode 7.3 / Swift 2.2 has devicesWithMediaType() returning [AnyObject]. - Show more
-
-
-
@bradlarson Finished it just in time to start over using Metal Compute Shaders, right? /me ducks -
@jeff_lamarche I’ve tinkered with them, but using GLSL means this may eventually work on almost everything under the sun. That’s exciting. -
@bradlarson Yeah, I was just kidding. You’d only have to rewrite a small portion anyway. Have you looked at Vulkan at all? -
@jeff_lamarche I’m really interested to see how that progresses. Metal, Mantle, etc. are big wins for engines but portability is a problem. - View other replies
-
@bradlarson In reality, porting a HLSL or GLSL shader to metal is actually pretty simple, but may not be worth the effort in your case. -
@bradlarson I think the real wins comes when you have lots of draw calls per frame, which I doubt is your case in GPUImage. :) -
@jeff_lamarche Yes, not many draw calls here, and I minimize state changes via shader / uniform caching. Using VBOs is my next optimization. - Show more
-
-
-
@bradlarson great post, dude -
@pbowden Thanks. The recent discussions that you, Colin, Andy, et al. have had about architecture have shaped some of my design decisions.
-
-
-
@bradlarson do you have performance benchmarks for Objective-C & Swift implementations? -
@rbuussyghin Performance is nearly identical (wasn’t CPU-bound), except for new optimizations like the Gaussian blur that’s way faster.
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Brad Larson
Rounak Jain
Jeff LaMarche
Phillip Bowden
Roman Buussyghin