I wonder if it is feasible to add such capability to xith3d. In case of static geometry, loading geometry to main memory, only to copy it later to GPU, is a waste. Best solution is to use direct mmaped pointer to load data to GPU and let data stay in file. If for any reason GPU buffer will get invalidated/flushed, data can be recreated from file - but it does not have to be written to swap file in case of mem problem. On the other hand, if there is enough memory, it will be cached in OS disk buffer cache.
Do you think it would be possible to add such hook for xith3d ? Of course, only read-only geometry would be supported and file would have to be in native byte order.
Maybe same thing would be also nice for textures ? They have even bigger chance to be static and there is no point to put them there and back between main mem and swap if OS can handle it by using read-only files.