Tag Info

Hot answers tagged

3

Use the inspector to allow the user (you, or other developers) to be able to easily define the Component themselves without having to modify your code. Use the GetComponent() method if there is no need to be able to change it from the way you designed your script. Efficiency doesn't have to do with it. If you use GetComponent() in your script, you will ...


1

In the context of a highly parallelizable section of execution, like drawing pixels to the screen rendered from a some 3D/2D scene, GPUs are almost always likely to be faster because of their architecture. The decision, in a broad sense, for what programs will execute faster on a GPU vs. CPU should be thought of as how many different execution contexts can ...


1

As described here (last chapter), please check the value of the field renderCalls in your SpriteBatch (you have only one unique SpriteBatch instance right ?), this should tell you the real number of draw calls that the batch has made. If you have more renderCalls than what you would expect then maxSpritesInBatch value is too low or your sprites have ...



Only top voted, non community-wiki answers of a minimum length are eligible