When calling the flip function, try passing the flag DDFLIP_NOVSYNC (or maybe DDFLIP_DONOTWAIT, I forget). The down side here is that going faster than the v-synch can cause artifacts on the screen...
Type: Posts; User: Alimonster
When calling the flip function, try passing the flag DDFLIP_NOVSYNC (or maybe DDFLIP_DONOTWAIT, I forget). The down side here is that going faster than the v-synch can cause artifacts on the screen...
I dunno if this is useful to you but there's an isometric engine that's pretty fully-featured over at sourceforge: https://sourceforge.net/projects/jedi-isoax/. It might be worth a look
TTimer uses the WM_TIMER message, and ends up only guaranteeing 55msecs resolution - so if you set the timer interval to 33, for example (1000/33 = 30 updates per second), you'll actually only get 18...
I don't see a problem with that code. I tried the following on Windows 98 and it worked fine:
function Callback(Window: HWND; List: TStringList): BOOL; stdcall;
var
Buffer: array[0..255] of...
Here's the text of the tutorial from my old site. I'm looking forward to Harry Hunt's one because his packing utility is pretty sweet.
I don't have anywhere to put the source code so see my PM...
[quote="xGTx"]I've been searching the internet and google for some information but am coming up short. FileStreams... MemoryStreams... are the weakest ]
I'll grab the tutorial and code from home...
I'm tempted to register a domain here at f2o. Does anyone have any advice about this?
I've sent Nominet an email asking whether it's possible to kick the idiots who bought my domain off (thanks for bringing it to my attention, Traveler). If not then I may have to just register...
Hey, everyone has their price. ;) j/k
Yeah, I haven't renewed my site and it's been down for a little while now - I don't have a net connection at home too, so there's no real point in me...
First, check what the debug level is set to for the DirectX control panel - I found that having high debug levels (I think having the Direct3d one high in particular) hurt my framerate pretty bad.
...
StrToIntDef tries to convert the string, and gives you back a default value if it can't convert. For example, to convert, and get back -1 if a problem occurs:
MyInt := StrToIntDef(YourString,...
Post some code dude...
I don't know Visual Basic very well, but would Application.ProcessMessages fit the bill?
I guess that your resolution could be high, maybe - it's surprising how small 1 pixel becomes at higher res. ;) The PixelsPerInch could affect things but I'm not sure if it affects things like you'd...
How often do you update the animation? Just based on keypresses or something else (a timer?)?
Congrats! It's always a good feeling the first time you manage to squish the flicker!
Now go program something cool and show it off to us! :wink:
I think it might be tactics to explain the DoubleBuffered = true line... basically, that enables double-buffering in the OnPaint method of the TWinControl in which it's set. It creates a memory DC...
Could you expand on what you're meaning when you say "cards" game? Is it one of those ones where you're meant to collect cards of a certain type and play or trade them? If so, you'll have to expand...
You might want to investigate the "DoubleBuffered" property - just put the following line of code into your form's OnCreate event:
DoubleBuffered := True;
If you do that then you get the best...
The question mark part is the device you'll be creating - it's an out parameter, so... m_pDInput.CreateDevice(GUID_SysKeyboard, FKeyboardDevice, NIL);
where FKeyboardDevice is a...
How about a sloth? Seems appropriate. :P (sorry, couldn't resist!)
Hello again!
The benefit of DLLs is that they can be loaded into memory once, but shared among many applications. As an example, MSHTML.dll is Microsoft's HTML parser - it's used in Outlook...
You want to use a camera object. The idea is that the camera has coordinates for the currently viewed portion of the map (imagine the map being a lot bigger, and your player only ever sees a small...
Canvas.Draw ends up calling StretchBlt in the end (via TBitmap.Draw), after about 20 lines of preparatory code (checking palettes and so on).
But don't use Canvas.Pixels, it's really slow. I seem...
To be honest, I can't remember whether I selected service application or service. I think a service application is only a container for one or more services, so I'm not sure that it makes that much...