Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / The same code with 2 different effects in db and dbpro...how to fix?

Author
Message
Dark Basic Italy
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location:
Posted: 29th Sep 2002 03:09
Hi,

someone gave me this code:

REM IPNOTICPOL01
Set Display Mode 800,600,16
sync on :sync rate 60 : hide mouse : backdrop off
set text font "Verdana"
set text size 40
Make Object Plain 1,100,10
Make Object Plain 2,100,10
Xrotate object 1,50
Xrotate object 2,14
scale object 1,130,130,130
scale object 2,130,130,20
move object 1,-50
move object 1,-30
Ghost object on 2
do
ink rgb(rnd(255),rnd(255),rnd(255)),0
CENTER TEXT 400,0,"*********************************************************"
Get image 1,0,0,800,600
Texture Object 1,1
Texture Object 2,1
z=wrapvalue(z+2)
z2=wrapvalue(z-2)
zrotate object 1,z
zrotate object 2,z
sync
loop

Well I tried to run it in DB V113 and DBPRO and the effects are slightly different...in DB V113 it also seems much faster...so where is the problem? How to get the same effect such as in DB v113?

Thanks
Roby
Milamber
21
Years of Service
User Offline
Joined: 27th Sep 2002
Location: Australia
Posted: 29th Sep 2002 10:55
1: what exactly is 'slightly different' about how it runs?
2: what are your system specs?
3: in the bottom right corner, click on the settings button, and play around with the display settings, they CAN make up to a 40fps difference (sometimes more) at the same resolution and colour depth.

System Specs: AMD Athlon 1700+ XP, GA-7VRX motherboard, 128MB DDR RAM, GeForce2 MX400 64MB VRAM
Milamber
21
Years of Service
User Offline
Joined: 27th Sep 2002
Location: Australia
Posted: 29th Sep 2002 11:13
Also, between getting an 800 by 600 image each frame, texturing two objects with it, performing a completely redundant command by assigning the unused variable z2 a value, and the fact that zrotate object is being used, which seems to execute at around 1/100th the speed of roll object right in DBPro(this DOES need to be fixed in my opinion), I would expect this code to run slowly. What exactly is this meant to be doing, anyway?

System Specs: AMD Athlon 1700+ XP, GA-7VRX motherboard, 128MB DDR RAM, GeForce2 MX400 64MB VRAM
Mentor
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 29th Sep 2002 11:47
hmmm! 60fps in DB classic and about 1 fps in Pro ??? I have no idea why it does that or why the effect is totaly different, code is code, it should do the same thing if you give it the same instructions, I am on an AMD 1200mhz GEforce 4 mx 64mb and 1/3rd gig ram with dx8.1 and both versions of dB installed.

Mentor.

Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Sep 2002 12:27
Using the Step Through mode, it seems to be the GET IMAGE command that is really slowing the program down.

what is a signature?
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Sep 2002 12:28
... yes it is.

I get 40 FPS without it. Unfortunately this command is essential.

what is a signature?
Dark Basic Italy
21
Years of Service
User Offline
Joined: 19th Sep 2002
Location:
Posted: 29th Sep 2002 13:21
Yes, i realize it was the get image...but I don't know how to fix it...is it a bug or not according to you?
thanks
Roby

Login to post a reply

Server time is: 2024-04-25 14:33:53
Your offset time is: 2024-04-25 14:33:53