Am Montag, den 24.01.2005, 11:45 +0100 schrieb Dieter N�tzel:
> Am Montag, 24. Januar 2005 02:34 schrieb Felix K�hling:
> > Hi,
> >
> > After converting the Savage driver to use Ian's common texmem code I
> > noticed a performance regression in Torcs. It's trashing textures a lot
> > where it was running very smoothly before. I believe this is due to a
> > different texture heap preference. If I reverse the preference I get
> > back to the performance I had with my own texture memory management.
>
> Do you have a hint to reverse it for radeon/r200?
On r200 it won't have any effect because r200 uses only one texture
heap. On a typical r100 configuration the AGP heap is the smaller one,
so the current preference yields good results. Anyway, if you want to
hack up a reversed heap preference, do this:
--- ./texmem.c.~1.7.~ 2004-07-10 13:26:36.000000000 +0200
+++ ./texmem.c 2005-01-24 13:14:23.000000000 +0100
@@ -529,7 +529,7 @@
if ( t->memBlock == NULL ) {
for ( id = 0 ; (t->memBlock == NULL) && (id < nr_heaps) ; id++ ) {
- heap = heap_array[ id ];
+ heap = heap_array[ nr_heaps - id - 1 ];
if ( t->totalSize <= heap->size ) {
for ( cursor = heap->texture_objects.prev, temp = cursor->prev;
>
> I'll gave it a try then.
>
> Thanks,
> Dieter
>
--
| Felix K�hling <[EMAIL PROTECTED]> http://fxk.de.vu |
| PGP Fingerprint: 6A3C 9566 5B30 DDED 73C3 B152 151C 5CC1 D888 E595 |
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel