ok im creating a game but it uses too much cpu but it doesn't uses too much memory. the cpu does increase and decrease. i have too many timers in my game, i kill the timer when i don't use it any more so that should cause a problem but what i think that causes the problem is there is too many messages in my message qeue. i have new lapt...
I have a D2006 app that uses FastMM4 (like, it has "FastMM4" in the start of the uses clause in the DPR file). I know Delphi uses FastMM4 as it's memory manager anyway, but the downloaded version has more debug dump options.
I recently tried to run the app on a single-board tablet type industrial PC running Windows XP embedded. The pr...
Hi experts~
I heard a lot that data should be properly aligned in memory for better access efficiency. CPU access memory on a word boundary.
So in the following scenario, the CPU has to make 2 memory accesses to get a single word.
Supposing: 1 word = 4 bytes
("|" stands for word boundary. "o" stands for byte boundary)
|----o----o...
I am making an emulator for Z80 binaries but I cannot find out whether all the integer data types are signed or unsigned from the manual or from google. So are the numbers from registers A,B...HL,BC etc signed or not?
Also, in machine code are the bytes/words/addresses which come after the instructions as arguments signed or unsigned?
...
I was wondering whether the instant search using jQuery would cause a massive load on a database (MySQL). I know there are a lot of factors to consider, but for argument's sake let's say you have 30,000 records to flick through?
...
At first glance it seems like a good idea to let the hard disk write to RAM on its own, without CPU instructions copying data, particularly with the success of asynchronous networking in mind. But the Wikipedia article on DMA states this:
With DMA, the CPU gets freed from this overhead and can do useful tasks during data transfer (th...
I want to host an exe in an appdomain and assign a CPU and Memory cap to it so that it does not use more than the assigned processing power. Is this possible to do and how?
...
Hi,
All we know that JVM schedules the user threads in a single CPU based machine .Why cant a single CP run mltiple process/threads in parallel,What is the constrain stops that capability
Also JVM is like a another software which is running in any machine,There may be thousands of other programs may waiting for the CPU cycle at a given...
I hope this is the right place to ask this question, as I think it is related to algorithms and performance.
On my desktop, I have a little widget that tells me my current CPU usage. It also shows the usage for each of my two cores.
I always wondered, how does the CPU calculate how much of its processing power is being used? Also, if ...
I want to know what type of CPU (Intel Pentium V, AMD Athlon Barton etc.) is built in and which features it has (SSE, MMX, Stepping etc.). Is there some ready-made Java-library for this?
...
Hello everyone i have a high CPU problem with MYSQL using "top" ( linux ) shows cpu peaks of 90%.
I was trying to find the source of the problem, turned on general log and slow query log,
The slow query log did not find anything.
The Db contains a few small tables and one large table that contains almost 100k rows, Database Engine is ...
I am using the following code to profile my operations to optimize on cpu cycles taken in my functions.
static __inline__ unsigned long GetCC(void)
{
unsigned a, d;
asm volatile("rdtsc" : "=a" (a), "=d" (d));
return ((unsigned long)a) | (((unsigned long)d) << 32);
}
I don't think it is the best since even two consecutive call...
Taken from this SO thread, this piece of code calculates the number of CPU cycles elapsed running code between lines //1 and //2.
$ cat cyc.c
#include<stdio.h>
static __inline__ unsigned long long rdtsc(void)
{
unsigned long long int x;
__asm__ volatile (".byte 0x0f, 0x31" : "=A" (x));
return x;
}
int main() {
unsigne...
Does anyone know how to tell core image to process a CIImage through a CIFilter using the CPU instead of the GPU? I need to process some very large images and I get strange results using the GPU. I don't care how long it takes to CPU will be fine.
...
Hi,
What we are getting if someone says "my machine is 64-bit computer" . What is the difference between 64-bit computer(I mean the CPU architecture) and operating system(WINDOWS 64 bit OS).
Please explain me how these terms are related with processor architecture
Thx
...
Do somebody know some CPU simulator featuring simple assembly language
with assembler, loader, linker for learning and testing purpose.
That I could run on GNU systems.
...
The normal answers to why data alignment is to access more efficiently and to simplify the design of CPU.
A relevant question and its answers is here. And another source is here. But they both do not resolve my question.
Suppose a CPU has a access granularity of 4 bytes. That means the CPU reads 4 bytes at a time. The material I li...
I want to use GPU for counting purposes. I need it to fall on to CPU if no GPU found and provide me with unified api. (interested in any .net for example №4)
...
I'm trying to understand how the Memory barrier works, why it is used and in what cases it should be used. However I'm not entirely sure in what cases it would be more efficient to arrange the order of instructions, can anyone give me an example of that?
...
This might seem wierd, but I'm interresting in creating an electric heater outta my computer, that is program an application, that heats up my pc, and I need some help.
I currently made an application, that runs infinite loops on the GPU(using a little shader), and on the CPU cores, however I'm interresting in getting the ram going too,...