Displaying 5 results from an estimated 5 matches for "queryperformancefrequency".
2006 May 11
9
world of warcraft doesnÄt work (sorry if double post)
if this is a doublepost please sorry bur the first post was blocked by
spamfilter because of wrong timesettings on my local computer. i reaplyed
to my original post and now im not shure if the mailserver thinks the
message is corrupt because of reply to a non existing message. here is the
originalmessage (again?)
Hi everyone,
thirst of all please forgive my bad english :)
i have installed wine
2012 Jan 22
1
Timing related application crash
...lties by getting a "divide by 0 error". There are no other
console messages (such as WINE FIXMEs) before this. After attaching a
debugger (ollydbg) I found the following sequence seems to be the
culprit (simplified to Cish code):
(start @ 0x0041AF35)
CPUID, RDTSC func
CPUID, RDTSC func
QueryPerformanceFrequency(&Frequency);
QueryPerformanceCounter(&PerformanceCount1)
CPUID, RDTSC func
QueryPerformanceCounter(&PerformanceCount2)
CPUID, RDTSC func
do some math related to something
blah = something * Frequency / (PerformanceCount2 - PerformanceCount1);
The key issue being that PerformanceCount2...
2001 Oct 16
7
Performance tests
I did some testing of vorbis codec (Winamp plugin) on a Pentium 166 MMX, and
found that the performance is pretty good. I got 3 % cpu utisization if I
turned dithering off, and 5 % otherwise. This was with a 138 kbit song. It's
pretty long to mp3 performance that was 0 to 1 % on that machine for a 128
kbit song.
Also vorbis seems to have a larger working set, because if I play two songs
at
2017 Nov 21
2
question about xray tls data initialization
...ires bitfields to be same type to pack
them together( all types => uint32_t)
FD int => HANDLE, most code logic still valid (-1 as invalid value),
r/w API replaced with windows
mprotect => VirtualProtect
readTSC in xray_x86_64.inc also works for windows
replace read tsc from proc with QueryPerformanceFrequency
msvc can not compile such code
void setupNewBuffer(int (*wall_clock_reader)(clockid_t,
struct timespec *));
must use typedef first . xray use clock_gettime as default
implementation , which is not friendly for windows .create a fake one
based on...
2017 Nov 16
2
question about xray tls data initialization
I'm learning the xray library and try if it can be built on windows, in
xray_fdr_logging_impl.h
line 152 , comment written as
// Using pthread_once(...) to initialize the thread-local data structures
but at line 175, 183, code written as
thread_local pthread_key_t key;
// Ensure that we only actually ever do the pthread initialization once.
thread_local bool UNUSED Unused = [] {