Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
91 user(s) are online (83 user(s) are browsing Forums)

Members: 0
Guests: 91

more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 5 6 7 (8) 9 10 »
Re: Porting apitrace
Home away from home
Home away from home


See User information
@Capehill
Tested latest one : didn't crash anymore, thanks!

On exit through it says for 02.quake3map:

Shell Process '02.Quake3Map': TSSetParameters fucntion pointer is NULL (call ignored)
Shell Process '02.Quake3Map': W3DN_TSSetParameters: texSmapler 0x629357a8, tags 0x63df26a8. Result 0 (W3DNEC_SUCCESS)

That happens before (not after) w3d profile dump appears. It even not right before, but in the begining of profiling table with a little broke it:

Warp3DNova.library version 1.65
Patched W3DN_CreateContext 0x7fe2c7cc with 0x7f99e67c
glSnoop
tracing paused
glSnoop
tracing resumed
Restored W3DN_CreateContext
Shell Process 
'02.Quake3Map'W3DN_DrawElementsrenderState 0x660e9698primitive 0baseVertex 0count 726indexBuffer 0x621c1308arrayIdx 0. Result 0 (W3DNEC_SUCCESS)

Warp3D Nova profiling results for Shell Process '02.Quake3Map':
  Function 
calls used 4097.037313 ms40.89 of context life-time 10020.539228 ms
Shell Process 
'02.Quake3Map'OGLES2_glActiveTexturetexture 33984
  Draw calls
/s 3771.5
                      
function | call count |     errors |        duration (ms) |  avgcall dur. (us) |      % of 4097.037313 ms |        % of CPU time
                  BufferUnlock 
|      75582 |          |          2169.230436 |               28.700 |                    52.95 |                21.65
Shell Process 
'02.Quake3Map'OGLES2_glBindTexturetarget 3553texture 284
                  DrawElements 
|      37792 |          |          1240.967098 |               32.837 |                    30.29 |                12.38
Shell Process 
'02.Quake3Map'OGLES2_glTexParameteritarget 3553pname 34046param 1
                        Submit 
|      40425 |          |           322.849404 |                7.986 |                     7.88 |                 3.22
                         Clear 
|       1453 |          |           157.851509 |              108.638 |                     3.85 |                 1.58
                       VBOLock 
|      75582 |          |            82.206356 |                1.088 |                     2.01 |                 0.82
                   VBOSetArray 
|     187502 |          |            70.919058 |                0.378 |                     1.73 |                 0.71
               TSSetParameters 
|      74129 |          |            22.227729 |                0.300 |                     0.54 |                 0.22
                      WaitDone 
|       2362 |          |            11.339028 |                4.801 |                     0.28 |                 0.11
         BindVertexAttribArray 
|     149711 |          |             7.901955 |                0.053 |                     0.19 |                 0.08
                   BindTexture 
|      74129 |          |             6.977203 |                0.094 |                     0.17 |                 0.07
          BindShaderDataBuffer 
|      75582 |          |             4.133253 |                0.055 |                     0.10 |                 0.04
             SetShaderPipeline 
|       2906 |          |             0.434286 |                0.149 |                     0.01 |                 0.00
  Primitive statistics
:
    
Total vertices 55691724. 5557757.2 vertices/s1473.6 vertices/callconsisting of:
    - 
Triangle vertices 55691724. 5557757.2 verts/s1473.6 verts/call
Restored W3DN context 
function BindBitMapAsTexture
Restored W3DN context 
function BindShaderDataBuffer


See, at begining. Probabaly dumping of profile info can wait let's say a second more, so those "ignore calls" will not broke table ?

Also see at top there some W3DN_DrawElements() call noted like if it come from tracing (while only profiling was enabled).

But after that all looks clean, ogles2 profile table also clean, and on very exit it before "Waiting over" words it says :

Shell Process '02.Quake3Map': OGLES2_glActiveTexture: texture 33985
Shell Process '02.Quake3Map': ActiveTexture function pointer is NULL (call ignored).

And then exit. No crash, so all fine.

Through probabaly you right issue was here before, just we didn't face it before because not many ogl functions was added. But now when all of them added probabaly time was in need to be increased.

Also tested "starttime/duration" now again, its indeed good and was worth of adding ! Because if run without it, then in profile log i have a looot of functions for both w3d and ogles2 (i.e. those calls which happens only on begining, before things stabilized). And you may think that there is a lot used, but when you run it with "starttime/duration", then profile logs is much more clear and much better show whole picture of only calls which is used indeed in process.

Also have another suggestion if you doesn't mind (but dunno how good is it and worth or not of adding) : maybe group "agl*" functions as other little table at end of the "gl" ogles2 table ? Because they are amigaos4 specific, and not related to rendering itself mostly. Just as idea of course..

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting apitrace
Home away from home
Home away from home


See User information
@Capehill
Also found another cosmetic issue:

If you run glsnoop in profile mode, and then run gl app, but then firstly close not app, but glsnoop, then in the log we have a lot of words about resotring all w3d functions and ogles2 functinos.

While if we close opengl app first, and then glsnoop, then there is no such massive output about restoring.

Is it possible to hide it also in that case ?

Maybe create some "level" of glsnoop's output, where we can hide glsnoop's internal outputs ? From another side if it already hided when we close opengl app first, then maybe just hide it and in case when glsnoop closed first, without any mambo-jambo with levels, etc ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting apitrace
Just can't stay away
Just can't stay away


See User information
@kas1e

Also aglSwapBuffers is Amiga-specific. There are only like 9 agl* functions at the moment...

I'm thinking about hiding those extra logs and maybe revisit the issue in 0.4 with better logging system.

Go to top
Re: Porting apitrace
Home away from home
Home away from home


See User information
@Capehill

Tested new one , all fine now in terms of dumping info : no broken tables, and no tracing logs. Also new verbose=false works now too : if i use profile (with or without starttime/duratin) it is now dump on serial all clean and verbose-logs clean (does not matter if i close glsnoop first, or close gl app first : all fine).

So, thanks !

Are you about to release v0.3 then ? If so i can also update .guide a bit , as well as do some good stress-testing.

ps. the only thing that i notice now, is that when i run glsnoop like just "glsnoop PROFILE", in output it says:

OGLES2 tracing: [enabled]
WARP3DNOVA tracing: [enabled]
GUI: [disabled]
Tracing mode: [disabled]
Filter file name: [disabled]
Start time: [0] seconds
Duration: [0] seconds


So far, it looks a bit wrong that we have OGLES2 tracing and WARP3DOVA tracing there as "enabled", but then tracing mode : disabled.

Maybe for better logic and understanding , it can be like this:

OGLES2 tracing: [disabled]
WARP3DNOVA tracing: [disabled]
OGLES2 profiling: [enabled]
WARP3DNOVA profiling: [enabled]
GUI: [disabled]
Filter file name: [disabled]
Start time: [0] seconds
Duration: [0] seconds

Or something of that sort, so user will see that tracing disabled, but profiling only enabled. Or maybe something like:


OGLES2 mode: [tracing: disabled, profiling: enabled]
WARP3DNOVA mode: [tracing: disabled, profiling: enabled]
GUI: [disabled]
Filter file name: [disabled]
Start time: [0] seconds
Duration: [0] seconds

What you think ? And all those 4 states can be taken in matter of what switches are used. If let's say we disable warp3d fully, then it can be "WARP3DNOVA mode: [fully disabled]" , or the same "WARP3DNOVA mode: [tracing: disabled, profiling: disabled]".

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting apitrace
Just can't stay away
Just can't stay away


See User information
@kas1e

Yes, I would like to release 0.3 soonish, need a little break from this project and there are so many other projects to work on.

I would prefer output like this, for simplicity:

OGLES2 module: [enabled]
WARP3DNOVA module: [enabled]

Go to top
Re: Porting apitrace
Home away from home
Home away from home


See User information
@Capehill
Tested new, yeah, now output better, thanks!

Quote:

Yes, I would like to release 0.3 soonish


Will change guide a bit then tomorrow

Quote:

need a little break from this project and there are so many other projects to work on.


It's already do what should do, clean, bug-free and feature rich. Even if it will stay forever on 0.3 version, it's already very good.



Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting apitrace
Just can't stay away
Just can't stay away


See User information
@kas1e

Quote:
Will change guide a bit then tomorrow


Did you have have time to do so? If not, I could update parameters and version numbers and that kind of stuff myself while waiting for your edits.

Go to top
Re: Porting apitrace
Home away from home
Home away from home


See User information
@Capehill
Today will upload 100%

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting apitrace
Home away from home
Home away from home


See User information
@Capehill
Done: http://kas1e.mikendezign.com/aos4/glsnoop/glSnoop.guide

Plz check english in. Also have a look at PROFILE description in the "Command-line parameters" tab. I didn't explain 2 tables (as didn't know well what they mean still), and descriptions of other may be in some wonky english :)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting apitrace
Just can't stay away
Just can't stay away


See User information
@kas1e

Thanks. I made some modifications in my Finglish.

0.3 RC1 is available: https://github.com/capehill/glsnoop/releases

Go to top
Re: Porting apitrace
Home away from home
Home away from home


See User information
@Capehill
Briefly checked:

- guide fine
- filters fine (have all functions from both ogles2 and nova)
- gui mode works (icnofication, about, pause/resume of all sorts, exit firstly from glsnoop, exit firstly from gl apps, etc)
- can't make it crash (tried hard in different conditions)

The best release since begining probably :)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting apitrace
Home away from home
Home away from home


See User information
@Capehill
Found 2 issue through, and have one suggestion, see below :)

First one cosmetic: if we use "glsnoop PROFILE GUI" , and then finis/start/finish/start/finish, the in output we have that:

Profiling finished by user (#5) - displaying statistics

Warp3D Nova profiling results for Background CLI 'reborn-sp':
  Function 
calls used 9160.350476 ms51.16 of context life-time 17906.152662 ms
  Draw calls
/s 1945.0
                      
function | call count |     errors |        duration (ms) |  avgcall dur. (us) |      % of 9160.350476 ms |        % of CPU time
                  DrawElements 
|      34828 |          |          7167.982195 |              205.811 |                    78.14 |                40.03
                  BufferUnlock 
|      68303 |          |           903.948030 |               13.234 |                     9.85 |                 5.05
                        Submit 
|      36986 |          |           770.834045 |               20.841 |                     8.40 |                 4.30
                         Clear 
|       1038 |          |           104.968541 |              101.126 |                     1.14 |                 0.59
                       VBOLock 
|      59472 |          |            67.375679 |                1.133 |                     0.73 |                 0.38
                   VBOSetArray 
|     134623 |          |            57.274627 |                0.425 |                     0.62 |                 0.32
                      WaitDone 
|       2845 |          |            48.362426 |               16.999 |                     0.53 |                 0.27
                       DBOLock 
|       8831 |          |             7.524211 |                0.852 |                     0.08 |                 0.04
         BindVertexAttribArray 
|     107520 |          |             6.951098 |                0.065 |                     0.08 |                 0.04
                   BindTexture 
|      36850 |          |             6.214015 |                0.169 |                     0.07 |                 0.03
          BindShaderDataBuffer 
|      69656 |          |             5.414336 |                0.078 |                     0.06 |                 0.03
                  SetBlendMode 
|       6379 |          |             5.177664 |                0.812 |                     0.06 |                 0.03
                      SetState 
|      22672 |          |             3.218526 |                0.142 |                     0.04 |                 0.02
          SetBlendModeSeparate 
|       6379 |          |             1.710316 |                0.268 |                     0.02 |                 0.01
             SetShaderPipeline 
|      10511 |          |             1.153404 |                0.110 |                     0.01 |                 0.01
              SetPolygonOffset 
|      10815 |          |             1.113263 |                0.103 |                     0.01 |                 0.01
                    SetScissor 
|       1557 |          |             0.704201 |                0.452 |                     0.01 |                 0.00
                   SetViewport 
|       2078 |          |             0.422536 |                0.203 |                     0.00 |                 0.00
           SetDepthCompareFunc 
|          |          |             0.001363 |                0.170 |                     0.00 |                 0.00
  Primitive statistics
:
    
Total vertices 212546738. 11870039.4 vertices/s6102.8 vertices/callconsisting of:
    - 
Triangle vertices 212543718. 11869870.8 verts/s6102.7 verts/call
    
Triangle fan vertices 3020. 168.7 verts/s0.1 verts/call

OpenGL ES 2.0 profiling results 
for Background CLI 'reborn-sp':
  Function 
calls used 0.000000 ms0.00 of context life-time 18216.209243 ms
  Frames
/s 0.0
                      
function | call count |     errors |        duration (ms) |  avgcall dur. (us) |         % of 0.000000 ms |        % of CPU time
  
*) Please note that the above time measurements include time spent inside Warp3D Nova functions
  Primitive statistics
:
    
Nothing was drawnvertex count 0

OpenGL ES 2.0 profiling results 
for Background CLI 'reborn-sp':
  Function 
calls used 0.000000 ms0.00 of context life-time 18257.766977 ms
  Frames
/s 0.0
                      
function | call count |     errors |        duration (ms) |  avgcall dur. (us) |         % of 0.000000 ms |        % of CPU time
  
*) Please note that the above time measurements include time spent inside Warp3D Nova functions
  Primitive statistics
:
    
Nothing was drawnvertex count 0

OpenGL ES 2.0 profiling results 
for Background CLI 'reborn-sp':
  Function 
calls used 10367.214837 ms56.65 of context life-time 18301.166195 ms
  Draw calls
/frame 67.1Draw calls/s 1903.2
  Frames
/s 28.4
                      
function | call count |     errors |        duration (ms) |  avgcall dur. (us) |     % of 10367.214837 ms |        % of CPU time
                  DrawElements 
|      34830 |          |          9713.413093 |              278.881 |                    93.69 |                53.08
                         Clear 
|       1038 |          |           130.566055 |              125.786 |                     1.26 |                 0.71
                       Disable 
|       9821 |          |           125.867268 |               12.816 |                     1.21 |                 0.69
                    UseProgram 
|      10511 |          |            97.925333 |                9.316 |                     0.94 |                 0.54
                        Enable 
|       9821 |          |            82.442466 |                8.395 |                     0.80 |                 0.45
                     BlendFunc 
|       6379 |          |            47.210386 |                7.401 |                     0.46 |                 0.26
                   BindTexture 
|      33941 |          |            35.638055 |                1.050 |                     0.34 |                 0.19
                   DepthRangef 
|       2078 |          |            33.422155 |               16.084 |                     0.32 |                 0.18
                   SwapBuffers 
|        519 |          |            30.159198 |               58.110 |                     0.29 |                 0.16
                        Finish 
|        876 |          |            24.246095 |               27.678 |                     0.23 |                 0.13
                       Scissor 
|       1557 |          |            21.166997 |               13.595 |                     0.20 |                 0.12
              UniformMatrix4fv 
|       8831 |          |            18.642486 |                2.111 |                     0.18 |                 0.10
                     DepthMask 
|       7612 |          |             3.168481 |                0.416 |                     0.03 |                 0.02
                 PolygonOffset 
|       3605 |          |             1.178947 |                0.327 |                     0.01 |                 0.01
           VertexAttribPointer 
|       4238 |          |             1.126737 |                0.266 |                     0.01 |                 0.01
      DisableVertexAttribArray 
|       2146 |          |             0.445554 |                0.208 |                     0.00 |                 0.00
       EnableVertexAttribArray 
|       2146 |          |             0.266787 |                0.124 |                     0.00 |                 0.00
                     DepthFunc 
|          |          |             0.126356 |               15.794 |                     0.00 |                 0.00
                    ReadPixels 
|       1008 |          |             0.120301 |                0.119 |                     0.00 |                 0.00
               VertexAttrib4fv 
|        519 |          |             0.082085 |                0.158 |                     0.00 |                 0.00
  
*) Please note that the above time measurements include time spent inside Warp3D Nova functions
  Primitive statistics
:
    
Total vertices 212547122. 11613856.7 vertices/s6102.4 vertices/callconsisting of:
    - 
Triangle vertices 212544102. 11613691.7 verts/s6102.3 verts/call
    
Triangle fan vertices 3020. 165.0 verts/s0.1 verts/call


See, between 2 tables something wrong happens: 2 times empty opengles2 profiling results writen, and only 3st one are correct table, while for warp3dnova 1 time (how it should be).

Second issue, it is small DSI crash. I got that when trying to debug RCTW Reboorn: just enough to run glsnoop (i do test via "glsnoop GUI PROFILE"), and run RCTW Reborn over it, it then will crash with nullpointer's DSI (DAR are 0x00000000). And stack trace point out on glSnoop:

Stack trace:
(
0x5F69C770) [ogles2_module.c:888glSnoop:OGLES2_aglCreateContext2()+0x1a4 (section 1 0x1E0DC)
(
0x5F69C7B0) [ogles2_module.c:886glSnoop:OGLES2_aglCreateContext2()+0x1a0 (section 1 0x1E0D8)



Also have suggestion to add to release archive also glsnoop.debug binary (which is with those gstabs). So those users/devs who can't build it by some reassons from github, can use debug version when things going wrong and have a proper stack traces.


Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting apitrace
Just can't stay away
Just can't stay away


See User information
@kas1e

Regarding DSI, I thought that OS4 would have caught zero page writes but does it actually need some magic configuration? Is X5000 kernel different from the others? Need to experiment with debug kernel later.

Go to top
Re: Porting apitrace
Home away from home
Home away from home


See User information
@Capehill
Tested new version : DSI fixed, yeah. But something with profile output notice again : i just run "glsnoop GUI PROFILE", then i just run RTCW Reboorn (no crash, so DSI gone) , play a bit, and exit from. Then close glsnoop.

And in log, i have that:

...
[
enumerateJoysticksJoystick 'PCI_sblive_hornet' (AI ID=24320has no axes/buttons ignoring.
[
SDL_SYS_JoystickInitENUM RETURNED0
[SDL_SYS_JoystickInitFound 0 joysticks
RadeonRX 
(4): Planar pointer
RadeonRX 
(4): Planar pointer
RadeonRX 
(4): Planar pointer
RadeonRX 
(4): Planar pointer
RadeonRX 
(4): Planar pointer
RadeonRX 
(4): Planar pointer
RadeonRX 
(4): Truecolour pointer
RadeonRX 
(4): pointer dimensions4646
RadeonRX 
(4): Truecolour pointer
RadeonRX 
(4): pointer dimensions4646

OpenGL ES 2.0 profiling results 
for Shell Process 'reborn-sp':
  Function 
calls used 38320.780150 ms36.14 of context life-time 106024.287719 ms
  Draw calls
/frame 91.4Draw calls/s 1120.4
  Frames
/s 12.3
                      
function | call count |     errors |        duration (ms) |  avgcall dur. (us) |     % of 38320.780150 ms |        % of CPU time
                  DrawElements 
|     118030 |          |         29952.694617 |              253.772 |                    78.16 |                28.25
                    TexImage2D 
|       5306 |          |          5941.245915 |             1119.722 |                    15.50 |                 5.60
                        Finish 
|       1972 |          |           441.352702 |              223.810 |                     1.15 |                 0.42
                        Enable 
|      23940 |          |           365.102276 |               15.251 |                     0.95 |                 0.34
                       Disable 
|      23936 |          |           355.135519 |               14.837 |                     0.93 |                 0.33
                    UseProgram 
|      34172 |          |           248.105624 |                7.260 |                     0.65 |                 0.23
                         Clear 
|       1785 |          |           209.919158 |              117.602 |                     0.55 |                 0.20
                 CompileShader 
|         10 |          |           190.654757 |            19065.476 |                     0.50 |                 0.18
                     BlendFunc 
|      17763 |          |           160.052130 |                9.010 |                     0.42 |                 0.15
                   BindTexture 
|     100129 |          |            89.521003 |                0.894 |                     0.23 |                 0.08
                   SwapBuffers 
|       1300 |          |            83.550236 |               64.269 |                     0.22 |                 0.08
                   DepthRangef 
|       4040 |          |            57.359840 |               14.198 |                     0.15 |                 0.05
              UniformMatrix4fv 
|      30874 |          |            51.628712 |                1.672 |                     0.13 |                 0.05
                    DrawArrays 
|        755 |          |            45.255539 |               59.941 |                     0.12 |                 0.04
                     DepthFunc 
|       1327 |          |            23.473524 |               17.689 |                     0.06 |                 0.02
                       Scissor 
|       3347 |          |            20.471258 |                6.116 |                     0.05 |                 0.02
                   GenTextures 
|        951 |          |            19.681764 |               20.696 |                     0.05 |                 0.02
                   LinkProgram 
|          |          |            19.255579 |             3851.116 |                     0.05 |                 0.02
                CreateContext2 
|          |          |            13.128381 |            13128.381 |                     0.03 |                 0.01
                     DepthMask 
|      25231 |          |             9.998075 |                0.396 |                     0.03 |                 0.01
                DeleteTextures 
|        951 |          |             7.991298 |                8.403 |                     0.02 |                 0.01
                      Viewport 
|        576 |          |             4.847880 |                8.416 |                     0.01 |                 0.00
                 TexParameteri 
|       3842 |          |             4.085414 |                1.063 |                     0.01 |                 0.00
           VertexAttribPointer 
|      11376 |          |             2.815599 |                0.248 |                     0.01 |                 0.00
      DisableVertexAttribArray 
|       5733 |          |             1.126617 |                0.197 |                     0.00 |                 0.00
                 PolygonOffset 
|       2667 |          |             0.915128 |                0.343 |                     0.00 |                 0.00
       EnableVertexAttribArray 
|       5736 |          |             0.657243 |                0.115 |                     0.00 |                 0.00
                    ReadPixels 
|       4870 |          |             0.332632 |                0.068 |                     0.00 |                 0.00
               VertexAttrib4fv 
|        747 |          |             0.156471 |                0.209 |                     0.00 |                 0.00
                 CreateProgram 
|          |          |             0.057063 |               11.413 |                     0.00 |                 0.00
                  ShaderSource 
|         10 |          |             0.048682 |                4.868 |                     0.00 |                 0.00
                  CreateShader 
|         10 |          |             0.043188 |                4.319 |                     0.00 |                 0.00
                      GetError 
|        959 |          |             0.041704 |                0.043 |                     0.00 |                 0.00
                   GetShaderiv 
|         10 |          |             0.012632 |                1.263 |                     0.00 |                 0.00
              GetActiveUniform 
|         13 |          |             0.008381 |                0.645 |                     0.00 |                 0.00
                  GetProgramiv 
|         25 |          |             0.006015 |                0.241 |                     0.00 |                 0.00
                   GetIntegerv 
|          |          |             0.005774 |                0.642 |                     0.00 |                 0.00
               GetActiveAttrib 
|         17 |          |             0.004972 |                0.292 |                     0.00 |                 0.00
                   StencilFunc 
|          |          |             0.004692 |                4.692 |                     0.00 |                 0.00
             GetAttribLocation 
|         17 |          |             0.003970 |                0.234 |                     0.00 |                 0.00
                      CullFace 
|          |          |             0.003930 |                3.930 |                     0.00 |                 0.00
                  AttachShader 
|         10 |          |             0.003769 |                0.377 |                     0.00 |                 0.00
                     StencilOp 
|          |          |             0.003569 |                3.569 |                     0.00 |                 0.00
            GetUniformLocation 
|         13 |          |             0.003569 |                0.275 |                     0.00 |                 0.00
                   StencilMask 
|          |          |             0.002647 |                2.647 |                     0.00 |                 0.00
                   ClearDepthf 
|          |          |             0.002526 |                0.632 |                     0.00 |                 0.00
                     GetString 
|          |          |             0.002246 |                1.123 |                     0.00 |                 0.00
                    Uniform1iv 
|          |          |             0.001845 |                0.264 |                     0.00 |                 0.00
                     LineWidth 
|          |          |             0.001684 |                1.684 |                     0.00 |                 0.00
      GetShaderPrecisionFormat 
|          |          |             0.000722 |                0.722 |                     0.00 |                 0.00
                    ClearColor 
|          |          |             0.000682 |                0.341 |                     0.00 |                 0.00
                    Uniform1fv 
|          |          |             0.000561 |                0.561 |                     0.00 |                 0.00
                 ActiveTexture 
|          |          |             0.000241 |                0.120 |                     0.00 |                 0.00
                   MakeCurrent 
|          |          |             0.000201 |                0.201 |                     0.00 |                 0.00
  
*) Please note that the above time measurements include time spent inside Warp3D Nova functions
  Primitive statistics
:
    
Total vertices 73823954. 696292.9 vertices/s621.5 vertices/callconsisting of:
    - 
Triangle vertices 73820934. 696264.4 verts/s621.5 verts/call
    
Triangle fan vertices 3020. 28.5 verts/s0.0 verts/call

OpenGL ES 2.0 profiling results 
for Shell Process 'reborn-sp':
  Function 
calls used 0.000000 ms0.00 of context life-time 110066.450967 ms
  Frames
/s 0.0
                      
function | call count |     errors |        duration (ms) |  avgcall dur. (us) |         % of 0.000000 ms |        % of CPU time
  
*) Please note that the above time measurements include time spent inside Warp3D Nova functions
  Primitive statistics
:
    
Nothing was drawnvertex count 0

Warp3D Nova profiling results 
for Shell Process 'reborn-sp':
  Function 
calls used 36728.882446 ms33.70 of context life-time 108992.056822 ms
  Draw calls
/s 1089.9
                      
function | call count |     errors |        duration (ms) |  avgcall dur. (us) |     % of 36728.882446 ms |        % of CPU time
                  DrawElements 
|     118030 |          |         18318.881684 |              155.205 |                    49.88 |                16.81
                  BufferUnlock 
|     233680 |          |          5837.687699 |               24.982 |                    15.89 |                 5.36
                TexUpdateImage 
|       5306 |          |          4300.901454 |              810.573 |                    11.71 |                 3.95
             TexUpdateSubImage 
|       5306 |          |          4294.767679 |              809.417 |                    11.69 |                 3.94
                        Submit 
|     109809 |          |          2152.619308 |               19.603 |                     5.86 |                 1.98
                      WaitDone 
|      12909 |          |           686.091268 |               53.148 |                     1.87 |                 0.63
                       VBOLock 
|     202806 |          |           214.760742 |                1.059 |                     0.58 |                 0.20
                   VBOSetArray 
|     465866 |          |           174.617103 |                0.375 |                     0.48 |                 0.16
                 CompileShader 
|         10 |          |           161.772872 |            16177.287 |                     0.44 |                 0.15
                         Clear 
|       1785 |          |           152.098005 |               85.209 |                     0.41 |                 0.14
      CreateVertexBufferObject 
|        878 |          |           132.358697 |              150.750 |                     0.36 |                 0.12
                 CreateTexture 
|        951 |          |            79.990817 |               84.112 |                     0.22 |                 0.07
     DestroyVertexBufferObject 
|        749 |          |            32.870937 |               43.886 |                     0.09 |                 0.03
          BindShaderDataBuffer 
|     237570 |          |            31.448180 |                0.132 |                     0.09 |                 0.03
                    DrawArrays 
|        755 |          |            27.037554 |               35.811 |                     0.07 |                 0.02
        CreateDataBufferObject 
|        320 |          |            18.622396 |               58.195 |                     0.05 |                 0.02
         BindVertexAttribArray 
|     368249 |          |            17.962907 |                0.049 |                     0.05 |                 0.02
                      SetState 
|      78460 |          |            17.491168 |                0.223 |                     0.05 |                 0.02
                   BindTexture 
|     117058 |          |            15.926617 |                0.136 |                     0.04 |                 0.01
                  SetBlendMode 
|      17764 |          |            15.625383 |                0.880 |                     0.04 |                 0.01
                       DBOLock 
|      30874 |          |            12.506466 |                0.405 |                     0.03 |                 0.01
              CreateTexSampler 
|        952 |          |             9.407519 |                9.882 |                     0.03 |                 0.01
                DestroyTexture 
|        949 |          |             4.918416 |                5.183 |                     0.01 |                 0.00
          SetBlendModeSeparate 
|      17765 |          |             4.744060 |                0.267 |                     0.01 |                 0.00
             SetShaderPipeline 
|      34172 |          |             2.660892 |                0.078 |                     0.01 |                 0.00
               TSSetParameters 
|       4794 |          |             2.220231 |                0.463 |                     0.01 |                 0.00
             DestroyTexSampler 
|        950 |          |             2.016361 |                2.122 |                     0.01 |                 0.00
       DestroyDataBufferObject 
|        256 |          |             1.564551 |                6.112 |                     0.00 |                 0.00
                    SetScissor 
|       3352 |          |             1.274867 |                0.380 |                     0.00 |                 0.00
              SetPolygonOffset 
|       8000 |          |             0.958115 |                0.120 |                     0.00 |                 0.00
                   SetViewport 
|       4619 |          |             0.856301 |                0.185 |                     0.00 |                 0.00
              TexSetParameters 
|       1453 |          |             0.762185 |                0.525 |                     0.00 |                 0.00
                 DestroyShader 
|          |          |             0.715709 |               89.464 |                     0.00 |                 0.00
           SetDepthCompareFunc 
|       1328 |          |             0.231018 |                0.174 |                     0.00 |                 0.00
          GetVertexAttribArray 
|       5088 |          |             0.212170 |                0.042 |                     0.00 |                 0.00
           ShaderGetObjectInfo 
|        126 |          |             0.120461 |                0.956 |                     0.00 |                 0.00
          CreateShaderPipeline 
|          |          |             0.073945 |               14.789 |                     0.00 |                 0.00
                  FBBindBuffer 
|          |          |             0.034326 |               17.163 |                     0.00 |                 0.00
                  DBOSetBuffer 
|        384 |          |             0.019328 |                0.050 |                     0.00 |                 0.00
         DestroyShaderPipeline 
|          |          |             0.013113 |                3.278 |                     0.00 |                 0.00
                ShaderGetCount 
|         60 |          |             0.008421 |                0.140 |                     0.00 |                 0.00
       CreateRenderStateObject 
|          |          |             0.007820 |                7.820 |                     0.00 |                 0.00
                         Query 
|         40 |          |             0.004571 |                0.114 |                     0.00 |                 0.00
                      WaitIdle 
|          |          |             0.003569 |                3.569 |                     0.00 |                 0.00
             CreateFrameBuffer 
|          |          |             0.002406 |                2.406 |                     0.00 |                 0.00
                SetStencilFunc 
|          |          |             0.002165 |                2.165 |                     0.00 |                 0.00
              SetBlendEquation 
|          |          |             0.002085 |                2.085 |                     0.00 |                 0.00
                  SetStencilOp 
|          |          |             0.002005 |                2.005 |                     0.00 |                 0.00
           SetStencilWriteMask 
|          |          |             0.001684 |                1.684 |                     0.00 |                 0.00
         ShaderGetTotalStorage 
|         10 |          |             0.001163 |                0.116 |                     0.00 |                 0.00
          SetStencilOpSeparate 
|          |          |             0.000962 |                0.962 |                     0.00 |                 0.00
        SetStencilFuncSeparate 
|          |          |             0.000882 |                0.882 |                     0.00 |                 0.00
      SetBlendEquationSeparate 
|          |          |             0.000802 |                0.401 |                     0.00 |                 0.00
                  SetFrontFace 
|          |          |             0.000361 |                0.361 |                     0.00 |                 0.00
                  SetLineWidth 
|          |          |             0.000361 |                0.361 |                     0.00 |                 0.00
                SetBlendColour 
|          |          |             0.000361 |                0.361 |                     0.00 |                 0.00
   SetStencilWriteMaskSeparate 
|          |          |             0.000241 |                0.241 |                     0.00 |                 0.00
               SetRenderTarget 
|          |          |             0.000080 |                0.080 |                     0.00 |                 0.00
  Primitive statistics
:
    
Total vertices 73823954. 677333.3 vertices/s621.5 vertices/callconsisting of:
    - 
Triangle vertices 73820934. 677305.6 verts/s621.5 verts/call
    
Triangle fan vertices 3020. 27.7 verts/s0.0 verts/call

OpenGL ES 2.0 profiling results 
for Shell Process 'reborn-sp':
  Function 
calls used 0.000000 ms0.00 of context life-time 113003.726115 ms
  Frames
/s 0.0
                      
function | call count |     errors |        duration (ms) |  avgcall dur. (us) |         % of 0.000000 ms |        % of CPU time
  
*) Please note that the above time measurements include time spent inside Warp3D Nova functions
  Primitive statistics
:
    
Nothing was drawnvertex count 0
glSnoop
tracing resumed
warp3dnova_free
ogles2_free
ITimer user count 0
dropping it
glSnoop exiting



See, Ogles2 output dumps as first (not as second as all the time), also in the middle between two tables some sort of begining of ogles2 table can be seen, and at end of output again another begining of ogles2 table.

I.e. the same issue as in previous post, just in previous post 2 begining of ogles2 results was in the middle.

Another time i tried to just run "glsnoop PROFILE STARTTIME 15", and on exit it also have in the middle between 2 tables, those ogles2 table-headers.


And i give a go for better test of STARTTIME/DURATION thing, if you doesn't mind there my findings:

1. If i just use "STARTTIME 10" , without "DURATION" , so to want only start after 10 seconds, but to have unlimited duration, i have duration automatically set to "1" second.

Will be imho good, if when you set only "starttime", then duration will be unlimited, as by default when you don't use starttime/duration combo.

2. If i use just "DURATION 10" , without "STARTTIME", so to have 10 seconds record from very begining, then i also can't.
Even if i just do "STARTTIME 0 DURATION 10" it also didn't works. The only time when it works when i do "STARTTIME 1 DURATION 10", then it works.

So, in other words, will be good to use STARTTIME and DURATION independent of each others too.

And , both starttime/duration have some cosmetic issue in output:

1. When we run without starttime/duration, we have in output that:

Start time: [0] seconds
Duration: [0] seconds

While, "Duration" this time are "unlimited". So in that case will be good to have something like:

Start time: [0] seconds
Duration: [unlimited]

2. When we use only "starttime", then will be good to have it like:

Start time: [x] seconds
Duration: [unlimited]

3. And when we use only "duration" , then:

Start time: [0] seconds
Duration: [x] seconds

But that already the case, so only first and second cases can be adapter for output.


Edited by kas1e on 2019/10/2 4:47:12
Edited by kas1e on 2019/10/2 5:04:13
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting apitrace
Home away from home
Home away from home


See User information
@Capehill
Btw, is it possible to calculate for warp3dnova profile also frames per seconds too ? Or its unpossible as there is no "swapbuffer" thing ?

We currently have drawcalls/s and lots of info about primitive statistic, but is it possible to calcualte FPS as well ? Or we out of luck there ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting apitrace
Just can't stay away
Just can't stay away


See User information
@kas1e

I think you answered your own question. If you have an app that uses Nova directly, you can (have to?) implement your own frame counter.

Go to top
Re: Porting apitrace
Home away from home
Home away from home


See User information
@Capehill
I am mostly about Nova apps which not under our control and to which we have no sources, but that not big deal anyway, Drawcalls/s is fine to to compare.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting apitrace
Just can't stay away
Just can't stay away


See User information
@kas1e

If you see the strange profiling output tables only with a certain application, then maybe it got IOGLES2 twice. Duplicate patching could prove this theory, so you could make the logging verbose ( https://github.com/capehill/glsnoop/blob/master/logger.c#L9 ) and collect traces.

Go to top
Re: Porting apitrace
Home away from home
Home away from home


See User information
@Capehill
You are right. Tested with verbose on , and find out that it doing patching for ogles2 2 times.

And i think i know the reassons why it happens in RTCW_Reboorn: probabaly Huno for sake of being safe, open ogles2.library from RTCW code too (while, ogles2.library opens from the gl4es , and there no needs to open it from the code).

So we have 2 times opening of ogles2.library , so 2 times patching , and then have that empty table.

Then there is come question : is it possible to disallow 2 (or more) times patching for single app ? Or there will be problem with choicing the "right" one to patch ? (probably last one will be the "right one" all the time ?).

Anyway that mostly theoretical question , as its probabaly have no needs to make workarouds for apps which want to open ogles2.library many times for now reassons :)


Edited by kas1e on 2019/10/6 20:55:02
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Porting apitrace
Just can't stay away
Just can't stay away


See User information
@kas1e

RTCW should be fixed. I will see what I can do to improve glSnoop logging but in my opinion it is working correctly and pointing out some issue in a real app ;)

Go to top

  Register To Post
« 1 ... 5 6 7 (8) 9 10 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project