The Daily Click ::. Forums ::. Klik Coding Help ::. Lag
 

Post Reply  Post Oekaki 
 

Posted By Message

Santa



Registered
  19/05/2003
Points
  644
10th August, 2003 at 07:24:43 -

In a game im making i set the machine independent option. As i understand it this option force the machine to skip a couple of frames now and then if needed.

I found that with this option selected sometimes sometims a colision detections would be a little late (Thats maybe not the reason but it doesnt seem to have happend since).

Anyway my question is this. My game is im mmf, its got upto 300 objects on the screen at the same time. It runs fine on my 1.5 amd. I just want to know what type of machine its going to take to run it. Will it lag on slower pcs. Is not having the option selected going to cause problems.

ThanXs
SAnTA

 
SAnTA - www.atnas.com

-------------------
www.create-games.com/download.asp?id=2918

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
10th August, 2003 at 08:39:32 -

i think the best idea is to test it out on some friends' machines just to be sure.

but i dont know that much about the MIS option. all i know is that i dont use it. .

 
www.thenatflap.co.uk

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
11th August, 2003 at 05:42:56 -

If I'm not mistaken, collision detection is done during screen updates. So setting the MIS option to on will mean that, because it's skipping frames, collision detection might not occur straight away.

You might like to turn on the Box Collision option, if that wont affect your game, or even the Use Fine Collision Detection option. Either of which (but probably not both) might improve the performance in this respect.

To tell you the truth, there's no rule as to which computer will run what. It may depend, not only on the system specs, but also what other processes are running on the users machine.

Your best option is to release an alpha, and test how it performs on different systems... then increase the minimum you found by a couple of clock speeds for good measure.

As I said, this may not be difinitive, depending on the number of seperate processes running.

You could also try using detectors to improve collision detection. This is an old trick (there was an example on the first ever KNP CD, I think!) If you dont know how to do this, it's relitavely straight forward. Just place objects to the left, right, top and bottom of your character (using the ALWAYS) event, and MMF will be able to predict when a collision will occur with your character. This, again, isnt fool proof, but it all adds together to get the best result possible.

Mike

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Santa



Registered
  19/05/2003
Points
  644
11th August, 2003 at 08:14:57 -

It does use colision detectors. The game in question is the tetris game in my profile. Im trying to iron out a couple of bugs. It has boxs to the left right and bottom of the piece. Then it says if that sensor is overlapping either another piece or the bottom of the grid then to paste it into the background.

The code is always adding to the y pos of the piece so it falls. Problems is with MS selected sometimes it catchs the colision too late and the piece passess through what is already there

 
SAnTA - www.atnas.com

-------------------
www.create-games.com/download.asp?id=2918
   

Post Reply



 



Advertisement

Worth A Click