B
Boki
Hi All,
It seems that speed will become slower and slower after a while.
Could you please advice?
The image A / B are both 5KB size jpg file.
Best regards,
Boki.
====================
public void run()
{
int hhhhh=0;
lastSendTime=System.currentTimeMillis() ;
//////////////////////////////
while(got_ate0<100)
{
if (System.currentTimeMillis() - lastSendTime > 120)
{
lastSendTime=System.currentTimeMillis() ;
hhhhh=1-hhhhh;
try {
if (hhhhh==0)
GUI.aaimage = Image.createImage("/2.jpg");
else
GUI.aaimage = Image.createImage("/1.jpg");
}
catch (Exception e)
{
}
got_ate0++;
gui.repaint();
}
}
It seems that speed will become slower and slower after a while.
Could you please advice?
The image A / B are both 5KB size jpg file.
Best regards,
Boki.
====================
public void run()
{
int hhhhh=0;
lastSendTime=System.currentTimeMillis() ;
//////////////////////////////
while(got_ate0<100)
{
if (System.currentTimeMillis() - lastSendTime > 120)
{
lastSendTime=System.currentTimeMillis() ;
hhhhh=1-hhhhh;
try {
if (hhhhh==0)
GUI.aaimage = Image.createImage("/2.jpg");
else
GUI.aaimage = Image.createImage("/1.jpg");
}
catch (Exception e)
{
}
got_ate0++;
gui.repaint();
}
}