Interesting, ye this is something like im talking about
curious if games made in JS or as java applets are much more slow than that? I heard tahat Js is about 5 times slower than native code, java should be faster probably.. still dont know those things though they are probably well known
What you heard is random hearsay about various other projects, not your projects.
Any tales of "5 times slower" are going to depend on details that are not provided. There are programmers who just keep guessing and hoping, and there are programmers who use science, as in computer science.
Take measurements. Form a hypothesis based on the measurements. Make a test. Take new measurements based on the test. Then make decisions based on the test results. You don't say "I heard someone once took measurements on some other projects, so I'm going to blindly assume that is my problem as well."
Since we are in computer science, it works like this:
I measured the program to be slow due to X. I suspect that the problem is Y. I can implement change Z which will correct the problem because of specific reasons that I can list. After implementing the change, I can measure again and get results X' which I can compare against X. If X' is better than X I will submit the change and accept that Y was correct. If not, I will assume either Y or Z was wrong and try again.
Yes, scripted code sometimes run slower than compiled code. But it is very likely that isn't the problem. Unless it is. Your computer can do billions of instructions every second. Does your code require billions of instructions? I've seen computer vision algorithms written in scripted languages that ran in real time on 300MHz computers. Chances are good that whatever bottleneck you are facing, it isn't the fact that you are using a scripted language.