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.

Newcomers DBPro Corner / what's the diff between "camera" and "camera 1" ??

Author
Message
cypher
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 27th May 2003 01:31
Hello all,

My game currently plays at 167fps with a "camera". But when I go back and make it "camera 1" it reduces my frame rate to 75, yuk!.

I am using the usual;

make camera 1
set camera range 1,1,500

do
...
....
set camera to follow 1,x,y,z,angle,distance,height,smooth,collision
....
...
loop


but if I rem out the creation of the camera and remove the "1" from the s.c.t.f command, it seems to be fine. Is there a trick to increase fps when a person assigns a number to a camera?

tx for any help
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th May 2003 02:32
The default camera is camera zero. It always exists, and you cannot delete it.

Thigs will go faster with just the default camera. Only create an extra camera if you need multiple views.
cypher
21
Years of Service
User Offline
Joined: 27th Nov 2002
Location:
Posted: 27th May 2003 02:46
thanx, that actually brought back my frames. I was using;

cx#= CAMERA POSITION X(1)
cz#= CAMERA POSITION Z(1)

I replaced the 1's with 0's and whalla!

thank you much for the advice.

Login to post a reply

Server time is: 2024-09-20 09:53:16
Your offset time is: 2024-09-20 09:53:16