added some local size customization depending on the platform to avoid freezes