Hi All, i have a problem with redraw on nokia n_gage device, this is delay:
public void run()
{
while(true)
{
repaint();
try
{
Thread.sleep(50);
}
catch(InterruptedException ie)
{

}
}
this is redraw:
public void paint(Graphics g)
{
g.setColor(0,0,0);
g.fillRect(0,0,getWidth(),getHeight());
g.setColor(0xffffff50);
g.drawString(String.valueOf(nFPS),10,10,0);
nTime2++;//counting fps
if(System.currentTimeMillis() >= nTime1+1000)
{
nTime1=System.currentTimeMillis();
nFPS=nTime2;
nTime2=0;
}
}

on nokia ngage i have fps = 16, but if delay 50, fps should be 20, i have test it at emulator fps 20 real device have fps 16, and i have test it on device 40 series fps on it = 20, where can be problem?