- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
The road to hell is in fixed point binary
Collapse
X
-
-
-
Doh!
Though really it's not fixed point binary that's the problem; it's using two different ways of measuring time together that's the problem. And that's the sort of thing that should ring alarm bells for any experienced programmer.
That and the fact they didn't bother testing it properly. This being the military they probably had extensive test procedures, but as long as everybody ticked the right boxes and signed the right documents, nobody cared whether it was actually tested.Will work inside IR35. Or for food.Comment
-
Originally posted by zeitghostDid you notice the comment from the chap who'd worked out it was a 23 bit error rather than a 24 bit error?
Bet he wears a beany hat with a propeller.
For some of the games I wrote on the PC I reconfigured it with a smaller start value so it interrupted much more frequently, and used that to modulate the frequency at which the internal speaker was driven (also by the 8253). By this means, we were able to output sampled sounds (albeit at a very low sample rate) via pulse-width modulation through the internal speaker
To this day, I think that was the coolest hack I ever came up withComment
-
I remember at least one game which did (what I assume is) the exact same trick. We were amazed when suddenly "real music" came out of the PC speaker, I think it maybe even did speech.Originally posted by MaryPoppinsI'd still not breastfeed a naziOriginally posted by vetranUrine is quite nourishingComment
-
Originally posted by d000hg View PostI remember at least one game which did (what I assume is) the exact same trick. We were amazed when suddenly "real music" came out of the PC speaker, I think it maybe even did speech.
The technique is described in Wikipedia: PC speaker - Wikipedia, the free encyclopedia
So I certainly wasn't the only one to think of it, but I did think of it - inspired by a conversation in the pub with an old friend who was an electronics engineer, as I remember
(And, unlike some implementations, I kept count and called the original interrupt handler every so many times, so the system's real-time clock didn't either go wildly fast or stop completely.)Comment
-
I felt like that when I got a fully-featured S-Buffer implementation working (dispenses with the need for a Z-buffer). I read a little about the idea in the legendary Computer Graphics: Principles and Practice: Principles and Practices and aged 13 or so it was the first time I ever sat down and worked out an algorithm on paper properly, and then then implemented it.
This was about the time everyone was switching to Direct3D so my 3D engine with inner-loop hyper-optimisation never actually got used. But I was still dead chuffed.Originally posted by MaryPoppinsI'd still not breastfeed a naziOriginally posted by vetranUrine is quite nourishingComment
-
Originally posted by d000hg View PostI felt like that when I got a fully-featured S-Buffer implementation working (dispenses with the need for a Z-buffer). I read a little about the idea in the legendary Computer Graphics: Principles and Practice: Principles and Practices and aged 13 or so it was the first time I ever sat down and worked out an algorithm on paper properly, and then then implemented it.
This was about the time everyone was switching to Direct3D so my 3D engine with inner-loop hyper-optimisation never actually got used. But I was still dead chuffed.
I found an old notebook recently with a bunch of scribbled notes and diagrams to do with rendering polygons on a bitmapped screen, probably written in the pub twenty-odd years ago. Completely useless nowComment
-
There was a brief window where our pointless old knowledge was once again valuable in the mobile world, but then mobile chips doubled in power every generation and are now on a par with PCs.Originally posted by MaryPoppinsI'd still not breastfeed a naziOriginally posted by vetranUrine is quite nourishingComment
-
Originally posted by NickFitz View PostNice
I found an old notebook recently with a bunch of scribbled notes and diagrams to do with rendering polygons on a bitmapped screen, probably written in the pub twenty-odd years ago. Completely useless nowComment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Comment