hand-rolling mode(line)s

hand-rolling mode(line)s

Post by ebenZEROON » Sat, 19 Jan 2008 14:07:17


Hi, I've been hand-rolling Xfree86/xorg modes for years, in the interest
of reducing the dot clock (slower -> less heat from the video card).
I've always been successsful in the past, but then again I've always had
CRTs in the past (or recently, DVI-connected LCDs). They're either more
tolerant of things, or they give good feedback as to what needs to be moved
which way (if you know how to read them). Now, I have two monitors
(both LCD, L by DVI and R by VGA), and the mode for the R monitor is
giving me fits. Currently I have:

mode "my_1600x1200"
dotclock 150
htimings 1600 1712 1776 1968
vtimings 12lo0 1200 1203 1250
endmode

I started with what's at the end of /usr/share/hwdata/CardMonitorCombos.
But it never looked correct (too far right, out of adjustment range),
so I didn't hurt much by messing it up. The image is too wide.
(There's no width control on the monitor.) Offset too, but correctably
so. Originally, on this system I had one monitor (this one), connected
by DVI. The dotclock was 120 then. I'd like to get it back down there.
What needs to change? Thanks.

Also, do Xinerama and Twinview have the same performance? If so, I'd
rather use Xinerama as it's not Nvidia-proprietary. If I should change
GPU brands in the future, Twinview won't be available. My Xinerama
setup is hosed... ( http://www.yqcomputer.com/ :81/xorg.conf.gz). Is
https://help.ubuntu.com/community/XineramaHowTo a decent resource?

--
-eben XXXX@XXXXX.COM royalty.mine.nu:81

Drive nail here > < for new monitor.
 
 
 

1. Demo frameworks vs. hand-rolling

2. Style Poll: Hand-Rolling for() Loops

Hi, everyone,

I was in a code review a couple of days ago and noticed one of my coworkers
never used for() loops. Instead, he would use while() loops such as the
following:

i = 0;
while (i < n)
{
...
++i;
}

My initial reaction to seeing a while() loop is that the developer is doing
something *other* than one would have done with a for() loop. That is,
perhaps there is a special termination condition in the loop. Perhaps the
index is changed. But in this case the developer was doing absolutely
nothing different than the equivalent for() loop would have done. He had
just chosen to use a while() loop. As such, his implementation was
difficult for me to read.

So, I brought this up and the developer's position was that I was being
picky. He thought that hand-rolling his own for() loops was a reasonable
demonstration of an acceptable difference in style. Since the two of us
disagreed I thought I'd poll any readers on this group that felt like
responding.

Do you think that this type of structure is reasonable code? Or do you
think that the "common" implementation should be mandated? Am I being too
picky and should I just chill out?

Thanks!
Scott

--
Remove .nospam from my e-mail address to contact me.

3. use both left hand and right hand justification in the same line

4. My Hand-Rolled Dynamic Arrays.

5. how to change Hand Icon on Roll Over

6. Hand-rolled tiled pattern failing miserably - please help!

7. Arrow does not change to hand in IE or NS when rolled over image map

8. how to change lpt mode to print 132 char per line in command mode?

9. mode-line and header line length/visibility

10. SetMode() to 50 lines in console app. in window mode does not go 50 lines.

11. what's the name of one line buffer below mode-line ?

12. Multi-line/paragraph indenting and line-wrap mode

13. How to set print fontsize when print mode is line to line

14. making datum lines appear as hidden lines in drawing mode

15. how to get line number like information into the mode line?