Easycraft Project Development notes (5): Small twists and turns in the process-system information and Registry

Source: Internet
Author: User

Currently, the code "hardwareinfo" (source) is obtained. Now, you can use "hardwareinfo" and the function getgraphics (source) to obtain the memory and video card information respectively, prompting you whether to lower the game settings.

However, adjustments to hardware acceleration cannot be made to adjust the number of cells, and d3d is completely disabled.

The program may discard the starter "Minecraft. Jar" and write a more flexible startup method. You can determine the allocated memory size and user name. We plan to make this part based on the minecraftsp principle (source.

So there are a lot of difficulties to solve. Please try again!

Tips

Function for getting the memory capacity and page file size quickly:

Void getmemoryinfo () {system_info sysinfo; char STR [max_path]; // get the hardware informationgetsysteminfo (& sysinfo); ITOA (sysinfo. dwpagesize, STR, 10); char * m_stpagesize = STR; cout <"virtual memory capacity" <m_stpagesize <"M" <Endl; char * memstr; _ memorystatus MEM;: globalmemorystatus (& MEm); ITOA (mem. dwtotalphys/(1024*1024), STR, 10); memstr = STR; cout <"memory capacity" <memstr <"M" <Endl ;}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.