minor optimization after profiling
remove obsolet viewport_base_t
fix regression introduced within previous optimization