Go to advanced search

by devon
Sat Jul 07, 2012 4:25 pm
Forum: C/C++
Topic: nanosleep() alternative?
Replies: 6
Views: 10670

Re: nanosleep() alternative?

I actually just finished a pacman -Syyu (Took a while, I had an older archlinux distro) and it seems to have a new kernel configured with CONFIG_HIGH_RES_TIMERS=y as you mention, so my 1ms nanosleep now looks to be giving my cpu a break, while maintaining several hundred simulation loops / second. T...
by devon
Sat Jul 07, 2012 2:50 pm
Forum: C/C++
Topic: nanosleep() alternative?
Replies: 6
Views: 10670

Re: nanosleep() alternative?

Like nanosleep(), usleep() guarantees it won't return before its specified duration, but makes no promises about how soon after it will return. Unfortunately it behaves with the same 10ms resolution.
by devon
Sat Jul 07, 2012 2:42 pm
Forum: OpenGLES
Topic: Best way to time this chip?
Replies: 6
Views: 6934

Re: Best way to time this chip?

Perhaps take a look at clock_gettime.

http://linux.die.net/man/3/clock_gettime
by devon
Sat Jul 07, 2012 1:32 am
Forum: C/C++
Topic: nanosleep() alternative?
Replies: 6
Views: 10670

nanosleep() alternative?

I've recently received my Pi, and I've begun working on a test c++ OpenGL ES program. I have a thread for simulation updates, however my current options are to have it run at full speed 50,000+ times/sec, pushing system load to 100%, or to use nanosleep() which seems to only implement down to 10ms, ...
by devon
Wed Jun 13, 2012 4:46 pm
Forum: Troubleshooting
Topic: Pi = busted, yay.
Replies: 34
Views: 6006

Re: Pi = busted, yay.

I brought my newly arrived Pi into work this morning to try it over lunch, and had the same problem. Read a few posts on here about it, and was going to wait until I got home this evening to try my hand at resoldering x1, but decided on a whim to just *lightly* flick x1 a few times, and so far seems...

Go to advanced search