| |
|
|
| Hello Roland,
Why uses this program increasingly memory (if too slow) ?
without ogl("Clear") soar the Speicherverbrauch not on.
Messbar with X11 and X12.
writes one instead of ogl("clear") simply glClear(GL_COLOR_BUFFER_BIT) soar
the Speicherverbrauch too on.
Irgendwas akkumuliert OGL there. |
|
|
| |
|
|
|
RGH | Hm, I can here too to several minutes none Speicherverbrauch check.
Greeting Roland |
|
|
| XProfan X2Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 01/01/13 ▲ |
|
|
|
|
RGH | here my code for OGL("Clear"):
procedure fnOGLClear;
{-------------------}
var wh: double;
R: TRect;
width, height: integer;
rendermode: longint;
Begin
if oGLWnd = 0 Then FehlerNr(400,'');
GetClientRect(oGLWnd,R);
Height := R.Bottom;
Width := R.Right;
if (Height = 0) then Height := 1;
if OGLwh <= 0 then wh := Width/Height else wh := OGLwh;
glViewport(0, 0, Width, Height);
glGetIntegerv(GL_RENDER_MODE, @rendermode);
if (rendermode = GL_RENDER) Then Begin
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(45.0, wh, 0.1, oGLDepth);
End;
glMatrixMode(GL_MODELVIEW);
glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT or
GL_ACCUM_BUFFER_BIT or GL_STENCIL_BUFFER_BIT);
glLoadIdentity;
glTranslated(0, 0, 0.0000001);
RPar.Dbl := wh;
RPar.type := 4;
Found := True;
End;
|
|
|
| XProfan X2Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 01/01/13 ▲ |
|
|
|
|
RGH | I have now too time whom Beispielcode the ungehobelten XProfaners from the others Thread rewritten. One Speicherleck exit not at me on, but the program runs with the Time slower. the shining sooner a problem the of OpenGL manages graphic-Speichers To his. Möglicherweise depends with the its seltsamen Textures (no Bitmaps) together. my others OpenGL-programs having these Problems not.
Greeting Roland |
|
|
| XProfan X2Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 01/06/13 ▲ |
|
|
|
|
| I have here on my computer the Phänomen, that the above-mentioned simple Program itself apparently To Program Start determining, whether it at running increasingly memory verbrauchen would like or not. The chances for Error lying here by me with 20% or. each 5. Program Start and with manchen windows-Sessions too even each Program Start. Since I a very new computer with new Mainboard and neustem processor and dazugehörigen Treibern use, remaining it very angry. Perhaps is it Yes so, that it simply no fehlerfreien OGL-driver gives. Dass the Testmode on ("nur") each 2. computer functions, has me somehow of it abgebracht, komplexere OGL-projects To publish. Perhaps is Direct-X Yes rather and so for XProfan generally brauchbarer, though I one richtiger OGL-fan was. |
|
|
| |
|
|