Author Topic: Full screen 640 x 480 alpha fade between two images  (Read 16516 times)

0 Members and 1 Guest are viewing this topic.

Offline MrP

  • Atari ST
  • ***
  • Posts: 176
  • Karma: 18
    • View Profile
Well I've almost finished converting my gfx drawing functions into assembly, and by god have I been up and down with it. But in the end its been worth it, the difference in performance is quite staggering really. so here at the moment is my pride and joy a fast full screen 640x480 alpha blend between two images. at the moment this clocks in at a tad over 2.6 millisecs to draw each image on my rig, so in theory at a refresh of 75hz you should be able to do at least four images at once without a hit in framerate. Not sure why coz it'd look stupid but anyways.... Have a look see what you think, and if you could please post back with framerate and some system specs.....

Cheers in advance......



[oversized attachment deleted by admin]

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17412
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Full screen 640 x 480 alpha fade between two images
« Reply #1 on: September 07, 2006 »
Had you restricted the refresh rate to 75hz? That's what I get and it hardly ever drops to 74.

Looks wicked! Well done.

P4 3Ghz Radeon X300 se.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline DrewPee

  • I Toast Therefore I am
  • Pentium
  • *****
  • Posts: 563
  • Karma: 25
  • Eat Cheese - It's good for you!
    • View Profile
    • Retro Computer Museum
Re: Full screen 640 x 480 alpha fade between two images
« Reply #2 on: September 07, 2006 »
I get around 73fps and I agree with Sockwave - Wicked - very very smooth.

This was done on my rig at work - Pentium  (Dual Core) 2.66Mhz (x2) with 1GB ram and a GF6500 (512Mb) Graphics Card.

DrewPee
DrewPee
aka Falcon of The Lost Boyz (Amiga)
Ex-Amiga Coder and Graphic Designer
Administrator of > www.retrocomputermuseum.co.uk

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2757
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: Full screen 640 x 480 alpha fade between two images
« Reply #3 on: September 07, 2006 »
Very nice, I got 42 FPS  (my gfx card doesn't like software rendered pixels)

P4 2.8GHZ    512MB Ram
GeForce 6600GT  128MB VRAM

Challenge Trophies Won:

Offline MrP

  • Atari ST
  • ***
  • Posts: 176
  • Karma: 18
    • View Profile
Re: Full screen 640 x 480 alpha fade between two images
« Reply #4 on: September 07, 2006 »
Cheers folks thanks for the replies. Getting the feedback i'd hoped for..... Took a lot of time to get that drawing routine working properly.....

@Shockwave - its only limited by initing the screen with a 75hz refresh and using screensync to sync to it. So yes it is limited to 75hz

@Rbraz - Not sure why the performance should be hit like that on your rig mate.... I assume you've had poor pixel performance before due to the content of your post, but still curios as to why its like that...... Cheers for the info.....

Offline Blitz Amateur

  • Atari ST
  • ***
  • Posts: 243
  • Karma: 13
    • View Profile
Re: Full screen 640 x 480 alpha fade between two images
« Reply #5 on: September 07, 2006 »
I get 29 on my laptop, will run on my good PC soon.

Laptop specs:

1066Mhz PIIIMobile 384Mb SDRAM Intel82830m integrated graphics (48mb)

I am very surprised by that speed, very well done!

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Full screen 640 x 480 alpha fade between two images
« Reply #6 on: September 07, 2006 »
Welldone 38 fps.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won:

Offline Blitz Amateur

  • Atari ST
  • ***
  • Posts: 243
  • Karma: 13
    • View Profile
Re: Full screen 640 x 480 alpha fade between two images
« Reply #7 on: September 07, 2006 »
75 FPS on my good PC

2.2GHz AMD Athlon64 1GB DDR SDRAM RADEON X800Pro (PCI-Ex)

Very nice

Offline zawran

  • Sponsor
  • Pentium
  • *******
  • Posts: 909
  • Karma: 67
    • View Profile
Re: Full screen 640 x 480 alpha fade between two images
« Reply #8 on: September 07, 2006 »
Good work, looks like its rather fast, but I cannot see the corner where the fps was shown.

One thing though on a more general note. It would be nice if people had windowed as an option or as a seperate download. Fullscreen in most low resolutions either doesn't work at all, or looks really strange on my widescreen 1900x1200 res monitor. I would actually prefer to watch anything windowed even if it is smaller.



Offline MrP

  • Atari ST
  • ***
  • Posts: 176
  • Karma: 18
    • View Profile
Re: Full screen 640 x 480 alpha fade between two images
« Reply #9 on: September 08, 2006 »
Thanks all for the replies and details of your rig and stuff. Your feedback is very much appreciated, and thank you also for the kind words. It kinda makes it all worth while if you know what i mean

@zawran - I'll keep in mind about including a windowed version and i'll see if I can update this one. By the way just how close have you got to sit to that screen to read it lol.........

Offline zawran

  • Sponsor
  • Pentium
  • *******
  • Posts: 909
  • Karma: 67
    • View Profile
Re: Full screen 640 x 480 alpha fade between two images
« Reply #10 on: September 08, 2006 »
Not close at all, its a 24 inch monitor :)

Offline ninogenio

  • Pentium
  • *****
  • Posts: 1668
  • Karma: 133
    • View Profile
Re: Full screen 640 x 480 alpha fade between two images
« Reply #11 on: September 08, 2006 »
nice one MrP,

41 fps on a geforce4 ti4600 128m , athlon xp2200 256m ddr ram rig.

although i must say ive found out through genarally messing around that freebasic is slow compared too say dev c i remember doing a program that done exactly the same thing as yours in dev c gdi and i was getting about 90fps on this comp.
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17412
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Full screen 640 x 480 alpha fade between two images
« Reply #12 on: September 10, 2006 »
Mmm. Well as Mr.P is really still getting to grips with ASM, I think we should sit tight and wait for him to discover the optimisations that will no doubt accelerate his stuff even more.
For me it looks cool and seems fast, although how fast it really is is unknown with the refresh rate stuck on 75fps.
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: Full screen 640 x 480 alpha fade between two images
« Reply #13 on: September 10, 2006 »
72fps here, P4-3.0, Radeon X1600 AGP.   MMX is absolutely designed for this kind of thing, if you're going to look at asm MrP.

Jim
Challenge Trophies Won:

Offline psygate

  • Completly Insane.
  • Atari ST
  • ***
  • Posts: 173
  • Karma: 7
  • That boy needs therapy.
    • View Profile
Re: Full screen 640 x 480 alpha fade between two images
« Reply #14 on: September 10, 2006 »
25 pics on my comp. 1.4 GHz AMD Athlon XP. Dont now the graphic card or anything else, im just happy that the thing keeps running  :||
He who controlles the minds commands the many.
He who commands the many, conqueres the minds.

Offline MrP

  • Atari ST
  • ***
  • Posts: 176
  • Karma: 18
    • View Profile
Re: Full screen 640 x 480 alpha fade between two images
« Reply #15 on: September 11, 2006 »
OK Results look reasonable all round I think.... Thanks to you all for responding.....

@Shockwave - Yep just about getting to grips but as you say once i get to optimising this stuff a bit better it should be faster still... The routine i wrote to draw images has not been optimised at all, it is as it was when i first got it working, and as you know once you have something working theres generally a way to get it working faster. Also on the frame limiting note, when I get home tonight I'll post a version without the frame limiter so we can see what its up to.....

@Jim - The pixel drawing bit does already use mmx, the routine calculates the alpha for the red green and blue element of each pixel at the same time. However I am still very new to assembly on the pc so there may be a way to implement the mmx stuff more efficiently. I'm sure as I go on i'll pick up more tricks and stuff......

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17412
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Full screen 640 x 480 alpha fade between two images
« Reply #16 on: September 11, 2006 »
I'll look forward to the de-limited version :) I'd love to see how fast it really goes!
Shockwave ^ Codigos
Challenge Trophies Won:

Offline MrP

  • Atari ST
  • ***
  • Posts: 176
  • Karma: 18
    • View Profile
Re: Full screen 640 x 480 alpha fade between two images
« Reply #17 on: September 12, 2006 »
OK Sorry I couldn't post yesterday. Friends Birthday and things got a bit hectic shall we say......

Anyway here as promised is the version with a toggleable frame limiter. Enjoy!!!!!!!

[oversized attachment deleted by admin]

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17412
  • Karma: 498
  • evil/good
    • View Profile
    • My Homepage
Re: Full screen 640 x 480 alpha fade between two images
« Reply #18 on: September 12, 2006 »
118 FPS :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Full screen 640 x 480 alpha fade between two images
« Reply #19 on: September 13, 2006 »
69 FPS.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.

Challenge Trophies Won: