Am Sunday 28 June 2009 03:18:27 schrieb Alessandro: > Hi everyone, > while optimizing an application I found out that much time is spent inside > vbo_exec_fixup_vertex because each time vbo_exec_FlushVertices is called > the current vertex format is resetted using reset_attrfv, and so the > information about the application usage patterns is lost. > > Would not it be better to retain the current format? Quite probably in the > same application, always the same attributes will be used.
No. For some simple applications this may be true, but in general it's not. Therefore, you need some way of downgrading (resizing to be smaller) vertices. Obviously there might potentially be more intelligent ways to do this. Keep in mind that all this is happening in the slow path anyway; the fast path, which is recommended for all new applications would be to use vertex arrays, preferably with VBOs. In that path, no fixup_vertex should happen at all. cu, Nicolai ------------------------------------------------------------------------------ _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev