x


Fastest Shader for iPhone

Hello, well first post... hope all is fine.... So what is the fastest Shader for iPhone and what is the fastest Particle Shader ? many thanxxx

kerstin

Well i mean the Standart Shaders that ship with Unity iPhone ! Can't find something about Performance.... Like why is Lightmap Only Shader slow and Diffuse Fast much Faster ??? What is the best transparent Shader to use wit Ambient Light or Sun Light ? thanxxx

more ▼

asked Dec 19 '09 at 05:08 PM

muckel gravatar image

muckel
21 2 2 7

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first
Shader "Fastest Shader" { SubShader{ Pass{} } }

This question doesn't mean anything. The fastest shader is probably the one above, that renders black. (On other platforms, it might be a shader that renders absolutely nothing, but I'm not sure this is true on iPhone, due to oddities of the tile-based deferred rendering system.) You need to figure out what you need something to look like, and choose a shader based on that. You can always add bells and whistles if your framerate is high enough, but you need to nail down what is most important first. For instance, just a plain texture is frequently all I need. Here's the fastest general-purpose shader that does that.

http://www.unifycommunity.com/wiki/index.php?title=Texture_Only

more ▼

answered Dec 19 '09 at 07:20 PM

Jessy gravatar image

Jessy
15.6k 72 95 196

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1999
x1649
x470

asked: Dec 19 '09 at 05:08 PM

Seen: 4094 times

Last Updated: Dec 22 '09 at 03:28 PM