{"id":223,"date":"2007-05-22T01:43:33","date_gmt":"2007-05-22T05:43:33","guid":{"rendered":"http:\/\/www.rakkar.org\/blog\/?p=223"},"modified":"2007-05-22T01:43:33","modified_gmt":"2007-05-22T05:43:33","slug":"how-i-got-to-30-fps-to-10-fps","status":"publish","type":"post","link":"https:\/\/rakkar.org\/blog\/index.php\/2007\/05\/22\/how-i-got-to-30-fps-to-10-fps\/","title":{"rendered":"How I got to 30 FPS to 10 FPS"},"content":{"rendered":"<p>\t\t\t\tJust when I was about to start alpha another problem strikes.  I added help text messages to the chat window, and this is the first time we tested a full chat window full of messages.<\/p>\n<p>In theory (and usually in practice) rendering static text is a trivially fast operation.  Once you calculate the dimensions you save to a billboard and save the billboard.  If you need to resize the text you just calculate when necessary.<\/p>\n<p>I have no idea what the hell CEGUI is doing but in the same scenario in debug I go from 30 FPS to less than 10 FPS.  Even if I just do<\/p>\n<p>a<br \/>\na<br \/>\na<br \/>\na<br \/>\na<\/p>\n<p>My FPS drops by 10.  So I&#8217;m profiling CEGUI with Devpartner Studio to see if I can find what the problem is.  It&#8217;s not too hopeful because I don&#8217;t know their code.  But it&#8217;s worth a shot.<\/p>\n<p>They recommend in the forums to use multi-line edit boxes, but I think rather than do that I will abandon CEGUI for the chat Window and render to texture the font, then just store that the correct way.<\/p>\n<p>Profile attached.  This is with 6 static text lines on the screen.  Click to see the full image.<\/p>\n<p><a HREF=\"http:\/\/www.rakkar.org\/cosmicstrife\/CEGUIProfile.jpg\"><img src=\"http:\/\/www.rakkar.org\/cosmicstrife\/CEGUIProfile.jpg\" alt=\"CEGUI Profile\" \/><\/a>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just when I was about to start alpha another problem strikes. I added help text messages to the chat window, and this is the first time we tested a full chat window full of messages. In theory (and usually in practice) rendering static text is a trivially fast operation. Once you calculate the dimensions you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/223"}],"collection":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=223"}],"version-history":[{"count":0,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/223\/revisions"}],"wp:attachment":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}