Google-apps
Hoofdmenu

Post a Comment On: C0DE517E

"Concurrency part 2"

6 Comments -

1 – 6 of 6
Blogger Arseny Kapoulkine said...

Uhm, I don't quite know what platforms are major for you, but since command buffer is just memory resource, you can easily fill it from multiple threads provided you properly synchronize them. If you don't want to do it, you can fill separate command buffers and issue jumps in the main command buffer at the end of the frame - either way, it's possible (of course, the rendering order is not exactly specified if the lock timing changes, but if you want to have the perfectly consistent drawing order, you can't use concurrency for drawing even with the ideal HW).

April 17, 2008 at 11:13 AM

Blogger DEADC0DE said...

Well I don't want to be rough, but maybe reading the full post could have helped, expecially where I say "...The usual solution to this problem is to bake command buffers..." and then "...The problem with this approach...".

And the only problem with multitasking anyway is exactly having to sych threads to access shared memory resources, so the idea of filling a shared command buffer from many threads by synching them is really lame (and you don't even need a command buffer if you want to sync, you can just acquire the rendering device to the thread that need to issue the drawcalls in that case).

Last but not least, that idea also, as you notice, will end up with a non deterministic rendering order, something that in my code, I would really like to avoid.

April 17, 2008 at 9:37 PM

Blogger Arseny Kapoulkine said...

My point is, again, if you want a deterministic draw order, there's no way you can work without main render thread, that finally synchronizes everything, so the whole concurrency thing here is slightly moot.

I won't comment on other insults, you're sooo nice.

April 20, 2008 at 9:15 PM

Blogger DEADC0DE said...

Other insults?!?

April 20, 2008 at 11:03 PM

Blogger Art said...

I'd like to know more about this important topic. It's OK that there is a little heat, it makes some light.
Graphics Hardware '08
http://www.graphicshardware.org/program.html

How will artists get to use all those transistors?

July 28, 2008 at 11:48 AM

Blogger DEADC0DE said...

"How will artists get to use all those transistors?"

that's an intresting question... I will write a post sometime

August 4, 2008 at 2:57 PM

You can use some HTML tags, such as <b>, <i>, <a>

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot