# Passing data from GameThread to Render thread. 

**URL:** <https://forums.unrealengine.com/t/passing-data-from-gamethread-to-render-thread/2568651>\
**Category:** Programming & Scripting\
**Tags:** threads, unreal-engine, Rendering, Blueprint, question, CPP\
**Created:** [June 21, 2025, 12:48am UTC](https://forums.unrealengine.com/t/passing-data-from-gamethread-to-render-thread/2568651 "2025-06-21T00:48:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Dasay2605](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dasay2605](https://forums.unrealengine.com/u/Dasay2605)\
**Post date:** [June 22, 2025, 12:51am UTC](https://forums.unrealengine.com/t/passing-data-from-gamethread-to-render-thread/2568651/3 "2025-06-22T00:51:48Z")

</div>

> [@Alex196](#):
>
> Creating a **Dynamic Material Instance** and updating values in it via **EventTick** are too slow and have very noticeable lag

I’ve used a **dynamic material** to send a 100x1 texture and never noticed a delay that big. There is a small delay, but I would never describe it as “noticeable”. The delay you might see when sending the mouse `cursor position` on `event tick` to the material is due to a software limitation. See the following discussion: [Mouse cursor lag (very noticable)](https://forums.unrealengine.com/t/mouse-cursor-lag-very-noticable/301414).

In the UnrealEngine bug tracker, the developers responded to this issue as follows:

> [@Developer Notes](#):
>
> This looks like software cursor lagging behind hardware cursor. There is no fix for this, other than hiding the hardware cursor…

In my previous answer here I mentioned using `ResolvedView.CursorPosition` in the **`custom`** node expression, right inside the material. I find this to be the fastest way since you just get the cursor position from the buffer directly without having to pass the data yourself at all. You most likely won’t be able to have a faster approach.

**Comment** : I’ve also had some issues in the past that I wanted to solve by passing parameters to the shader directly. To be honest, I haven’t come anywhere close. I’ve come to the conclusion that you’d probably have to modify the source code or write a hell of a lot of code to make it possible. What you’ve done doesn’t seem wrong as a first step, but then you’d need to pass those parameters to the correct “pass” which is done in some source code file. You could try looking at how it’s done in the “…\Runtime\Renderer\Private\BasePassRendering.cpp” file, I believe the function “AddPass” is used to send the parameters to the rendering thread, but I’m not 100% sure that’s the right file for the post-processing pass. So… Before you try to continue doing what you’re doing, check what the actual problem is first. Because I don’t think you want to do all that hard work to get something other than what you originally wanted.

---

_[View the full topic](https://forums.unrealengine.com/t/passing-data-from-gamethread-to-render-thread/2568651)._
