Per-pixel shader?

Posts: 469
Joined: 2002.10
Post: #16
I've posted the latest project files 208030920.
I've fixed all the shader issues and put bandaids on the transform problems.
I've also stuck a flag in the code to switch between glGetTexImage and PBO transfer (GPU -> CPU) at the top of

Primary vector field tex (not read back): 1024x1024
2 Secondary data tex's (for upload and readback): 64x64
Render timer set at 1k fps

With glGetTexImage: 75fps
With PBO transfer: 100fps

I'm pretty happy with it. Even with the glGetTexImage() simplified routine it's pretty snappy (though I'll still make the PBO thing a requirement anyways since the other features need OpenGL 2.0)

Edit: One thing I learned doing this is Async PBO read back doesn't work unless OpenGL multithreading is enabled.

15.4" MacBook Pro revA
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  ios/mac shader - shared glsl source OptimisticMonkey 2 7,356 Jun 17, 2011 08:59 AM
Last Post: OptimisticMonkey
  passing values from vertex to fragment shader Sumaleth 5 16,972 Feb 18, 2011 01:54 AM
Last Post: Holmes
  [CoreGraphics] Image manipulation - pixel by pixel g00se 5 18,861 Jul 28, 2010 08:27 AM
Last Post: ThemsAllTook
  Changing Uniform Variables for a Single Shader reapz 3 8,985 Jul 15, 2010 01:29 AM
Last Post: dazza
  Vertex shader particle billboarding question TomorrowPlusX 3 7,946 Sep 15, 2008 06:46 AM
Last Post: TomorrowPlusX