Quick noob question

  • Citizenkane
  • Topic Author
More
6 years 11 months ago #1 by Citizenkane Quick noob question was created by Citizenkane
If I am running a shader pass which renders to a 1x1 pixel texture, that shader pass only runs once per frame, right? (Or 8 times to a 4x2 pixel texture, etc.)

Please Log in or Create an account to join the conversation.

  • Marty McFly
More
6 years 11 months ago #2 by Marty McFly Replied by Marty McFly on topic Quick noob question
Correct.
But mostly some complex math that has small output data has huge compilation time, so this is more a culprit than execution time.
The following user(s) said Thank You: Citizenkane

Please Log in or Create an account to join the conversation.

  • Citizenkane
  • Topic Author
More
6 years 11 months ago - 6 years 11 months ago #3 by Citizenkane Replied by Citizenkane on topic Quick noob question
When you mean compilation time, do you mean like when ReShade starts up, processing effects? In terms of execution time, I can definitely see how crazy math on one pixel might take a lot longer than simple operations on many pixels - especially because of how the GPU parallelizes everything.

Otherwise, that makes perfect sense, thanks!
Last edit: 6 years 11 months ago by Citizenkane.

Please Log in or Create an account to join the conversation.

  • Marty McFly
More
6 years 11 months ago - 6 years 11 months ago #4 by Marty McFly Replied by Marty McFly on topic Quick noob question
Yes, at startup. A shader with an unrolled loop takes some time to compile, no matter the amount of pixels it runs on. Calculating avg color of screen by averaging as many pixels as possible is an example for heavy compilation time, even with a 1x1 output so performance hit is almost non existant.
Last edit: 6 years 11 months ago by Marty McFly.
The following user(s) said Thank You: Citizenkane

Please Log in or Create an account to join the conversation.

  • Citizenkane
  • Topic Author
More
6 years 11 months ago - 6 years 11 months ago #5 by Citizenkane Replied by Citizenkane on topic Quick noob question
Interesting, very good to know!

Cheers :)
Last edit: 6 years 11 months ago by Citizenkane.

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.