How to Use 100% intel core i9 CPU with Visual Studio 2019? - visual-studio-2019

I have tested with Ryzen 5900X, Visual Studio uses 100% processing and compiles my Source code in 103 seconds. But on another PC with intel core i9 12900K processor, it takes 228 seconds to compile, because it only uses 45% of processing power.
I have tried with 'Cinebench' Benchmark software, my processor usage reaches 100%. Means there is no setting blocking my PC to reach its full potential and all cores are unparked. Seems like, Visual Studio Settings need some tweaks. any help would be highly appreciated. thanks.
Windows 10, intel core-i9 12900K, 16 core, 24 Logical processors, 128 GB RAM, 2 TB SSD, RTX 3090 Ti.

Related

Visual Studio Emulator for Android memory minimum?

I'm using the VS emulator for Android with Visual Studio 2015 Community (Update 3). When I run a Xamarin project this error displays:
The emulator is unable to verify that the virtual machine is running: Not enough memory is available to start an emulator that uses 3072 MB of startup RAM.
OK, from this page https://msdn.microsoft.com/en-us/library/mt228280.aspx we see the system requirements where we need Hyper-V support and 6 GB or more of RAM.
My laptop has 4GB 8GB RAM plus swap space. When I allocate 3072 MB to the virtual machine through the Hyper-V Manager, the emulator starts but running and debugging is slow, of course because now there's only 1GB of RAM for VS and whatever else is running. (Yes, I try to minimize other RAM usage...)
So I wanted to reduce the footprint of the VM. However, and this is the common mistake some people are making: Reducing the size of the VM doesn't reduce the amount of memory that VS wants, it only reduces the available memory. And if the available memory is less than what VS wants we get that error.
So my questions are:
1) Can we modify a config somewhere to reduce the amount of RAM that VS wants in a virtual machine?
2) Is there an XDE.exe command-line somewhere that gets used where we can set the memory?
3) And ultimately, can anyone provide a good reason why an emulator requires 3GB or more of RAM? I don't want to suffocate the execution of the environment but I don't want it to take a lot more than it really needs either.
C:\Users[YourUserName]\AppData\Local\Microsoft\VisualStudioEmulator\Android\Containers\Local\Devices
Just head to this URL and you will find the files
Now you will just have to open each one of them and change this line content, replacing the value with “1024”:
I open "Hyper-V Manager" and edit it's memory in setting Pane. So easy

Is there a way to limit the amount of RAM that Dart Editor uses up?

I found it was using 600 MB of RAM, even more than Visual Studio (which I shut down when it gets to 400 MB of RAM).
The dart editor is based on Eclipse which is in turn based on Java. You can tell java to limit the amount of memory an application can use on start-up in the init file.
In the DartEditor.ini file you can set the maximum memory size to use. Here 1400 Mo
-Xmx1400m
This is a command line option to java.
More info on java command line options can be found here: http://docs.oracle.com/javase/7/docs/technotes/tools/windows/java.html#options
or the java man pages.

x86 Windows 8 Tablet running Pro can't access Integrated Cameras with Emgu OpenCV

I can't get Emgu CV to work with the cameras on the new Atom based Windows 8 x86 tablets. These are not the ARM based tablets running Windows 8 RT these are running the full blown Windows 8 Pro x86 on x86 Atom CPUs. I've tried working code on a release version of the Samsung XE500T1C (Ativ?) and on a pre-release version of the HP ElitePad 900.
Emgu CV tells me: "Error: Unable to create capture from camera 0". The problem is probably related to the fact that the new Atom chipset is handling some of the camera functions. I've attached a screenshot of the device manager with the offending cameras highlighted.
Under Imaging devices we have:
Intel(R) Imaging Signal Processor 2300
Under System devices we have:
Camera Sensor OV2720
Camera Sensor OV8830
Flash LM3554
I've searched the Internets high and low and can't find anything useful. I've contacted HP and they're contacting their engineering. I tried Intel and the best I got was this: http://software.intel.com/en-us/articles/sample-windows-store-app-for-camera-picture-taking which is actually for the Windows Store apps. Although it does work.
Does anyone have any ideas? Needless to say I'm in a bind. One other thing Emgu CV is working fine on my Samsung Slate Series 7 that is running Windows 8 Pro. It also runs fine in a 32-bit Windows 8 Pro VM. It just appears to be these new ones with the new Atoms with the Intel Imaging Signal Processor 2300.
Thanks everyone!
Hal
I rolled Emgu back to 2.1.1 from December of 2010. This appears to work fine with the new Intel Clover Trail Atoms.
FYI: I also tried the 2.4.9 Alpha dated 2013-01-14, but that would not work.

Performance Object cannot be seen in Windows 7

I wish to register some of status of my application as a performance object, so that I can monitor its performance by utilising the Windows Performance Monitor.
But I had a problem with Windows 7: the performance object cannot be seen in the list of Performance Monitor, even if my application is running.
My code is exactly the same as the Delphi project in this tutorial:
http://www.wehlou.com/Code/perfmon/index.htm
However, the solution provided in this tutorial doesn't work in Windows 7 either.
Such solution works fine in Windows XP and 2003.
I don't know if there are some changes in Windows 7 which makes my performance object missing.
Please help. Thanks a heap in advance.
Is your Windows 7 computer a 64-bits machine? You may have to provide both a 32 and 64 bits version:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa371636(v=vs.85).aspx
The short answer:
Yes you can fix manually the 2 object performance counters (DeltaCount & RawCount) issue under Windows 7 x32. The 2 files generated by PerfMonClient.exe are usable (namely symfile.h and symfile.ini).
Nota: Refer to MSDN for the usage of lodctr.exe.
Prior to that an entry to the registry as follows should created:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\PerfMonClient\Performance]
"Open"="PerfData_Open"
"Close"="PerfData_Close"
"Collect"="PerfData_Collect"
"Library"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,50,\
00,65,00,72,00,66,00,4d,00,6f,00,6e,00,44,00,4c,00,4c,00,2e,00,64,00,6c,00,\
6c,00,00,00
Nota: Library point to %SystemRoot%\System32\PerfMonDLL.dll (location of the performance DLL).
Any attempt to install and/or uninstall them using PerfMonClient.exe App doesn't work even under Windows XP. Forget about that.
Look an feel:
Listing
symfile.h:
#define OBJECT_1 0
#define DEVICE_COUNTER_1 2
#define DEVICE_COUNTER_2 4
symfile.ini:
[info]
drivername=PerfMonClient
symbolfile=symfile.h
[languages]
009=English
[text]
OBJECT_1_009_NAME=PerfMonTest Performance Counters
OBJECT_1_009_HELP=A demo application for your unbridled pleasure
DEVICE_COUNTER_1_009_NAME=RawCount
DEVICE_COUNTER_1_009_HELP=A count of something that goes up and down
DEVICE_COUNTER_2_009_NAME=DeltaCount
DEVICE_COUNTER_2_009_HELP=Something going up all the time, Windows shows difference per time unit

How to diagnose Nvidia geforce 8400 gs / directx 9.0c render artifacts

In all of the "u.i." pages of Dangerous Waters 1.04 and Falcon Bms 4.32 I get
thin horizontal bars (see attached image).
They are not in the "main sim window" ("3d" fullscreen )
I'm running Win xp sp3, DirectX 9. 0c (4.09.0000.0904), on an HP DC5000 / 1gig / and the geforce 8400 gs. I also tried installing older drivers (169.21),(195.62) but the problem remains
The above games, run perfectly on at least 3 other systems I've tried, one was XP, the other two Win7, all geforce cards, a 6600, 9600, and 9800, with the latest nvidia drivers.
Other graphic apps like Blender, iRacing, xplane, ClearviewRC, Orbiter, run perfectly well on this box / card combo
I installed the nvidia perfkit, but it does not seem to be useful for apps without source code
Are there any "black box" directx / nvidia debuggers / tools that I can use to determine where the problem is originating ?
Mike
Nvidia 8400 gs render artifacts
You can try PIX which comes with the DirectX SDK, but without sources or symbols, not sure how much you will be able to diagnose.

Resources