News:

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

Examples archives history

Started by hitchhikr, August 14, 2005, 02:27:28 PM

Previous topic - Next topic

hitchhikr

- Added Horizontal_ScrollText (i don't know if this one will be smooth on other machines, so some feedback would be required).

(both archives updated).

Quote
Hai. Nice .obj loader. But I dont know how to use it. Maybe you can made it as a single procedure?

There's an example about how to use it.

ramguru

Quote from: Mark Jones on August 23, 2005, 06:04:33 PM
... from: http://heliosstudios.net/temp/Franck's_GL_Files_2005-08-23.zip (2.79MB)
I don't know what is wrong but all examples on my [WinXP]+[Athlon XP 1800]+[512Mb RAM]+[ATI 9550 128Mb] use ~90% of CPU...even "Base.exe".

hitchhikr


Mark Jones

Trippy scrolltext. :) Nice and smooth. Uses about 5% cpu of AMD XP 2500+ / nVidia GeForce FX5600 ultra 256MB
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

ramguru

Quote from: hitchhikr on August 29, 2005, 03:51:15 PM
That's normal.
That's damn abnormal !
Maybe this happens because of the way you update scene (to frequently). I use SetTimer and this seems to work without eating all resource.

hitchhikr

Note that when minimized the window won't take such amount of cpu time.

Standard timers are unnacceptable due to their granularity and multimedia ones are a pain in the ass.
If that really bother you you can still put a sleep(10) inside the main loop but that will slaughter the animation each time the os have to process a message (like moving the mouse for example) so this is not acceptable either.

In reality, games are always trying to obtain as much cpu as possible.

So i repeat: that's normal.

if you want to know more about that read this:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnargame/html/msdn_dos2win.asp

chola

I' new in this, i need easy examples to understand how this program work. can you send me examples with the simple operations (add, substract, multiplication and division +,-,*,/).
if you have with 1 digit o 2 digits better.

Thanxxx !  :U

hitchhikr

You better ask questions about the assembly language itself here:

http://www.masmforum.com/simple/index.php?board=1.0

and you can browse this aswell:

http://www.faqs.org/faqs/assembly-language/

Siekmanski

Horizontal_ScrollText runs smooth on my pc  "PIV 2.6 and NVIDIA GeForceFX Go 5200 videocard" uses 5 % of the cpu

Farabi

Quote from: chola on August 29, 2005, 09:21:40 PM
I' new in this, i need easy examples to understand how this program work. can you send me examples with the simple operations (add, substract, multiplication and division +,-,*,/).
if you have with 1 digit o 2 digits better.

Thanxxx !  :U

Simple operation like that cannot be used if you want to use only integer. You must use FPU. I can made you a simple example to add it.
Those who had universe knowledges can control the world by a micro processor.
http://www.wix.com/farabio/firstpage

"Etos siperi elegi"

hitchhikr

- Updated examples.zip, so examples should assemble with older version of windows.inc.

- Added Calc_FPS function in FrameWork.asm to use during Update:


invoke Calc_FPS, FrameRate


It'll return the number of frames per second in eax.

gabor

Hello Hitch!

It is astonishing what you acomplished there!!!
I have a AMD 2500+ @2GHz with a NVIDIA 6600GT, my question is: is it normal that your intros/demos I found on your website run not so smoothly,seems to have a slightly less FPS than in windowed mode. "Is this normal?" :)

Greets, Gábor


hitchhikr

Maybe, i don't know, i'm not sure to understand what you mean.

gabor

#73
I meant in full screen mode it does not run so smoothly as in windowed mode. The difference is very small, but noticable... The same "effect" I found in Winamp's visualization FXs.

Maybe something with my configuration is not perfect...

I think this phenomenon can be simply ignored. :)

Greets, Gábor

hutch--

gabor,

It probably has something to do with the fill rate from the video card and the monitor refresh rate. Full screen mode requires more pixels to be filled in one frame.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php