lua-users home
lua-l archive

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

> - the 2D array is 20 columns x 10 rows (200 elements)
> - If I allocate userdata to it, the program cycle takes typically 30 to
> 40msec but every n interations (were n could be any were from 15 to 25)
> it "stops" for 1700 to 2500msec!!!
> [...]

Usually, this kind of problem (long pauses) is related to garbage
collection. But the size of your array (only 200 elements) seems too
small to make any impact about garbage. And the pauses seem too
long (2.5 seconds, is that right?). I would look for something else 
(other garbage being created, as Jerome suggested).

-- Roberto