Replies: 1 comment 7 replies
-
I can't make any sense of why you'd want to do what you are doing, it's not something I've ever heard of trying, it just doesn't make sense in how people normally use scene graphs. You really need to take a big step back and tell us what the end result you want to achieve not how you are going about implementing it. We then can have a bash at suggesting the best way of implementing what you need to do. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hwllo, i have a question about data sync in vsg.
Situation.
I have set of Switch nodes with 1 mesh draw commands under them. Let's say 1000 of Switches. At the start of programm, they are empty (have no valid data, just zeros) and switches are turned off. I load some amount of meshes, let's say 300. By loading a mean change data in buffers (with DYNAMIC_DATA property set). Then after present() function (before new frame) i make this buffer dirty() and turn on switches what is loaded.
And then things are getting interesting. If i changing data too fast, it feels like some data transferring is delayed, or switches are turned on, but data is not updated yet.
I saw in some discussion that data is "staying" for 2 frames, so after i make data dirty() and changing switches state, i wait for 2 frames before new loading.
I loading is slow enough, it works, but if i load meshes faster, this thing is happening again.
Maybe there is some mechanism to wait for data be transfered, or something else.
Beta Was this translation helpful? Give feedback.
All reactions