• Advertisement

Archived

This topic is now archived and is closed to further replies.

Untracable bugz

This topic is 4968 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I made this program to benchmark my OpenGL application performance, it works fine on my pc but hangs on other pc's , can any one run it , and post testing results . 1. Did program ran from the beginning ?(yes/no) 2. Did program ran till the end ?(yes/no) If not then type the test where it hang (1..4) 3. If program ran correctly , post FPS results for each of 4 tests 4. Post your system specs (OS,CPU,RAM,VIDEO card,video driver version). I have tested it on these platforms 1. Mine - W98SE ,Intel Celeron 1.2 , 256 Mb, ATI RADEON 9000 128, 7.84 - Working OK 2. W2000pro,600 celeron, 128 ram, tnt2 vanta ,drivers unknown - working OK il post some other specs where it didn't work LINK > benchmarker.zip [edited by - DMINATOR on June 11, 2004 2:56:16 PM]

Share this post


Link to post
Share on other sites
Advertisement
Err... Dminator, I think you may have forgotten to give us any way of downloading the program.

Share this post


Link to post
Share on other sites
Works OK. AthlonXP 2.4+, 512 ram, gf-fx5950, windowsXP, detonator 61.12, results: 375 (test 1&2), 350 (test 3&4).
Screen with results keeps on blinking (single buffer?)... it''s hard to read.

You should never let your fears become the boundaries of your dreams.

Share this post


Link to post
Share on other sites
Athlon XP 2800+ (nforce2), 1 GiB Ram DDR-333, GeForce Ti 4800 SE (Monitor + TV, hw-accel 1 display), WinXP, ForceWare 56.72

Results ???

I can see the gun rotating (solid, wireframe 1&2), then my screen goes blank. All I can do is quit back to the desktop with esc. If you''d output results to a .txt-file I could maybe see ''em there.

Share this post


Link to post
Share on other sites
77fps, 74fps, 78fps, 78fps.

1200ghz athlon, 512mb ram, GeForce4 (NVIDIA kernel drivers 1.0-4180), Linux 2.4 (debian), Winex 3.3.2-1

Share this post


Link to post
Share on other sites
275 fps x 4

Linux 2.6.6 (Debian/testing), nVidia 1.0-5336 (module), wine (0.0.2004030), HW same as above.

[wine] fixme:msvcrt:MSVCRT_fopen :unknown flag a not supported

Share this post


Link to post
Share on other sites
Well, it''s not like it has to emulate a different architecture. It''s still x86. And OpenGL calls shouldn''t need much emulation either.

Share this post


Link to post
Share on other sites
1: Yes.
2: Yes.
3: All tests run at 60 FPS.
4: Win2000, Athlon 1600XP, 256Mb, GF2ti, 56.72.

--
Cheers,

Share this post


Link to post
Share on other sites
1. Did program ran from the beginning ?(yes/no)
YES

2. Did program ran till the end ?(yes/no)
YES


3. If program ran correctly , post FPS results for each of 4 tests
First Test:
FPS: 921

Second Test:
FPS: 1123

Third Test:
FPS: 1125

third Test #2:
FPS: 1152

4. Post your system specs (OS,CPU,RAM,VIDEO card,video driver version).
WinXP Pro
3.2 Ghz PIV
512 ram
Radion 9800 Pro
catalyst 4.6 driver

[edited by - Mulligan on June 12, 2004 3:17:14 PM]

Share this post


Link to post
Share on other sites
Yes
Yes

53
53
53
40

W98SE
AthlonXP 1800+
256
TNT II - detonators ** - don''t know for shure - downloaded them last month

Share this post


Link to post
Share on other sites
Ok thank''s for replyes , it seems i have problem with displaying text after these tests.
Here is how it is working

mode =
0 - textured
1 - textured + blur
2 - wireframe
3 - wireframe + fog

-1 - end screen ( showing results )



if(mode >= 0)
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear The Screen And The Depth Buffer

glMatrixMode (GL_MODELVIEW);// Select The Modelview Matrix


glLoadIdentity();

// translating to correct position

glRotatef(beta,1,0,0);
glRotatef(alpha,0.0f,1,0);
glTranslatef(xpos,ypos,zpos);

glBindTexture(GL_TEXTURE_2D,tobject.textures[lobject.stexture]);
//lobject.DrawV();

lobject.DrawList();

}
else // now displaying results

{

glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // Clear The Screen And The Depth Buffer

glMatrixMode (GL_MODELVIEW);// Select The Modelview Matrix


glLoadIdentity();

glPrintfixed(-0.05f,0.035f,"First test (normal) results :");
glPrintfixed(-0.05f,0.030f,"time - %f , frames - %d ",test1time,test1frames);
glPrintfixed(-0.05f,0.025f,"FPS - %f",(float)(test1frames / test1time)* 1000);

glPrintfixed(-0.05f,0.015f,"Second test (blur) results :");
glPrintfixed(-0.05f,0.010f,"time - %f , frames - %d ",test2time,test2frames);
glPrintfixed(-0.05f,0.005f,"FPS - %f",(float)(test2frames / test2time)* 1000);

glPrintfixed(-0.05f,-0.005f,"Third test (wireframe) results :");
glPrintfixed(-0.05f,-0.010f,"time - %f , frames - %d ",test3time,test3frames);
glPrintfixed(-0.05f,-0.015f,"FPS - %f",(float)(test3frames / test3time)* 1000);

glPrintfixed(-0.05f,-0.025f,"Third test (wireframe + fog) results :");
glPrintfixed(-0.05f,-0.030f,"time - %f , frames - %d ",test4time,test4frames);
glPrintfixed(-0.05f,-0.035f,"FPS - %f",(float)(test4frames / test4time)* 1000);

glPrintfixed(-0.05f,-0.040f,"Press r to restart. Total number of poly - %d",lobject.RetPolyNum());

}




Here is code for glPrintFixed
it''s a bit modified code from Nehe tutorial



GLvoid glPrintfixed(GLfloat x,GLfloat y,const char *fmt, ...)
{

char text[256];// Holds Our String

va_list ap;// Pointer To List Of Arguments


if (fmt == NULL)// If There''s No Text

return;// Do Nothing

va_start(ap, fmt);// Parses The String For Variables

vsprintf(text, fmt, ap);// And Converts Symbols To Actual Numbers

va_end(ap);// Results Are Stored In Text



glLoadIdentity();
glTranslatef(0,0,-0.1f);
glRasterPos2f(x,y);
glPrint(text);
}


GLvoid glPrint(const char *text)// Custom GL "Print" Routine

{
glPushAttrib(GL_LIST_BIT);// Pushes The Display List Bits( NEW )

glListBase(fontid - 32);// Sets The Base Character to 32( NEW )

glCallLists(strlen(text), GL_UNSIGNED_BYTE,text);// Draws The Display List Text( NEW )

glPopAttrib();// Pops The Display List Bits( NEW )

}



I don''t have a clue yet what could be the problem .

Share this post


Link to post
Share on other sites
Use a debugger. If using Visual C(++)... pause once it hangs, and look up where it is at that point.

If on Linux or the like, check out gdb (on gnu.org). You''ll want to run the program, pause it, and then run a "backtrace" (command: bt) which lists the function the program is in, and the function it was called from, and the function that called it, and so forth. This will help you track down the problem.

Share this post


Link to post
Share on other sites
quote:
Original post by MaulingMonkey
Use a debugger. If using Visual C(++)... pause once it hangs, and look up where it is at that point.

If on Linux or the like, check out gdb (on gnu.org). You''ll want to run the program, pause it, and then run a "backtrace" (command: bt) which lists the function the program is in, and the function it was called from, and the function that called it, and so forth. This will help you track down the problem.


I know how to debug these problems , the problem is that on my PC i don''t have any problems but , on other PC''s there are some problems i can''t run debugger there

Share this post


Link to post
Share on other sites
Generate your application debugging info (done by u) to a file and ask ppl to return u the file

Share this post


Link to post
Share on other sites

  • Advertisement