Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

How to update Texture2D Color buffer without using SetData?

$
0
0

@Praptobala wrote:

Hi,

I am trying update my camera color 1920 x 1080 color buffer Texture2D for Rendering.

Is it possible to get Texture2D pixel buffer handle directly, so that I can copy my buffer directly into Texture2D.

Now I am doing 3 things get the color buffer from my camera to Texture2D.

  1. Allocating byte[] array in my application.
  2. Copy the Camera Color buffer to Byte Array.
  3. Set the Color Byte Array to Texture2D.SetData().

Since Tex2D.Setdata() taking more time for copying the buffer leads to frame drops.

I am getting only 5 or 6 frames sometimes..

Please help me is there any way around for this issue..

Thanks,
Bala

Posts: 8

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles