Re: Can this loop be made faster ?

From: wolfgang kern (nowhere_at_nevernet.at)
Date: 02/26/05


Date: Sat, 26 Feb 2005 17:16:42 +0100


"The Half" skrev:

| > The first value will actually better represent the real timing during
| > code execution.

| :-(

| > If you run it twice or more often then more and more
| > parts of the code under test become 'recently frequent used' and get a
| > higher cache priority than the surrounding code (including debugger).
| Ok. Good to time gameloops this way then ?

I think so.

[...]
| > but I'm afraid you have to use the windozeAPI or DirectDraw,
| > not sure if you can use code like above there.

| One can use such code, but only in a backbuffer, which would then be
| copied (blittet) by a hardware blitter to the screen. But one would
| probably prefer to use the hardware blitters even to work on the
| backbuffer, as the full operation of locking the the memory, reading it
| from the hardware, changing it, and copy it back to the hardware would be
| slow. As far as I know you can do this in DirectX. I did this once, and it
| made otherwise smooth graphics become yerky.

Yes.

| But its been almost two years since I did any DirectX programming, and
| that was for DirectX7, so much may have changed by now.
|
| Of course, now theres is pixelshaders, that can do this instead, I
| _suppose_, but I have not tinkered with those yet, allthough I have
| several megas of unread docus about it. Time permits....well....(looking
| blank into the screen for a moment...feeling the strains of insomnia...)
| As far as I have understood, the hardware pixel shaders allow for us to
| upload some small pixel shading code to the hardware, and so the code will
| be called, by the hardware for each pixel that is rendered, after the
| texture has been applied. Its supposed to create possibilities for unreal
| graphics effects. but I am really blank to the details yet. But from
| looking at the really amazing games. (just played HL2) theres really been
| an awsome revolution in game graphics. It now looks so wonderful, that it
| allmost ready to take *away* the magic. :)) Oki thats just my sour
| shoulders, and broken ego speaking.... No, actually the new graphics and
| physics engines are really amazing. They make moch, of just about anything
| else. Soon we will simply be able to be part of the movie. I see an
| amazing industry growing up, giving us interactive movies, and awsomes
| games. New ways to tell stories. We should try to keep track of them, but
| sooner or later they may deside to look us out.

If just all this new hardware would come with detailed documentation
instead of HLL-created windoze-drivers...

| > For most games this are just basic attributes.
| > Have you ever tried "TIM" ?
| No. do you have a link to this game. I think you may have mentioned it
| some time in the past, but I couldnt find it sofar.

Perhaps it's too old already,
IIRC the original TIM came on an 760KB floppy during the 286-age.
It got balls, cannons, ropes, buckets, hamster-motors and a lot more,
and all the collisions and motions look astonishing real.

| På gjensyn.
?
bis später,
__
wolfgang



Relevant Pages

  • Re: xbox 3 + ps4
    ... and MS especially probably still feel a bit burnt over the HDDVD hardware add-on. ... The only thing I would like is a better graphics chip in it -not to improve the graphics really other than to add resolution. ... Games like GTA4 especially would benefit from allowing the 'camera' to be placed a little further back, reducing the main character size and expanding the viewable area. ... I've just upgraded my graphics card and I spent last night checking how stuff ran, basically anything I throw at it seems fine in 1680x1050 and looks stunning and sharper than anything I've played on 360, I don't know how it works with 360 vs. PC resolution wise, but I do know that a lot of scaling goes on with the 360 to the actual resolution the game is running at often isn't /that/ high. ...
    (uk.games.video.misc)
  • Re: Anybody here endure C/Cpp? (.h to .inc conversion)
    ... When people use C, the "portability" effort isn't always zero, ... application, hardware and user" (a "framework for their interoperability", ... the wheels, put the wings back in, now it's a car... ... games are more complicated these days and you'll never manage ...
    (alt.lang.asm)
  • Re: Firaxis blunder: a rant
    ... Intel aren't kidding when they say that most games will ... A high end laptop, capable of say running CAD programs, also can handle ... hardware to know if their graphics can handle a 3D game in T&L. ...
    (comp.sys.ibm.pc.games.strategic)
  • Re: Any tweaks to speed up games under XP?
    ... actually stop some games in their tracks. ... > Creative SB-PCI128 sound card ... The only problem hardware wise is, ... >> hardware specs before we can give you advice. ...
    (microsoft.public.windowsxp.games)
  • Re: Oblivion Delayed
    ... The hardware changed at a much slower pace. ... Since Dos games had their own drivers for video and sound you dodged ... >>to support multiple generations of cards with widely differing feature ... >>The demo claimed it ran under win95 - it wouldn't even install. ...
    (comp.sys.ibm.pc.games.rpg)