News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Template Test.

Started by Farabi, August 30, 2005, 03:51:23 AM

Previous topic - Next topic

Farabi

This is test for OpenGL application. I try to made it as simple as I can. This test contain the sample test you can modify. I have not add the camera rotation, if you like to add something it would be good.

This application is free to use for commercial or non-comercial. I will try to improve it as advance as it should be.

[attachment deleted by admin]
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Farabi

Here is Hitchickr framework. I modify it and limit the frame to 20. On my 2.4 Ghz the CPU usage of wach example is 1%.

[attachment deleted by admin]
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Siekmanski

It's very jerky on my computer.
Maybe because the time between frames are not the same anymore.
Better wait for vertical-retrace instead of using the SetTimer API for smooth animations and
calculate the time between frames for smooth updating.
If you want to drop the framerate you can skip a vertical-retrace and you get 30 frames per second. ( if it was 60 FPS)

Farabi

Quote from: Siekmanski on October 30, 2005, 09:13:05 AM
It's very jerky on my computer.
Maybe because the time between frames are not the same anymore.
Better wait for vertical-retrace instead of using the SetTimer API for smooth animations and
calculate the time between frames for smooth updating.
If you want to drop the framerate you can skip a vertical-retrace and you get 30 frames per second. ( if it was 60 FPS)


Yeah, I try to implement the wait vertical retrace but Im not done it yet since I dont know how to implement it.
IF my monitor 20 hz what I should wait? Each the frame counter reach 20 I stop the frame?
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

ninjarider

let me know if u want help with the camera rotation.

Siekmanski

hello farabi

study Hitchickr framework it's all in there. (hint "vsync")

  invoke   pwglSwapIntervalEXT, Status

greetings siekmanski

Farabi

Quote from: ninjarider on November 07, 2005, 06:23:58 PM
let me know if u want help with the camera rotation.

Are you asking me to help you? But I am the one who need that help .  :green
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Farabi

Quote from: Siekmanski on November 07, 2005, 06:49:33 PM
hello farabi

study Hitchickr framework it's all in there. (hint "vsync")

  invoke   pwglSwapIntervalEXT, Status

greetings siekmanski

So pwglSwapIntervalEXT function will made the swap buffer wait the vertical-retrace ? Im confused.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

Farabi

I forgot to say. Im almost ashamed on the gamedev forum after watching some few demo. I think Im too underestimate them. BTW, I think maybe it is because of their devtool. Thats why they can easly understand and improving their OpenGL application.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

hitchhikr

Quote
So pwglSwapIntervalEXT function will made the swap buffer wait the vertical-retrace ?

Yes, it'll turn it ON or OFF depending on the passed argument.
The user can override it in the gfx driver control panel, so don't rely upon this.
It's only used to remove any tearing that may occur during frames updates.