下面是程序,如果我导入的是图片,图片由左到右移动很流畅,导入视频,移动起来就卡,有什么方法解决,请高手指点一二啊
import processing.video.*;
Movie movie;
float x4;
float y4;
float s4=5.0;
void setup(){
size(600,400,P2D);
movie=new Movie(this,"gu.mov");
movie.loop();
imageMode(CENTER);
// rectMode(CENTER);
stroke(1);
strokeWeight(6);
smooth();
}
void draw(){
background(255,123,22);
if(x4>600){
x4=0;
y4=random(0,height);}
x4=x4+s4;
image(movie,x4,y4,200,150);
//video1
}