• 请不要在回答技术问题时复制粘贴 AI 生成的内容
orionl
V2EX  ›  程序员

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

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

    操作像素太慢了。

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