Search found 7 matches

by dimman
Tue Jan 05, 2016 11:51 am
Forum: General Discussion
Topic: Formatted wrong drive :S
Replies: 17
Views: 8711

Re: Formatted wrong drive :S

If you haven't overwritten anything or done a deep format (overwriting with 0s) you should be able to recover the
index with a recovery tool rather easily. But DO NOT use the drive in that case!
by dimman
Mon May 25, 2015 5:49 pm
Forum: Engine Programming
Topic: Best Way To Sleep An Empty Server
Replies: 8
Views: 1863

Re: Best Way To Sleep An Empty Server

Lol spike, poll/epoll for say 10-20 sockets? Nah simple select does just fine and is way simpler :) Baker: It's straight forward (in theory atleast). As Spike says, just add stdin fd to the fd set that select listens on (for console input) along with the listen socket. If you get input on console th...
by dimman
Mon Mar 09, 2015 10:48 am
Forum: Engine Programming
Topic: dual monitor gamma issues
Replies: 43
Views: 8484

Re: dual monitor gamma issues

Hehe, yeah if 60-120fps were good enough for the old an dirty ezQuake engine and its users :) I come from the QW community and the requirements there are a bit higher I assume. People play with framerates of atleast ~500fps and a drop from say 2000fps to 1000fps wouldn't be accepted. Anyway, thanks ...
by dimman
Sat Mar 07, 2015 11:28 am
Forum: Engine Programming
Topic: dual monitor gamma issues
Replies: 43
Views: 8484

Re: dual monitor gamma issues

I didn't realize it was that much of a perf hit, at least on id1 maps, but in e1m1 I go from 770fps with gamma 1 to 290fps with gamma != 1. I tried that at 2880x1800 to maximize the performance hit, w/ geforce 650gt 1024mb, OS X. On the other hand if I try one of the heaviest quake maps I know of, ...
by dimman
Fri Mar 06, 2015 11:16 pm
Forum: Engine Programming
Topic: dual monitor gamma issues
Replies: 43
Views: 8484

Re: dual monitor gamma issues

I did a quick hack to port the code to ezQuake and I'm seeing about 50-70% performance drop when gamma != 1. Is this reasonable by using the shader/implementation ericw presented?? (I haven't managed to get quakespasm running here yet otherwise it seems like a fairly easy test to do by toggling it o...
by dimman
Tue Mar 03, 2015 1:53 pm
Forum: Engine Programming
Topic: Funny C Rules (And Low-Level Languages in general)
Replies: 74
Views: 48929

Re: Funny C Rules (And Low-Level Languages in general)

A couple of notes:
12) Variables declared static or global variables have static storage duration and are initialized to zero
13) Due note that you cannot do sizeof int for instance, or any type, you do need parenthesis for those: sizeof(int)
by dimman
Tue Mar 03, 2015 11:57 am
Forum: Engine Programming
Topic: Problems with MD3 loader
Replies: 4
Views: 1677

Re: Problems with MD3 loader

Even if its not pretty, ptr is _not_ a pointer to short but a regular short.

'short *a, b'. Only a is a pointer to short, b is just a short.