This is a read-only mirror of the content originally found on forum.gbadev.org
(now offline), salvaged from Wayback machine copies. A new forum can be found here.
DS development > Updating polygon buffer between 2 line renderings ...
#72436 - crabo - Sat Feb 18, 2006 4:23 pm
Did someone try to update the vertex array or polygon buffer between 2 line renderings to have more than 2048 triangles in one frame ? Is it really possible ?
#72453 - acox - Sat Feb 18, 2006 5:46 pm
I haven't tried it but I was thinking about it and I don't think it necessarily gets you what you might want even if it is possible.
My scheme would be:
Capture all polies for scene sorted by scanline.
On HBlanks transfer new polies, potentially flushing the buffer of old ones first when it is full
Double Buffer this list so you have one frame's worth of polies being sucked into hardware on Hblanks while a new frame's worth of polies is being generated over several VBlanks.
Where it possibly breaks down is on the question of how polies get into the rasterizer's internal buffer. If polies have to go through the normal command & data streams and that is limited to ~120,000 polies per second, then you have the same limitations. If the xform & command stream happens to be unbalanced so it could pump significantly more than 120,000 polies/sec you might have some joy. _________________ 3D on GBA