@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> hello. i'm playing around a bit with directdraw, but i can't get anything meaningful on the screen. in fullscreen mode it just flickers, and in windowed mode i don't get anything on screen. i tried ignoring wm_paint and redraw messages, but to no avail. any ideas?
<1> Fale
<2> hmm. question 1.. why are you using dd and not d3d?
<3> pulse_, yeah the textur emanager in d3d switches from LRU to MRU when you overcommit VRAM
<3> its a good thing that warning exists :)
<3> i guess its when you seriously overcommit
<3> that is, within a single frame.
<3> iirc thats what it is
<2> dxt man :P
<2> shrink all them textures ;P
<4> I just forgot about displaying all the text that I was displaying against my will, which was useless anyway
<4> it was coordinates of tiles on a grid :D (1,1)(1,2), ...
<2> your text on the screen is exceeding 256 megs? :P
<4> yep
<4> I believe that was it
<2> you've got an issue with your text rendering system then :P



<4> I dont know how piccolo3d displays text
<4> it's not me
<4> if piccolo3d really is a problem later, Ill try to change that
<4> hmm
<4> "failed to create driver surface" :P
<4> I think I have to reboot now
<5> XNA in 3 days!
<5> :D
<6> Is it normal for DX9 programs to use more cpu power when it is executed from outside the compiler?
<7> that's all how your stuff is coded
<7> basic compiler knowledge will help there ;P
<7> build in release mode for one
<6> awesome, thanks man
<1> Lols
<4> use more cpu power = slower or faster?
<1> Unrelated
<4> right
<4> Im probably stupid
<4> either the question didnt mean anything, either I didnt underand it
<4> st
<1> The efficiency of a program can't be determined using its CPU usage
<4> Im trying to initialize the XACTEngine; worked fine on a machine, and I get a "cl*** not registered" error on mine
<4> I guess I forgot something
<4> I had lots of trouble with namespaces
<4> coz I needed to include dx within a PrivateImplementation namespace for mc++ compatibility
<4> Im starting to hate cpp
<1> C++ rules
<4> http://www.google.com/search?hl=en&q=0x80040154+XACTEngine
<1> Why don't you write your own engine
<4> sure
<4> coz Im too lame for that
<4> only real coders write their own stuff
<6> hmm
<7> :D
<7> like Ghaleon
<6> the cpu usage from a program does have to do with the efficiency
<4> Im so happy there are real coders out there
<4> hr = CoCreateInstance(__uuidof(XACTEngine), NULL, CLSCTX_INPROC_SERVER, __uuidof(IXACTEngine), (void**)&s_pEngine);
<4> hr => not registered. wtf?
<6> because if it is a basic program, it should have a LOT of NOP operations not usin any of the cpu
<7> but if it's a game
<7> it should use 100%
<4> I think I start to have an idea :P
<7> unless it's a gdi game
<6> well it's a 2d game
<7> that doesn't mean anything
<7> lots of 2D games pushed systems to their limits before
<6> but it's not advanced yet
<7> then you're not sleep'in
<6> and it was doing it even with the directx example EmptyProject
<7> sure
<7> the message loop is engineered to take advantage of all the cpu
<6> hmm
<6> I see
<6> well that does make sense now that you put it like that
<7> just because it's using 100% cpu, doesn't mean something else can't start using that cpu too
<6> hmm
<6> well there's a problem though
<6> high cpu usage on a processor isn't necessary
<3> Skitchin, nop's take cpu.



<6> is there a way to timewait, like a vsync command or something
<3> now the reason game loops tend to go "full blast" is that you are usually after all the fps you can get
<3> vsyncing will happen on Present()
<3> but thats a spin wait
<3> if you want to free up cpu cycles, you can use a separate swap chain, and IDirect3DSwapChain9::Present
<6> i'm just trying to think of a way to slow down on the cpu usage if possible
<3> which allows a DONOTWAIT flag
<3> slow down?
<6> hmm
<3> just cap your framerate then.
<6> i have it set to DEFAULT time
<6> wich is 60fps with vsync enabled on display card
<7> use GetMessage instead of PeekMessage
<1> I use PeekMessage and QueryPerformanceCounter to time the engine, it just draws in a while(true) loop basically
<1> Uses 15-20% CPU with nazi cubes
<1> http://modseven.de/code/nazicubes3.jpg ok that one took more CPU
<4> I found out about my problem, in case someone is interested
<4> Im using the april sdk, whereas xact came right after
<1> Lols
<4> is there some dx redist to provide so that it can work on an end user machine?
<4> I hope the last one will do
<4> but Im afraid some stuff like d3dx9 won't be included
<4> Im not at the stage of releasin anything so I DONT CARE
<4> thats really weird coz the dx sample works fine
<4> uuuh
<7> lawlz
<7> check the \redist dir
<4> I must be really tired; Im using XACT and I say "I think I dont have it"
<4> I have 2 directx icons showing in the control panel
<4> I guess that's some sort of bad news
<1> I don't have any
<4> is there some tool to cleanup dx installs?
<1> When in doubt dxdiag
<4> it's saying I have "dx9" and not 9c
<4> wtf
<4> I prolly installed old runtimes over the new sdk
<1> Well that ****s
<3> pulse_, XACT isn't part of the runtimes
<3> actually thats not right
<3> its part of the *updated* runtimes, the end user installer
<3> afaik
<3> i didnt think it was possible to "downgrade" though.
<3> what does dxdiag say?
<1> Oh, XACT is Microsoft software? Never heard of it
<4> do you think installing old runtimes over a sdk could be the cause of my "cl*** not registered" error?
<4> checking
<4> dxdiag says 9.0c 4.09.0000.0904
<3> well then its 9.0c i guess
<3> i dont think installing an old runtime does anything
<3> dunno about the sdk runtime files
<3> like the ones that are specific to the sdk, debug dlls etc
<4> anyway, installing again
<4> and if it fails Ill try with the newest one
<4> and if that fails too, Ill go through the window
<3> pulse_, http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=2da43d38-db71-4c1b-bc6a-9b6652cd92a3
<3> this is the end-user runtime you want
<4> thanks
<3> it includes all the latest bits
<3> that is, your end users want this
<3> not you
<3> :P
<4> Ill install everything
<3> hm?
<3> all you have to do is install the August SDK
<3> after first uninstalling any previous SDK's
<4> would june be fine?
<3> depends which version of XACT you want, i havent checked if they updated it in Aug
<4> -e
<4> I want that version that can initialize fine :P
<6> hmm
<4> ah
<4> I had 2 icones, one for the runtime and the other for the sdk
<4> at least that's what I believe


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #directx
or
Go to some related logs:

ps2 gameshark no network
#computers
#photoshop
#gentoo
#beginner
#nhl
#beginner
#sex
#nhl
fuckingfatties



Home  |  disclaimer  |  contact  |  submit quotes