flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
bitshifter 01 Mar 2009, 22:06
I have written an alternative to the wgl bitmapped font.
To compare the output quality and rendering speed i have implemented a standard wgl bitmapped font demo and also a custom font demo (which uses a custom font texture). Both versions render the characters 'a' through 'z' and also display the current rendering speed (frames per second). On average my version renders a 50 character string 10 percent faster than the standard wgl version. This has been tested on a stock pentium 4 with winxp2 Note that some video cards limit the maximum refresh rate. Ex: If both versions run at 60 fps, then its being clamped. I can give information about how to view the font image if you would like to view the characters in the file. As always, any comments are greatly appreciated.
_________________ Coding a 3D game engine with fasm is like trying to eat an elephant, you just have to keep focused and take it one 'byte' at a time. Last edited by bitshifter on 25 Jan 2010, 20:48; edited 4 times in total |
|||||||||||
![]() |
|
Tomasz Grysztar 01 Mar 2009, 22:49
For me it's 4577 vs. 6011.
|
|||
![]() |
|
LocoDelAssembly 02 Mar 2009, 00:39
I suppose I'm the first in reporting a clamped result
![]() 85 fps vs. 85 fps (my refresh rate is 85 Hz). |
|||
![]() |
|
bitshifter 02 Mar 2009, 01:28
Madis731: You're right on the money with that one!
I use photoshop to play with the images. Obviously my pc is junk since im getting 110/120. Also my stock celeron 345 shows the same result. I spend all my time optimizing just to keep up ![]() |
|||
![]() |
|
Madis731 02 Mar 2009, 06:06
btw, my laptop has X3100 graphics - I think I should also try a discrete one, like Thomasz did...
|
|||
![]() |
|
bitshifter 10 Apr 2009, 11:04
Hey Tomasz, what are you running to get those kind of numbers?
Is this some kind of alien technology? Anyway, i think i will add this new font code to my fps camera demo so people can see what kind of framerates it renders for them. Find latest version here... http://board.flatassembler.net/topic.php?t=9262 _________________ Coding a 3D game engine with fasm is like trying to eat an elephant, you just have to keep focused and take it one 'byte' at a time. |
|||
![]() |
|
Madis731 11 Apr 2009, 10:04
Interesting results:
1) I couldn't agree that the video card was to be blamed (for the FPS clamp) so I headed for the Control Panel: http://nap.koduleht.net/Madis/cache/VSyncOff.png 2) Your framerate seems to be CPU-limited so actually this example shows CPU-optimization: myfont.exe :: 4570 wglfont.exe :: 5970 I did some further testing and when I modified your image to use only upto symbol 'N', I discovered the FPS went up to ~5000. I'm not sure what calculations are the toughest, but I'm still very limited to CPU (always at 100%). What if we could batch this font on 2048x1536 screen. 128*96 characters would be 12288 altogether. If that were a GPU task, we would see a heavy drop in the CPU-usage. Its a GTX 260 (the newest generation) and its a Server 2008 x64 OS with Core i7 920 CPU @ 2.66GHz. Maybe they updated the GPU? Maybe they updated the OpenGL? (Or just their font?) |
|||
![]() |
|
bitshifter 11 Apr 2009, 10:31
Hi Madis731
Interesting results indeed. It seems opengl may have finally optimized the bitmap rasterizer. This means im gonna have to re-open my bag of tricks and rethink them. Anyone else is welcome to post their results here... _________________ Coding a 3D game engine with fasm is like trying to eat an elephant, you just have to keep focused and take it one 'byte' at a time. |
|||
![]() |
|
DJ Mauretto 11 Apr 2009, 10:56
myfont.exe 77 frames per second
wglfont.exe 108 frames per second P4 2.66GHZ , XP PRO, ATI Radeon 9600 PRO ![]() _________________ Nil Volentibus Arduum ![]() |
|||
![]() |
|
Dex4u 11 Apr 2009, 18:57
On my
Quote:
I am only getting 9-10 fps on both demos ![]() |
|||
![]() |
|
bitshifter 11 Apr 2009, 19:49
Hey Dex, you didnt run them in the zip did you?
I just ran it on my mom's pc and got 18fps on both demo's. ![]() Quote: INTEL(R) GRAPHICS REPORT _________________ Coding a 3D game engine with fasm is like trying to eat an elephant, you just have to keep focused and take it one 'byte' at a time. |
|||
![]() |
|
Dex4u 12 Apr 2009, 01:48
No, i unzipped them first then run the programs
|
|||
![]() |
|
bitshifter 25 Jan 2010, 20:49
I have fixed a bug in my code and uploaded a new version.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.