FPS Test 2

Advanced game related topics

What is your framerate?

0-20
0
No votes
0-20
0
No votes
21-40
2
5%
21-40
2
5%
41-60
5
11%
41-60
5
11%
61-80
10
23%
61-80
10
23%
81-100
5
11%
81-100
5
11%
 
Total votes: 44

DriakTravo
Enthusiast
Enthusiast
Posts: 346
Joined: Fri Oct 10, 2003 12:42 am
Location: Tampa,FL,USA
Contact:

FPS Test 2

Post by DriakTravo »

Hey fellow PB Programmers! Thanks for everyones help on my last project!!!

Please help me on my new one... I need to know the framerate you are getting.... I am still kinda new in programming so I don't exactly know what kinds of loops and commands will slow a program down. And since I have such a fast computer, when I make a program it is usually slow on a computer with normal speed.... Thats where you come in... I need to know how fast my programs run on normal computers to make my code more efficient.

Is there any way to test what a game looks like on a slower computer if you don't have a slow computer? Like slowing your own computer down to test out a program?

Anyway, you can download the first test at: http://www.1matthew.com/downloads/FollowDemo.zip it is only 60k and the source is included. If you can help me out that would be great.

Thanks.
VPureBasic
User
User
Posts: 59
Joined: Fri Apr 25, 2003 6:09 pm
Location: Quebec - Canada

Post by VPureBasic »

Hi Driak,

I did the test on my System:

AMD 2000xp+, 1800mhz
GForce 5200 with AGP8X( NVidia)
512mb Ram

With 84 FPS without change either if I move my mouse slow/fast around the screen.

That's Rock!

Roger
Everything is possible with PureBASIC... All you're missing is imagination!
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Hi,

I run 58-59 fps, but clicked the wrong option (21-40).

So sub 1 from there, add 1 to (41-60). Sorry.

And that is a neat, flickerfree, cleanscreen demo.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: FPS Test 2

Post by NoahPhense »

.
Dell Inspiron 8200 Laptop:
Intel P4 Mobile w/SSE2 1.6 ghz, 1024 DDR RAM, GeForce 440 Go AGP 4x 64mb DDR RAM,
UltraSharp UXGA 15" Screen, 60gb HDD w/Intel 82801 CAM Ultra ATA Storage Controller
Running Window 2000 Pro [sp4]

58 fps @ 60hz (on UXGA)
(with) -- If OpenScreen(1600,1200, 32,"") = 0

78 fps @ 75hz (on UXGA)
(with) -- If OpenScreen(1600,1200, 32,"") = 0

- np
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post by J. Baker »

Steady 84 - 85, being that 85 is my refresh rate. Nice star effect. :D
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
DriakTravo
Enthusiast
Enthusiast
Posts: 346
Joined: Fri Oct 10, 2003 12:42 am
Location: Tampa,FL,USA
Contact:

Post by DriakTravo »

Thank you everyone for your help! I really appriciate it... :D :D :D
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

100fps (100Hz refresh) Looks a little like 'Bonk' :)
--Kale

Image
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: FPS Test 2

Post by NoahPhense »

Keep in mind.. that I only ran my tests at 1600x1200 32bit color ..

- np
MadMax
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Oct 06, 2003 11:56 am

Post by MadMax »

110-115 fps on my Athlon 1000
Saboteur
Enthusiast
Enthusiast
Posts: 273
Joined: Fri Apr 25, 2003 7:09 pm
Location: (Madrid) Spain
Contact:

Post by Saboteur »

I get 50 FPS with the "clone" tv option of the nvidia activated.
With "clone" desactivated, I get 75 FPS (this is the refresh rate of my TFT monitor).
[:: PB Registered ::]

Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

70 FPS with original code
178 FPS using SpriteX Lib

:P
DriakTravo
Enthusiast
Enthusiast
Posts: 346
Joined: Fri Oct 10, 2003 12:42 am
Location: Tampa,FL,USA
Contact:

Post by DriakTravo »

Awsome, thank you everyone! :D

I need some help tho... If you position your crosshair directly over the ship (where the middle fin and the body meet) the ship disappears. Can anyone tell me how to fix this problem?
Road Runner
User
User
Posts: 48
Joined: Tue Oct 07, 2003 3:10 pm

Post by Road Runner »

PC1 (k6-266, Win98SE, Sparkle S3/Virge DX graphics) reports:
Error loading Mouse!
Error loading Keyboard!
Error loading DirectX!
Error loading DirectX!

Then GPFs

PC2 (P-75 Win98SE onboard graphics) does the same

PC3 (Win98fe k6-III/450, ATi Expert@play graphics) produces a star field and a mouse cursor but nothing else, runs for 2 seconds then quits and reports 29 or 30fps.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

That is actually quite hard to do (position cursor exactly to make the ship vanish).

I don't know why the ship disappears and can only come up with an inelegant solution, along the lines of:

Code: Select all

If SpritePixelCollision(etc) <> 1
  PlayerX + PlayerXS
  PlayerY + PlayerYS
  AddSmoke(etc)
Else                                     ; klurge
  PlayerX - 0.1
  PlayerY - 0.1
EndIf
Your code is pretty neat, BTW.
DriakTravo
Enthusiast
Enthusiast
Posts: 346
Joined: Fri Oct 10, 2003 12:42 am
Location: Tampa,FL,USA
Contact:

Post by DriakTravo »

PC1 (k6-266, Win98SE, Sparkle S3/Virge DX graphics) reports:
Error loading Mouse!
Error loading Keyboard!
Error loading DirectX!
Error loading DirectX!

Then GPFs

PC2 (P-75 Win98SE onboard graphics) does the same

PC3 (Win98fe k6-III/450, ATi Expert@play graphics) produces a star field and a mouse cursor but nothing else, runs for 2 seconds then quits and reports 29 or 30fps.
WOW. . . . . . 8O 8O 8O

I am amazed - I feel sorry for you. I don't konw why my program doesn't work on your Windows98 Computer, but everyone else seems to work... Do ANY programs made in PB work for you? Must be a compatability issue with Win98?
Post Reply