Advertisement

GLut vs NonGLut

Started by June 17, 2003 03:36 AM
3 comments, last by FabioPal 21 years, 8 months ago
I wrote a little, uncomplete, engine using GLut. Yesterday i was reading tutorial N°1 and tried to convert the entire engine without using GLut. It all went right. The engine is now working but... I have a terrible lack of speed!!! It''s about 50% less!!! What went wrong? Please Help! --------------------------------------- There are 10 type of people: those who knows binary code and those who doesn''t ---------------------------------------
---------------------------------------There are 10 type of people:those who knows binary codeand those who doesn't---------------------------------------
I read something about disabling VSync...
It should speed up the rendering speed?
Could this be a reason???

---------------------------------------
There are 10 type of people:
those who knows binary code
and those who doesn''t
---------------------------------------
---------------------------------------There are 10 type of people:those who knows binary codeand those who doesn't---------------------------------------
Advertisement
I am not sure since I don''t use GLUT since the last year, however I think this is not the problem.

Maybe you are not shortcircuiting your WM_PAINT message.
I suggest to compare your code to the one you''ll find here on nehe''s site.

Previously "Krohm"

It IS the code from Lesson 1!
I only rewrite (rewrote??) the paint function...



[edited by - FabioPal on June 17, 2003 8:07:59 AM]
---------------------------------------There are 10 type of people:those who knows binary codeand those who doesn't---------------------------------------
quote:
Original post by FabioPal
I read something about disabling VSync...
It should speed up the rendering speed?
Could this be a reason???


Disabling vsync would not help unless he ran the glut engine with it off. I would have to say the problem is in your main loop. Perhaps some code?

[edited by - tHiSiSbOb on June 17, 2003 9:16:11 AM]
----------------------------------------------------"Plant a tree. Remove a Bush" -A bumper sticker I saw.

This topic is closed to new replies.

Advertisement