Jump to content

Josh

Staff
  • Content Count

    15,972
  • Joined

  • Last visited

Community Reputation

8,432 Excellent

About Josh

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male
  • Location
    San Francisco, CA

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Single Status Update

See all updates by Josh

  1. I am very surprised but it appears that declaring variables outside of any shader function results in a very significant performance increase.

    1. reepblue

      reepblue

      My guess is that it's not redefining values each pass but I wouldn't know it would preform better.

    2. shadmar

      shadmar

      I believe lua also behaves like that.

    3. Josh

      Josh

      GPUs are so good at optimizing shader code, I assumed it just did something like this automatically under the hood.

×
×
  • Create New...