Stats

Voici quelques échantillons statistiques des fonctions utilisées par diverses programmes utilisant Warp3D. Ils ont été récoltés avec l'aide de la version 1.1 de LibraryTimer. Très utiles pour connaître quelles fonctions et leurs fréquences sont utilisées par les jeux et démos lors de quelques minutes d'utilisation.


  • StarShipW3D (mode fenêtré) 
 
Warp3D.library
$0000150C  $0000000000015E2F  -  W3D_SetState
$00001E92  $000000000009590D  -  W3D_LockHardware
$00001E91  $00000000000A63ED  -  W3D_UnLockHardware
$000059C9  $000000000008C165  -  W3D_WaitIdle
$000001E9  $0000000000003903  -  W3D_SetDrawRegion
$000001EA  $0000000000002D19  -  W3D_ClearZBuffer
$000001EA  $0000000000002398  -  W3D_SetZCompareMode
$00001E90  $000000000001BEFA  -  W3D_Flush
$000001E9  $00000000000056F7  -  W3D_FlushFrame
$000001EA  $00000000000027BD  -  W3D_ClearDrawRegion
$00001CA8  $000000000001B3FB  -  W3D_VertexPointer
$00001CA8  $000000000001C081  -  W3D_TexCoordPointer
$00001CA8  $000000000001A3D6  -  W3D_ColorPointer
$00001CA8  $000000000001A8CE  -  W3D_BindTexture
$00001CA7  $000000000014CE96  -  W3D_DrawElements
$000001EA  $0000000000001BF8  -  W3D_SetFrontFace
 
W3D_AvengerLEMU.library
$000082E6  $00000000000D9AD1  -  LEMU_WaitIdle
$000002C9  $0000000000003CD6  -  LEMU_ClearZBuffer
$000002C9  $0000000000002E0C  -  LEMU_SetZCompareMode
$00002C90  $0000000000076997  -  LEMU_LockHardware
$00002C8F  $0000000000027C72  -  LEMU_UnLockHardware
$000002C9  $0000000000002B73  -  LEMU_GetDrawRegion
$000002C9  $0000000000002960  -  LEMU_FlushName
$000002C9  $000000000000441A  -  LEMU_ClearDrawRegion
$000029C7  $0000000000026870  -  LEMU_VertexPointer
$000029C7  $0000000000025712  -  LEMU_TexCoordPointer
$000029C7  $0000000000025640  -  LEMU_ColorPointer
$000029C7  $0000000001D5CF3  -  LEMU_DrawElements
$000010B6  $0000000000010332  -  LEMU_SetState
 
W3D_Picasso96MU.library
$00000299  $0000000000003697  -  W3D_P96MU_CheckBitmap
$0000298C  $00000000000776D2  -  W3D_P96MU_LockHardware
$0000298C  $0000000000065B70  -  W3D_P96MU_UnLockHardware

W3D_Picasso96API.library
$0000F9F6  $00000000000E6440  -  P96_GetBitMapAttr
$00002736  $000000000005E617  -  P96_LockBitMap
$00002735  $000000000005BDD9  -  P96_UnlockBitMap

  •  Fpse v0.10.4

Warp3D.library
$00002866  $000000000002A5EB  -  W3D_SetState
$00001433  $000000000006593B  -  W3D_LockHardware
$00001434  $0000000000043B09  -  W3D_UnLockHardware
$0000001E  $0000000000000220  -  W3D_SetFilter
$0000001E  $000000000000026B  -  W3D_SetTexEnv
$0000001E  $0000000000000398  -  W3D_UpdateTexImage
$0000024B  $0000000000002E64  -  W3D_SetBlendMode
$0000000E  $00000000000000E7  -  W3D_FlushFrame
$00000D1B  $000000000000B8F6  -  W3D_BindTexture
$00001434  $00000000001242F8  -  W3D_DrawElements
 
W3D_AvengerLEMU.library
$000013B8  $00000000000280C1  -  LEMU_WaitIdle
$000004A0  $0000000000005B3C  -  LEMU_SetBlendMode
$000013B8  $00000000000347C8  -  LEMU_LockHardware
$000013B8  $0000000000011F76  -  LEMU_UnLockHardware
$00000028  $000000000000024F  -  LEMU_FlushName
$000013B8  $00000000000D5BA2  -  LEMU_DrawElements
$000000A0  $0000000000000A42  -  LEMU_SetState

W3D_Picasso96MU.library
$00000419  $0000000000010CA2  -  W3D_P96MU_LockHardware
$00000419  $000000000000B3DB  -  W3D_P96MU_UnLockHardware
 
Picasso96API.library
$00000014  $000000000000108B  -  P96_AllocBitMap
$00000014  $00000000000006FA  -  P96_FreeBitMap
$0000479A  $0000000000043F09  -  P96_GetBitMapAttr
$000011F8  $0000000000031E26  -  P96_LockBitMap
$000011F8  $000000000002C76A  -  P96_UnlockBitMap


  • Cow3D v5 (mode fenêtré)
  •  
Warp3D.library
$0000023B  $00000000000025BC  -  W3D_SetState
$00000073  $0000000000002BEA  -  W3D_LockHardware
$00000072  $000000000000D019  -  W3D_UnLockHardware
$00000039  $0000000000000535  -  W3D_WaitIdle
$00000072  $0000000000000A69  -  W3D_SetTexEnv
$0005153A  $0000000000861756  -  W3D_DrawTriangle
$00000039  $000000000000072F  -  W3D_SetDrawRegion
$00000039  $0000000000000749  -  W3D_ClearZBuffer
$00000039  $00000000000003D8  -  W3D_SetZCompareMode
$00000072  $0000000000000682  -  W3D_Flush
$00000039  $0000000000000A10  -  W3D_FlushFrame
$00000039  $0000000000000479  -  W3D_ClearDrawRegion
$00000039  $0000000000000328  -  W3D_SetFrontFace

W3D_AvengerLEMU.library
$000001CD  $0000000000006697  -  LEMU_WaitIdle
$0000009A  $0000000000000D13  -  LEMU_ClearZBuffer
$000D95A3  $0000000015ADFF1  -  LEMU_DrawTriangle
$00000134  $0000000000001375  -  LEMU_SetTexEnv
$0000009A  $000000000000099E  -  LEMU_SetZCompareMode
$00000134  $0000000000003CFB  -  LEMU_LockHardware
$00000133  $0000000000001165  -  LEMU_UnLockHardware
$0000009A  $0000000000000979  -  LEMU_GetDrawRegion
$0000009A  $0000000000000922  -  LEMU_FlushName
$0000009A  $0000000000000B7E  -  LEMU_ClearDrawRegion
$00000134  $00000000000013F7  -  LEMU_SetState

W3D_Picasso96MU.library
$0000003A  $00000000000005FC  -  W3D_P96MU_CheckBitmap
$00000074  $0000000000001C59  -  W3D_P96MU_LockHardware
$00000073  $00000000000073CB  -  W3D_P96MU_UnLockHardware

Picasso96API.library
$000006E4  $00000000000065AD  -  P96_GetBitMapAttr
$000000C4  $000000000000255C  -  P96_LockBitMap
$000000C3  $0000000000005F29  -  P96_UnlockBitMap


  • GLBlitzQuake v1.0 (mode plein écran)
 
Warp3D.library
$00000001  $0000000000000003  -  W3D_DestroyContext
$00006A2F  $0000000000072820  -  W3D_SetState
$000003C0  $000000000001FCE  -  W3D_LockHardware
$000003C0  $0000000000018D78  -  W3D_UnLockHardware
$0000000A  $000000000000045C  -  W3D_AllocTexObj
$00000155  $0000000000004CD6  -  W3D_FreeTexObj
$0000001E  $00000000000001D7  -  W3D_SetFilter
$00000703  $0000000000009753  -  W3D_SetTexEnv
$0000000A  $00000000000000A9  -  W3D_SetWrapMode
$00000021  $000000000000038B  -  W3D_UpdateTexImage
$00002D60  $0000000000052907  -  W3D_DrawTriangle
$00000BD2  $000000000000DACF  -  W3D_SetBlendMode
$000003C1  $00000000000086BE  -  W3D_SetDrawRegion
$00000001  $0000000000000088  -  W3D_FreeZBuffer
$00000381  $0000000000005805  -  W3D_ClearZBuffer
$00000381  $0000000000004496  -  W3D_SetZCompareMode
$000003ED  $0000000000006622  -  W3D_SetCurrentColor
$00000001  $0000000000000011  -  W3D_FreeAllTexObj
$000191BC  $00000000006A2B01  -  W3D_DrawTriFanV
$000469E3  $000000000124098C  -  W3D_DrawArray
$00003302  $00000000000D590F  -  W3D_DrawElements
 
W3D_AvengerLEMU.library
$000002BA  $00000000000035EB  -  LEMU_WaitIdle
$000002BA  $00000000000043B3  -  LEMU_ClearZBuffer
$000004C1  $000000000000871C  -  LEMU_DrawTriangle
$00000606  $0000000000006385  -  LEMU_SetBlendMode
$0000016E  $00000000000015BC  -  LEMU_SetFilter
$000005CB  $0000000000005EE5  -  LEMU_SetTexEnv
$000000AA  $000000000000096A  -  LEMU_SetWrapMode
$000002BA  $00000000000030F8  -  LEMU_SetZCompareMode
$00000281  $0000000000003A42  -  LEMU_UpdateTexImage
$000002BA  $000000000000D50D  -  LEMU_LockHardware
$000002BA  $00000000000029E6  -  LEMU_UnLockHardware
$000002BF  $00000000000041FA  -  LEMU_SetCurrentColor
$000002BA  $000000000000347F  -  LEMU_GetDrawRegion
$00004BBB  $00000000001F4A3E  -  LEMU_DrawTriFanV
$0002A1A5  $0000000000F78013  -  LEMU_DrawArray
$00000F3D  $000000000002EE2F  -  LEMU_DrawElements
$0000479E  $000000000004A1AF  -  LEMU_SetState
                       
W3D_Picasso96.library
$0000003B  $00000000003F2DC7  -  W3D_P96MU_AllocVMem
$000000F4  $0000000000001B32  -  W3D_P96MU_CheckBitmap
$000000F4  $0000000000006A05  -  W3D_P96MU_LockHardware
$000000F3  $0000000000022BB7  -  W3D_P96MU_UnLockHardware

Picasso96API.library
$0000000D  $0000000000000B49  -  P96_AllocBitMap
$00000010  $0000000000000710  -  P96_FreeBitMap
$00000819  $0000000000007DD5  -  P96_GetBitMapAttr
$000000B6  $0000000000002B1A  -  P96_LockBitMap
$000000B6  $0000000000015FF8  -  P96_UnlockBitMap


  • Quake 2 (mode plein écran)
 
Warp3D.library
$00001EFC  $0000000000026FE0  -  W3D_SetState
$00000183  $0000000000018A0F  -  W3D_LockHardware
$00000182  $0000000000060470  -  W3D_UnLockHardware
$00000182  $0000000000002295  -  W3D_WaitIdle
$00000001  $000000000000007B  -  W3D_AllocTexObj
$00000003  $0000000000000033  -  W3D_SetFilter
$0000090E  $000000000000D0E3  -  W3D_SetTexEnv
$00000001  $0000000000000011  -  W3D_SetWrapMode
$000003F3  $00000000000060DB  -  W3D_SetBlendMode
$00000183  $0000000000004419  -  W3D_SetDrawRegion
$00000183  $00000000000029E8  -  W3D_ClearZBuffer
$00000183  $000000000000208A  -  W3D_SetZCompareMode
$000010A1  $000000000001B33F  -  W3D_SetCurrentColor
$00010A4A  $00000000002F9899  -  W3D_DrawTriFanV
$00004C18  $000000000011B51A  -  W3D_DrawTriStripV
$00022B56  $00000000007E7C3B  -  W3D_DrawArray

W3D_AvengerLEMU.library
$000001E2  $0000000000002599  -  LEMU_WaitIdle
$000001E2  $0000000000002BDE  -  LEMU_ClearZBuffer
$000003C4  $000000000000403E  -  LEMU_SetBlendMode
$00000004  $000000000000003C  -  LEMU_SetFilter
$00000E9D  $000000000000F0D0  -  LEMU_SetTexEnv
$00000002  $000000000000001D  -  LEMU_SetWrapMode
$000001E2  $0000000000001E95  -  LEMU_SetZCompareMode
$00000001  $0000000000000027  -  LEMU_UpdateTexImage
$000001E2  $000000000000958C  -  LEMU_LockHardware
$000001E2  $0000000000001C51  -  LEMU_UnLockHardware
$00000632  $00000000000074B2  -  LEMU_SetCurrentColor
$000001E2  $000000000000253A  -  LEMU_GetDrawRegion
$000005A6  $000000000000689A  -  LEMU_SetScissor
$0001C35B  $0000000000915462  -  LEMU_DrawTriFanV
$00000094  $0000000000033479  -  LEMU_DrawArray
$0001B002  $00000000006B8D9F  -  LEMU_DrawElements
$000031BE  $000000000003234A  -  LEMU_SetState
                   
W3D_Picasso96.library
$00000005  $0000000000054C70  -  W3D_P96MU_AllocVMem
$00000112  $0000000000001F52  -  W3D_P96MU_CheckBitmap
$00000112  $0000000000008797  -  W3D_P96MU_LockHardware
$00000111  $0000000000032C6A  -   W3D_P96MU_UnLockHardware
                   
Picasso96API.library
$0000000F  $0000000000000E6B  -  P96_AllocBitMap
$00000024  $0000000000001173  -  P96_FreeBitMap
$00000C51  $000000000000BD75  -  P96_GetBitMapAttr
$00000112  $00000000000076A1  -  P96_LockBitMap
$00000112  $000000000002BF68  -  P96_UnlockBitMap


Avec ces échantillons, nous constatons par exemple que P96_GetBitMapAttr est utilisée par tous les programmes listés et très souvent. C'est donc aussi une fonction importante à retravailler...
    

1 commentaire:

  1. Soir'

    Tu devrais mettre le nombre d'appels fonctions en decimal

    Ainsi normalement y a un ClearZbuffer/SetDrawRegion par frame

    Si le prog est optimal y a un SetBlenMode,SetZCompareMode,BindTexture,SetTexEnv,etc... par matériau

    Faudrait aussi que le SetState fasse rien si ce state est DEJA enabled ou disabled
    Idem BindTexture si c'est déjà la texture courante...

    Alain Thellier


    RépondreSupprimer

Laissez vos commentaires ici :