From: tom f. <tf...@al...> - 2009-08-14 04:16:04
|
vinit bansal <ban...@gm...> writes: > For 1.1 program, there should not be a problem. But what about any > 2.0 application.. in that case i cant call OpenGL on Windows from my > wrapper, right ? You just need to load the functions you need at runtime via wglGetProcAddress. That's a pain though. I recommend GLEW (glew.sf.net). Cheers, -tom > On Thu, Aug 13, 2009 at 8:14 PM, Karl Schultz <kar...@gm...>wrote > : > > > No. That would require that a driver be written for each graphics card. > > Since vendors already supply OpenGL drivers on Windows, there is little > > incentive to repeat the work in Mesa for Windows. I suppose that one could > > do it if they had the appropriate hw specs. > > > > A couple of notes back in this thread you said that you had a wrapper for > > opengl-es functions, which supposedly called Mesa. Why not just use the > > stock Windows OpenGL and the drivers that are appropriate for your graphics > > card? IOW, why use Mesa at all for this? Why don't you simply call OpenGL > > on Windows from your wrapper? > > > > > > On Wed, Aug 12, 2009 at 9:08 PM, vinit bansal <ban...@gm...>wrote > : > > > >> Hi Karl, > >> Thanks for your reply. > >> Yes, you are right. I am using MESA on windows. > >> But is there a way to use h/w accelaration in MESA on windows? > >> > >> Thanks & Regards > >> Vinit > >> > >> On Wed, Aug 12, 2009 at 10:57 PM, Karl Schultz < > >> kar...@gm...> wrote: > >> > >>> Are you using the Mesa windows (gdi) driver? It is 100% software, so > >>> performance will be slow. > >>> > >>> Also, if you are on Windows, the standard timer is very low resolution. > >>> If I remember right, that timer has about a 16 ms period, which may expla > in > >>> the values you are getting. If you want higher resolution, then use the > >>> multimedia timer, or time things that take longer. > >>> > >>> On Tue, Aug 11, 2009 at 10:52 PM, vinit bansal <ban...@gm... > >>> > wrote: > >>> > >>>> Hi Brian, > >>>> Actually i wrote a wrapper for all opengl-es functions so that it'll > >>>> call our gl fuction only. > >>>> for ex for glorthox, internally in my wrapper i'll call glotho only. > >>>> this way i m able to run my opengl-es program using MESA .. :D:D > >>>> > >>>> My aim is , I want to know how much time my WGL calls are taking. > >>>> So i used clock function. > >>>> > >>>> here is my code: > >>>> > >>>> long start,end,time; > >>>> start = clock(); > >>>> wglcreatecontext(); > >>>> end = clock(); > >>>> time = end-start; > >>>> fprintf("print this time in file"); > >>>> > >>>> same i did for wglmakecurrent/glreadpixels etc ... > >>>> prob is , i am drawing a single frame again and again still i m getting > >>>> every time diff value. > >>>> > >>>> please find my attach logs. > >>>> > >>>> for *glreadpixels:* > >>>> *glreadpixels : 0.000000 mSec* > >>>> *glreadpixels : 16.000000 mSec* > >>>> *glreadpixels : 16.000000 mSec* > >>>> *glreadpixels : 0.000000 mSec* > >>>> *glreadpixels : 0.000000 mSec* > >>>> *glreadpixels : 16.000000 mSec* > >>>> *glreadpixels : 0.000000 mSec* > >>>> *glreadpixels : 15.000000 mSec* > >>>> *glreadpixels : 16.000000 mSec* > >>>> *glreadpixels : 0.000000 mSec* > >>>> *glreadpixels : 0.000000 mSec* > >>>> *glreadpixels : 16.000000 mSec* > >>>> *glreadpixels : 0.000000 mSec* > >>>> *glreadpixels : 16.000000 mSec* > >>>> *glreadpixels : 0.000000 mSec* > >>>> *glreadpixels : 16.000000 mSec > >>>> * > >>>> > >>>> for *wglCreateContext and wglMakeCurrent:* > >>>> *wglCreateContext : 0.000000 mSec > >>>> wglMakeCurrent : 16.000000 msec* > >>>> ** > >>>> *wglCreateContext : 0.000000 mSec > >>>> wglMakeCurrent : 16.000000 msec* > >>>> > >>>> *wglCreateContext : 0.000000 mSec > >>>> wglMakeCurrent : 0.000000 msec* > >>>> ** > >>>> I dont know why this time is different in each call? > >>>> ** > >>>> *Best regards* > >>>> *Vinit* > >>>> > >>>> > >>>> > >>>> On Tue, Aug 11, 2009 at 8:14 PM, Brian Paul <br...@vm...> wrote: > >>>> > >>>>> vinit bansal wrote: > >>>>> > >>>>>> Hi All, > >>>>>> I tried some opengl 2.0 es example using MESA. > >>>>>> I am able to render it properly but performance is not so good. > >>>>>> Is there any flag i need to enable to use optimized performance from > >>>>>> Mesa? > >>>>>> What is the meaning of performance data ? > >>>>>> What all it should include? > >>>>>> > >>>>> > >>>>> So you're using the opengl-es branch? You're probably using the > >>>>> "softpipe" gallium driver. > >>>>> > >>>>> What kind of GPU do you have? > >>>>> > >>>>> -Brian > >>>>> > >>>>> > >>>>> > >>>> > >>>> > >>>> ------------------------------------------------------------------------ > ------ > >>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > >>>> 30-Day > >>>> trial. Simplify your report design, integration and deployment - and > >>>> focus on > >>>> what you do best, core application coding. Discover what's new with > >>>> Crystal Reports now. http://p.sf.net/sfu/bobj-july > >>>> _______________________________________________ > >>>> Mesa3d-users mailing list > >>>> Mes...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/mesa3d-users > >>>> > >>>> > >>> > >> > > > > --000e0cd2e59655151b0471117e7e > Content-Type: text/html; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > > <div>For 1.1 program, there should not be a problem. But what about any 2.0= > application.. in that case i cant call OpenGL on Windows from my wrapper, = > right ? </div> > <div>My basic aim is to use 2.0 program for my application, for 1.1 i have = > n number of options.<br><br></div> > <div class=3D"gmail_quote">On Thu, Aug 13, 2009 at 8:14 PM, Karl Schultz <s= > pan dir=3D"ltr"><<a href=3D"mailto:kar...@gm...">karl.w.schu= > lt...@gm...</a>></span> wrote:<br> > <blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0= > px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">No.=A0 That would require that a= > driver be written for each graphics card.=A0 Since vendors already supply = > OpenGL drivers on Windows, there is little incentive to repeat the work in = > Mesa for Windows.=A0 I suppose that one could do it if they had the appropr= > iate hw specs.<br> > <br>A couple of notes back in this thread you said that you had a wrapper f= > or opengl-es functions, which supposedly called Mesa.=A0 Why not just use t= > he stock Windows OpenGL and the drivers that are appropriate for your graph= > ics card?=A0 IOW, why use Mesa at all for this?=A0 Why don't you simply= > call OpenGL on Windows from your wrapper?=20 > <div> > <div></div> > <div class=3D"h5"><br><br> > <div class=3D"gmail_quote">On Wed, Aug 12, 2009 at 9:08 PM, vinit bansal <s= > pan dir=3D"ltr"><<a href=3D"mailto:ban...@gm..." target=3D"_bl= > ank">ban...@gm...</a>></span> wrote:<br> > <blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0pt 0= > pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"> > <div>Hi Karl,</div> > <div>Thanks for your reply.</div> > <div>Yes, you are right. I am using MESA on windows.</div> > <div>But is there a way to use h/w accelaration in MESA on windows?</div> > <div>=A0</div> > <div>Thanks & Regards</div> > <div>Vinit<font color=3D"#888888"><br><br></font></div> > <div> > <div></div> > <div> > <div class=3D"gmail_quote">On Wed, Aug 12, 2009 at 10:57 PM, Karl Schultz <= > span dir=3D"ltr"><<a href=3D"mailto:kar...@gm..." target=3D"= > _blank">kar...@gm...</a>></span> wrote:<br> > <blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0= > px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Are you using the Me= > sa windows (gdi) driver?=A0 It is 100% software, so performance will be slo= > w.<br> > <br>Also, if you are on Windows, the standard timer is very low resolution.= > =A0 If I remember right, that timer has about a 16 ms period, which may exp= > lain the values you are getting.=A0 If you want higher resolution, then use= > the multimedia timer, or time things that take longer.<br> > <br> > <div class=3D"gmail_quote"> > <div> > <div></div> > <div>On Tue, Aug 11, 2009 at 10:52 PM, vinit bansal <span dir=3D"ltr"><<= > a href=3D"mailto:ban...@gm..." target=3D"_blank">bansal.itbhu@gma= > il.com</a>></span> wrote:<br></div></div> > <blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0pt 0= > pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"> > <div> > <div></div> > <div> > <div>Hi Brian,</div> > <div>Actually i wrote a wrapper for all opengl-es functions so that it'= > ll call our gl fuction only.</div> > <div>for ex for glorthox, internally in my wrapper i'll call glotho onl= > y.</div> > <div>this way i m able to run my opengl-es program using MESA .. :D:D</div> > <div>=A0</div> > <div>My aim is , I want to know how much time my WGL calls are taking.</div= > > > <div>So i used clock function.</div> > <div>=A0</div> > <div>here is my code:</div> > <div>=A0</div> > <div>long start,end,time;</div> > <div>start =3D clock();</div> > <div>wglcreatecontext();</div> > <div>end =3D clock();</div> > <div>time =3D end-start;</div> > <div>fprintf("print this time in file");</div> > <div>=A0</div> > <div>same i did for wglmakecurrent/glreadpixels etc ...</div> > <div>prob is , i am drawing a single frame again and again still i m gettin= > g every time diff value.</div> > <div>=A0</div> > <div>please find my attach logs.</div> > <div>=A0</div> > <div>for <b>glreadpixels:</b></div> > <div><b>glreadpixels : 0.000000 mSec</b></div> > <div><b>glreadpixels : 16.000000 mSec</b></div> > <div><b>glreadpixels : 16.000000 mSec</b></div> > <div><b>glreadpixels : 0.000000 mSec</b></div> > <div><b>glreadpixels : 0.000000 mSec</b></div> > <div><b>glreadpixels : 16.000000 mSec</b></div> > <div><b>glreadpixels : 0.000000 mSec</b></div> > <div><b>glreadpixels : 15.000000 mSec</b></div> > <div><b>glreadpixels : 16.000000 mSec</b></div> > <div><b>glreadpixels : 0.000000 mSec</b></div> > <div><b>glreadpixels : 0.000000 mSec</b></div> > <div><b>glreadpixels : 16.000000 mSec</b></div> > <div><b>glreadpixels : 0.000000 mSec</b></div> > <div><b>glreadpixels : 16.000000 mSec</b></div> > <div><b>glreadpixels : 0.000000 mSec</b></div> > <div><b>glreadpixels : 16.000000 mSec<br></b></div> > <div>=A0</div> > <div>for <b>wglCreateContext and wglMakeCurrent:</b></div> > <div><b>wglCreateContext : 0.000000 mSec<br>wglMakeCurrent : 16.000000 msec= > </b></div> > <div><b></b>=A0</div> > <div><b>wglCreateContext : 0.000000 mSec<br>wglMakeCurrent : 16.000000 msec= > </b></div> > <div><br><b>wglCreateContext : 0.000000 mSec<br>wglMakeCurrent : 0.000000 m= > sec</b></div> > <div><b></b>=A0</div> > <div>I dont know why this time is different in each call?</div> > <div><b></b>=A0</div> > <div><b>Best regards</b></div> > <div><b>Vinit</b></div> > <div> > <div></div> > <div> > <div><br><br>=A0</div> > <div class=3D"gmail_quote">On Tue, Aug 11, 2009 at 8:14 PM, Brian Paul <spa= > n dir=3D"ltr"><<a href=3D"mailto:br...@vm..." target=3D"_blank">br= > ia...@vm...</a>></span> wrote:<br> > <blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0= > px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"> > <div>vinit bansal wrote:<br> > <blockquote class=3D"gmail_quote" style=3D"PADDING-LEFT: 1ex; MARGIN: 0px 0= > px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi All,<br>I tried s= > ome opengl 2.0 es example using MESA.<br>I am able to render it properly bu= > t performance is not so good.<br> > Is there any flag i need to enable to use optimized performance from Mesa?<= > br>=A0What is the meaning of performance data ?<br>What all it should inclu= > de?<br></blockquote><br></div>So you're using the opengl-es branch? =A0= > You're probably using the "softpipe" gallium driver.<br> > <br>What kind of GPU do you have?<br><font color=3D"#888888"><br>-Brian<br>= > <br><br></font></blockquote></div><br></div></div><br></div></div>---------= > ---------------------------------------------------------------------<br> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day= > <br>trial. Simplify your report design, integration and deployment - and fo= > cus on<br>what you do best, core application coding. Discover what's ne= > w with<br> > Crystal Reports now. =A0<a href=3D"http://p.sf.net/sfu/bobj-july" target=3D= > "_blank">http://p.sf.net/sfu/bobj-july</a><br>_____________________________= > __________________<br>Mesa3d-users mailing list<br><a href=3D"mailto:Mesa3d= > -u...@li..." target=3D"_blank">Mes...@li...urcefo= > rge.net</a><br> > <a href=3D"https://lists.sourceforge.net/lists/listinfo/mesa3d-users" targe= > t=3D"_blank">https://lists.sourceforge.net/lists/listinfo/mesa3d-users</a><= > br><br></blockquote></div><br></blockquote></div><br></div></div></blockquo= > te> > </div><br></div></div></blockquote></div><br> > > --000e0cd2e59655151b0471117e7e-- > > > --===============8036142131938267590== > Content-Type: text/plain; charset="us-ascii" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > > ----------------------------------------------------------------------------- > - > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > --===============8036142131938267590== > Content-Type: text/plain; charset="us-ascii" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > > _______________________________________________ > Mesa3d-users mailing list > Mes...@li... > https://lists.sourceforge.net/lists/listinfo/mesa3d-users > > --===============8036142131938267590==-- > |