{"id":425,"date":"2015-04-10T21:09:12","date_gmt":"2015-04-10T10:09:12","guid":{"rendered":"http:\/\/www.nickdu.com\/?p=425"},"modified":"2015-04-10T21:09:12","modified_gmt":"2015-04-10T10:09:12","slug":"maximize-your-cpu","status":"publish","type":"post","link":"https:\/\/nickdu.com\/?p=425","title":{"rendered":"Maximize the output of your CPU (Keep your CPU in full power mode)"},"content":{"rendered":"<p>Recently I am working on UI decoding optimization. I found this program,\u00a0<a href=\"http:\/\/tringi.trimcore.cz\/Full_Throttle_Override?language=en\" target=\"_blank\">Full Throttle Override<\/a>, is very useful, and it can fully release the power of your CPU.<\/p>\n<p>To balance of power consumption and performance, almost all x86 CPUs support either <a href=\"http:\/\/en.wikipedia.org\/wiki\/Cool%27n%27Quiet\" target=\"_blank\">Cool&#8217;n&#8217;Quiet<\/a> or <a href=\"http:\/\/en.wikipedia.org\/wiki\/SpeedStep\" target=\"_blank\">SpeedStep<\/a> or <a href=\"http:\/\/en.wikipedia.org\/wiki\/PowerNow!\" target=\"_blank\">PowerNow!<\/a> technology, which can dynamically adjust the CPU frequency based on the loading.<\/p>\n<p>I found it&#8217;s pretty easy to implement <a href=\"http:\/\/tringi.trimcore.cz\/Full_Throttle_Override?language=en\" target=\"_blank\">Full Throttle Override<\/a> and here is the core C++ code<\/p>\n<pre lang=\"cpp\">\t\t\nvoid FullThrottle()\n{\n    OSVERSIONINFO osvi;\n    memset(&amp;osvi, 0, sizeof(OSVERSIONINFO));\n    osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);\n    GetVersionEx(&amp;osvi);\n    \/\/ For Vista and above\n    if (osvi.dwMajorVersion &gt;= 6)\n    {\n\tGUID *scheme;\n\tPowerGetActiveScheme(NULL, &amp;scheme);\n\tPowerWriteACValueIndex(NULL\n            , scheme\n            , &amp;GUID_PROCESSOR_SETTINGS_SUBGROUP\n            , &amp;GUID_PROCESSOR_THROTTLE_MINIMUM\n            , 100);\n\tPowerSetActiveScheme(NULL, scheme);\n    }\n    else\n    {\n\tMessageBox(NULL, L\"Not supported by your OS!\",L\"\",0);\n    }\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Recently I am working on UI decoding optimization. I found this program,\u00a0Full Throttle Override, is very useful, and it can fully release the power of your CPU. To balance of power consumption and performance, almost all x86 CPUs support either Cool&#8217;n&#8217;Quiet or SpeedStep or PowerNow! technology, which can dynamically adjust the CPU frequency based on &hellip; <a href=\"https:\/\/nickdu.com\/?p=425\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Maximize the output of your CPU (Keep your CPU in full power mode)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,2],"tags":[],"class_list":["post-425","post","type-post","status-publish","format-standard","hentry","category-cc","category-it"],"_links":{"self":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/posts\/425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=425"}],"version-history":[{"count":0,"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/posts\/425\/revisions"}],"wp:attachment":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}