{"id":275,"date":"2012-08-09T08:27:32","date_gmt":"2012-08-09T06:27:32","guid":{"rendered":"http:\/\/www.ancor.ch\/schoebey\/?p=275"},"modified":"2012-08-09T08:27:32","modified_gmt":"2012-08-09T06:27:32","slug":"lightbox-performance-test","status":"publish","type":"post","link":"https:\/\/www.ancor.ch\/schoebey\/?p=275","title":{"rendered":"LightBox: Performance-Test"},"content":{"rendered":"<p>Using an OpenGL-Viewport, a curious behaviour takes place:<\/p>\n<p>rendering ~1000 items (partially overlapping) is slow if they are painted directly onto the scene background.<\/p>\n<p>If however an item covers the area they&#8217;re all in and lies in the background, rendering is a *lot* faster.<\/p>\n<p>&nbsp;<\/p>\n<p>A performance test function should help determining bottlenecks in display performance:<\/p>\n<p>&nbsp;<\/p>\n<pre lang=\"cpp\">void performanceTest(ETestMode mode)\r\n{\r\n  \/\/ disable loading &amp; rendering of textures\r\n  \/\/ create a grid of 200x200 items, non-overlapping \r\n  \/\/ or overlapping, depending on the mode\r\n  switch (mode)\r\n  {\r\n    case eNonOverlapping:\r\n      break;\r\n    case eOverlapping:\r\n      break;\r\n    default:\r\n      break;\r\n  }\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Using an OpenGL-Viewport, a curious behaviour takes place: rendering ~1000 items (partially overlapping) is slow if they are painted directly onto the scene background. If however an item covers the area they&#8217;re all in and lies in the background, rendering is a *lot* faster. &nbsp; A performance test function should help determining bottlenecks in display [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5,6,13],"tags":[],"class_list":["post-275","post","type-post","status-publish","format-standard","hentry","category-code","category-design","category-implementation","category-lightbox"],"_links":{"self":[{"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=\/wp\/v2\/posts\/275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=275"}],"version-history":[{"count":5,"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=\/wp\/v2\/posts\/275\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=\/wp\/v2\/posts\/275\/revisions\/280"}],"wp:attachment":[{"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ancor.ch\/schoebey\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}