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.

3 Dimensional Chat / Choppy Mouse control

Author
Message
Duncanla
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 25th Jan 2003 22:42
I have a mouse control so that i can look up and down and to the sides and I use the keypad to strife and go forwards and backwards. The mouse control code is very simple but it seems very choppy. Can anyone tell me why? i have the code snippet below, i also have some code in the program to make sure that it can't go off the matrix or run into walls but that shouldn't effect this because it doesn't move anywhere, just looks around. I also have code that makes sure the camera can't flip upside down so it can only rotate 180 degrees on the x axis but i don't see how this could make it choppy.




cAY# = WrapValue(cAY#+MousemoveX()*0.2)
cAX# = WrapValue(cAX#+MousemoveY()*0.2)

Rem Make sure camera can't flip upside down
if cAX# 180 then cAX#=270
if cAX# > 90 and cAX#
Duncanla
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 25th Jan 2003 22:43
sorry, that's supposed to be a code snippet, here it is again.



Psyko_Monkey
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location:
Posted: 25th Jan 2003 22:44
Might be something else in the loop that is slowing down the whole process. For example sync, set gamma etc.

Look for things which might take up a lot of processor speed....




Titanium_monkfish@hotmail.com - Programming inquires

Login to post a reply

Server time is: 2024-04-19 06:22:09
Your offset time is: 2024-04-19 06:22:09