processing write several time to arduino

I have a problem is that when i use serial.write() in processing to send value to arduino it actually send it several times which leads to problems with my project is there any idea how to fix such problem?

is there any idea how to fix such problem?

Is it being sent several times or is there a problem with the Arduino code ?

sent several times cuz with tera term and an android app i made this issue doesn't happen but just with processing code only.

(deleted)

i just knew that processing Draw() function which i have my serial.write() func inside run at 60fps rate which causing the problem incase someone face such problem like myself.

thanks