It works fine locally with over 10000 events. If the problem is still occurring to you when can you please provide sample or link where we could see it live?
Thank you very much for your reply. Do you have an unpacked dhtmlxscheduler_year_view.js file that I can try this with, then I can see at which line the issue lay?