collisions optimization

BlitzMax Forums/BlitzMax Beginners Area/collisions optimization

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi !
in my game a use collideimage to determine if my ship collide with an enemy.

If ImagesCollide(j.hImage,j.PosX,j.PosY,j.Frame,hImage,PosX,PosY,Frame) Then
				TExplosion.Creer(PosX, PosY)
endif


see the screenshoot, in this case the enemy checked is far the player...

1) so is ImagesCollide perform a rect or oval check before test perfect pixel collision ?

2) or should i code my own check before call imagescollide to increase my game performance ? For example :

a) check if i've the ennemy is inside the 'player oval' (radius collision test, there are some formulaes posted somewhere)...

b) ... if it's the case call imagescollide for perfect collision check

Need your suggestions and your experience !
Thanks !