V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
orionl
V2EX  ›  程序员

有没有办法解决 U3D 里 Texture 的 GetPixel 和 SetPixel 的效率问题?

  •  
  •   orionl · Aug 23, 2021 · 1239 views
    This topic created in 1710 days ago, the information mentioned may be changed or developed.

    操作像素太慢了。

    2 replies    2021-08-23 16:53:43 +08:00
    shpkng
        1
    shpkng  
       Aug 23, 2021
    如果觉得用 Texture 的接口操作像素慢, 建议考虑一下你的功能需不需要操作像素
    有的功能就算慢也没办法, 必须得用
    typetraits
        2
    typetraits  
       Aug 23, 2021
    GetRawTextureData()获取 raw bytes,然后随便改,改完再从 raw bytes 生成 Texture
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3222 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 439ms · UTC 11:56 · PVG 19:56 · LAX 04:56 · JFK 07:56
    ♥ Do have faith in what you're doing.