lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



Hmm, replying to myself.

I tried different values and it more or less doesn't affect work of the interpreter and scripts execution time, so i'll leave 60 for now and go to read some more about ST internals. So far I tested this binary on Hatari and it works well.

Cheers,
W.

2015-01-06 12:16 GMT+01:00 Wiktor Grębla <greblus@gmail.com>:
Thanks Olivier.

Will try to investigate it further (I've an idea). I've taken this value from the original desctiption of changes made by Thorsten Butschke  (there is a link to webarchives on Lua web page) without thinking too much about it.

Kindest Regards,
Wiktor.

2015-01-06 11:58 GMT+01:00 Oliver Kroth <oliver.kroth@nec-i.de>:
Hi Wiktor,

another thing from your diff file: you replaced  the constant CLOCKS_PER_SEC with 60.
I am not 100% sure which counter is used for os.clock; but if it is the 200Hz counter incremented by the interrupt from the (simulated) MFC, you may run better with the value 200. If it is the VBL (Vertical BLank interrupt), your constant may have to vary, depending on screen settings...

--
Oliver





--
Talkers are no good doers.



--
Talkers are no good doers.