Code Monkey home page Code Monkey logo

vertextexturefetchforugui's Introduction

VertexTextureFetchForUGUI

Compare method to generate parameter texture.

Texture2D.SetPixels

Texture2D.SetPixels32

Texture2D.LoadRawTextureData

CommandBuffer.DrawMesh

Demo

http://mob-sakai.github.io/VertexTextureFetchForUGUI

去年発売のAndroidで計測し

1024x256 ARGB32
SetPixel            10.0 ms
SetPixel32           0.8 ms
LoadRawTextureData   0.3 ms
UpdateTexture(GPU)   2.0 ms

参考:コマンドバッファを利用した場合
1024x16x16 ARGB32
Mesh.set_colors32   50.0 ms <- これはひどい
CommandBuffer(GPU)   0.1 ms <- たぶん見間違い。もっと遅い

低解像度の場合

1024x16 ARGB32
SetPixel             1.0 ms
SetPixel32           0.15 ms
LoadRawTextureData   0.04 ms
UpdateTexture(GPU)   0.3 ms

参考:コマンドバッファを利用した場合
1024x16 ARGB32
Mesh.set_colors32    0.3 ms
CommandBuffer(GPU)   1.5 ms

コマンドバッファは1ドットあたり3頂点割当て(Triangle).

かかる時間: LoadRawTextureData <<< SetPixel32 <<<<<<< SetPixel <<<<<<<<<<<<< CommandBuffer

vertextexturefetchforugui's People

Contributors

mob-sakai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.