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 / FPS PROB!!!

Author
Message
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Jun 2003 22:50 Edited at: 7th Jun 2003 22:53
I am makin' a FPS in DBC, and when I have a normal matrix it's fine, but when I added a gun and locked on or whatever, my game slows down and is klunky
btw, Sync rate is 0!
plz help!!!

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 8th Jun 2003 19:56
nm, fixed it I had to change 2 a lower poly gun! While on the subject of polys, 'bout how many 'fore it gets 2 slow?

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 8th Jun 2003 19:57
btw, Whyd everyone help Darknight and not me?

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 8th Jun 2003 19:57
Do I post 2 much?

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 8th Jun 2003 19:58
naw, that a'int it

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 8th Jun 2003 20:01
he posted screen shots, everyone likes to see screenshots!!!! you only posted yesterday anyway

ARE YOU A 3D MODELER??? IF SO WE NEED YOU!!!
EMAIL mynameisnoneofyourbuisness@hotmail.com to work on the new Star Strike project!!!
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 8th Jun 2003 20:12 Edited at: 28th Jun 2003 03:19
just kidin'
besides, I couldn't see DK's Screenshots!!! (Neither could Freak!!!) anyways, could someone answer my question on polys? ReD_eYe!

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
FiShFuN4eVeR
21
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: Netherlands
Posted: 8th Jun 2003 20:46
I like to know that as well. I'm also making a FPS and it's getting a little slow with all those trees [b])

If good programmer()=1 then print "Finaly I get to the top "
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 8th Jun 2003 22:08 Edited at: 11th Jun 2003 18:32
I'm trying to use the #include command to minimise code length, but it does not work! It says somethin' 'bout "DY Defined in include file: Function Menu(all my included variables)".
plz help (and answer other question!!!)

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
UberTuba
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 9th Jun 2003 00:09
dbc is a very slow language. Get DBP (sorry but that's my only advice)

Life is a terminal disease.
You never survive it.
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 9th Jun 2003 00:56
Not sure about DBC, in pro 125,000 polies ran at 20 fps on Van-B's system in Professional (look at the post in the 3D section called "Royalty FREE Human Model - From Simple"

RPGamer

Current Project: Eternal Destiny
Questions? Comments? Suggestions? Go to the Eternal Destiny Forum!
CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 9th Jun 2003 04:19
your not saying 20 fps is good are you?
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 9th Jun 2003 22:34
sorry for not answering the polys question, its just that when i don't know the answer i'd rather not mention it than admit my oor understanding of the subject

ARE YOU A 3D MODELER??? IF SO WE NEED YOU!!!
EMAIL mynameisnoneofyourbuisness@hotmail.com to work on the new Star Strike project!!!
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 10th Jun 2003 00:56
well, does anyone know?

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 10th Jun 2003 02:46
That depends very much on your PC specs (CPU,ram,graphic card)
Post them and someone could answer...

In DBC i get below 30 fps when i have more than 10.000 polys on screen

Athlon xp 1700, 512 mb ram , geforce 2 mx400 64 mb
screen res : 800x600x16
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 11th Jun 2003 18:16
Can someone answer my #include question plz!!!

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
Inkybro
21
Years of Service
User Offline
Joined: 31st Dec 2002
Location: Where I live :)
Posted: 12th Jun 2003 05:36
Yeah I got my new computer, I'm usually also under 30.

John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 12th Jun 2003 05:59
Im saying 20 FPS is good for 125,000 polies

75,000 ran at 60 FPS on a 1.1Athalon (Van-B's comp)

RPGamer

Current Project: Eternal Destiny
Questions? Comments? Suggestions? Go to the Eternal Destiny Forum!
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 12th Jun 2003 18:57
#Include!!!

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
FiShFuN4eVeR
21
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: Netherlands
Posted: 14th Jun 2003 16:18
May I see the #include code, please?

If good programmer()=1 then print "Finaly I get to the top "
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 15th Jun 2003 19:45
I'll get it 2 u soon, it's rather lenghty, but in the meantime, i tried doing this and it did not work:



Why won't it work? It goes to a blank screen, and i don't think it would take long to load. btw, i did it with



and it still wold not work! I don't want to write a lenghty loading code, so could someone help!?!
thx for help so far and help in the near (and the far) future!

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 15th Jun 2003 20:33
Sorry, i copied code wrong here is correct code:



same error

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 15th Jun 2003 20:37
the a# doesn't need to be a float number an integer will do fine eg
for a=3 to 13 thats all i can think of

try that

ARE YOU A 3D MODELER??? IF SO WE NEED YOU!!!
EMAIL mynameisnoneofyourbuisness@hotmail.com to work on the new Star Strike project!!!
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 16th Jun 2003 18:05
Thx ReD_eYe!Here is my function code:

One more question, how do you do the function? Do you do function Menu()?

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
Yuri
21
Years of Service
User Offline
Joined: 12th Jun 2003
Location: Italy
Posted: 16th Jun 2003 19:56 Edited at: 16th Jun 2003 19:57
example of include code:

#include "external.dba"

do
megaprint("hey!",rgb(255,255,255),0)
loop

the external.dba should contain this code:

function megaprint(t$,f,b)
ink f,b
print t$
endfunction

you can import the "megaprint" function in all your project using the
#include command..

bye

CBMZone main administrator
http://www.cbmzone.com
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 16th Jun 2003 19:57
to use the function just put

into a .dba file along with the function declaration at the bottom of the code eg.



however i'm not sure you've quite got the idea of a function all the parameters in the function(between the brackets) are supposed to be added by the user but you are assigning then values inside the function anyway so by deleting all the stuff inside the brackets your function will still work and not takes so much time to write out.
have a look at the first function i ever did its called goodtext() and works well


hope it helps any more probs just ask

ARE YOU A 3D MODELER??? IF SO WE NEED YOU!!!
EMAIL mynameisnoneofyourbuisness@hotmail.com to work on the new Star Strike project!!!
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 16th Jun 2003 20:21
ok, maybe this will help.
The menu function, obviously is my menu, and I want to use it as a function from menu.dba to chop down code size (i'm makin' a FPS) I'm not sure what you did to my code ReD_eYe. Why did you change the goto's into prints? Also, remember the Scrolling text thread you helped me with, well this is the menu code, copied, and made into (apparantly, an incorrect) function! I just fixed the () and now it highlights the include "Menu.dba" and says: user function already defined in include file : Menu()

What is wrong now?

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 16th Jun 2003 20:46
if you use #include, you don't need to put the function at the bottom of your code aswell, i changed the goto's and and deleted the image so i could use it without going to too much trouble of making new stuff for it eg adding more gotos or new image. the function isn't incorrect its just seems to me to have some unnecessary stuff in it, if it works well for you then thats fine, don't bother changing it.

ARE YOU A 3D MODELER??? IF SO WE NEED YOU!!!
EMAIL mynameisnoneofyourbuisness@hotmail.com to work on the new Star Strike project!!!
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 16th Jun 2003 21:07 Edited at: 19th Jun 2003 02:28
Yeah, it worked great, but how do i fix the
user function already defined in include file : Menu()
problem?

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 19th Jun 2003 02:29
i don't mean to spam, but could someone plz answer the:
user function already defined in include file : Menu()
problem plz!!!

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 21st Jun 2003 01:29
anyone want to help???

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 21st Jun 2003 12:08
in your code it will look something like this:

#include "menufunction.dba"

<lots of code here>

at the end:
function menu()
<more code>
endfunction

to stop the error just delete or rem out the function bit at the end of your code.

hi guys
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 22nd Jun 2003 04:46
could you explain a little better plz, i don't understand what u r sayin! do u say put the function in my main code?

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 24th Jun 2003 05:41
k, i had

do
Menu()
loop

now i have

Menu()

and db says:

runtime error at line 15 : Severe exception!

what does it mean???

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 24th Jun 2003 05:47
As far as the polycount goes you can get a good FPS if you cut your map into more zones, of course then there's loading times and other issues, but you'd probebly get a little bit higher FPS if you cut your level into zones.



http://www.freewebs.com/goldenrodproductionstudio/index.htm
Yes that's right folks, another total revamp of my site.
Currently trying to register domain name, and get some copyrights.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 24th Jun 2003 20:18
could you post your whole code mattman, then i can try and correct it, what i'm trying to explain is kinda hard for me to put on words but i'll try:
In your program you want to use a function called menu(). From what i understand you put this function into a separate .dba file and used the include# function at the beginning of your code to include it in your program.You then used your menu() function in the rest of your program to make a menu. However before you were told about the #include command you were probably 'declaring' the function at the bottom of your code eg something like this:

function menu(var#,var#,var)
*code for putting together a menu
endfunction

because you have already 'declared' your menu() function using the #include command you no longer need the function 'declaration' at the bottom of your code.
If that didn't help just post your code and i'll try and sort it

hi guys
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 24th Jun 2003 23:49 Edited at: 25th Jun 2003 17:47
no, i did not put the function in the main code, thats what i'm trying to avoid! in my main code i had



as my game code is around 300 lines, i am not gonna post it.

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 25th Jun 2003 11:20
i mean in the main .dba file which includes the 300+ lines of code right at the bottom(outside the loop) you have this


or something similar but as you've included that function already using the #include command you get an error.

hi guys
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 25th Jun 2003 17:48 Edited at: 25th Jun 2003 19:45
no, i never had function Menu() in my main code! anyways, what does severe exception! mean?

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 25th Jun 2003 19:01
i think it means that at line 15 there is something ver wrong??? have a look at that line

hi guys
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 25th Jun 2003 19:13
all there is at line 15 is

Menu()

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 25th Jun 2003 19:41
now it says "function already defined in include file : function Menu()" again. how can i fix it

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 25th Jun 2003 23:02
i've tried to explain above, just delete the part of your code that says:



or something like that

hi guys
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 25th Jun 2003 23:43
i already did

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 26th Jun 2003 11:07
do you want to email me your code then???? i not sure what the problem really is now. i don't need any media but any files you are includeding would be helpful
tom.pierce@ntlworld.com

hi guys
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 28th Jun 2003 03:18
i fixed it, but now i have a new prob! i want to shoot a bullet and there r two probs.

1)the sphere i created won't show up
2)db says "object does not exist" but it does!

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 28th Jun 2003 11:20
i can't do bullets too good either, how big is your sphere?? maybe its too small to see.

hi guys
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 29th Jun 2003 00:47
it has a radius of 2

---Mattman
"Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done." Andy Rooney
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 29th Jun 2003 11:35
this happended to me the other day its cos i coded the make object sphere command like this
make object sphere,1,10
when it should be
make object sphere 1,10
without the comma, just check for mistakes like that

hi guys
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 7th Jul 2003 00:38
no probs in code, i just can't see my sphere.

---Mattman
DID YOU KNOW THAT ???

Login to post a reply

Server time is: 2024-11-24 23:11:02
Your offset time is: 2024-11-24 23:11:02