Original Post
hi, i need some advice from all you pro coders lurking around
the renderer creates a list of faces to render, then sorts them and flushes them
i have an idea which may improve performace..
create aa 3 or so list buffer, each list has a maximum of say 500
faces once a list is full, it is flushed down the pipeline and
waits to be filled again, so, while the list is being flushed,
could i create another thread and sort the next list to be
flushed, and sort everything while the data is being rendered?
eg.
A GOOD friend will come bail you out of jail... but, a TRUE friend will be sitting next to you saying, "Damn, we fucked up." Ingite 3D Game Engine Home -- Just click it
[edited by - silvermace on July 18, 2003 2:23:43 AM]
//call the renderer
renderer::sendfaces(...)
renderer::flush()
//implementation
void renderer::flush()
{
while( !flush_complete )
{
while( !current_list_full )
addfacetolist();
if( renderering )
createthread( sortlist(next_list) );
else
{
sortlist(current_list);
}
renderlist(current_list);
}
}
im really bad at explaining things, but if anyone had done something similar, would you mind giving me some tips on implementation etc?
thanx
- danushka
contact:
MSN & email: silvermace007@hotmail.com
edit: formating
A GOOD friend will come bail you out of jail... but, a TRUE friend will be sitting next to you saying, "Damn, we fucked up." Ingite 3D Game Engine Home -- Just click it