I still have this problem when playing video to image and using NGC Collision.
Here is test code, use any avi or mpg video on line 43 and change your NCG keys to line 28.
When switching NGC Collision on and off FPS varies between 80 and 5 ! I have tested this code in half dozen computers, all act same.
I use Ellip to Poly collision, but it cant be so slow. Or whats wrong?
sync on
sync rate 0
set display mode 1024,768,32
set window size 1024,768
#Constant NCULL_COUNTER_CLOCK 1
#Constant NCULL_CLOCK 2
#Constant NCULL_NONE 3
#Constant TYPE_NGC_ELLIP=1
#Constant TYPE_NGC_MESH=2
#Constant ELLIP_2_ELLIP=1
#Constant ELLIP_2_POLY=2
#Constant RESP_STICK=1
#Constant RESP_SLIDE=2
#Constant RESP_SLIDE_NO_SLOPES=3
#Constant RESP_SLIDE_NO_GRAV=4
#Constant RESP_SLIDE_NO_ACCEL=5
#Constant RESP_NONE=6
#Constant DYN_NO_RESP=1
#Constant DYN_RESP=2
#Constant DYN_RESP_NOTURN=3
StartCollisionPRO( , , )
SetCollisionExclusive(1)
#Constant type_world=1
#Constant type_cam=2
#Constant type_obj=3
setCollisionsPro(type_cam,type_world,ELLIP_2_POLY,RESP_SLIDE,DYN_NO_RESP,0)
setCollisionsPro(type_cam,type_obj,ELLIP_2_POLY,RESP_SLIDE,DYN_NO_RESP,0)
global cam_obj `kamera
cam_obj=1000
make object sphere cam_obj,1
hide object cam_obj
collisionTypePRO(cam_obj,type_cam)
setObjRadiusPRO(cam_obj,1,1,1)
load animation "what_ever_video.avi",1
for i=2 to 30
make object cube i,1
positionObjectPro(i,rnd(60)-30,rnd(60)-30,rnd(60)-30)
collisionTypePro(i,type_obj)
next i
make object plain 1,40,30
position object 1,0,0,0
get image 1,0,0,255,255
play animation to image 1,1,0,0,255,255
texture object 1,1
turn object left 1,160
position camera 35,0,35
point camera 0,0,0
do
set cursor 0,0
print "FPS= "+str$(screen fps())
if mode=1 then print "NGC Collision on" else print "NGC Collision off"
print "Hit space to alter collision on/off"
sk=spacekey()
if sk=1 and sk<>edsk then mode=1-mode
if mode=1 then RunCollisionPRO()
edsk=sk
sync
loop