Search found 16 matches

by Buckethead
Wed Sep 26, 2007 11:09 pm
Forum: Problems
Topic: Lock/Unlock
Replies: 4
Views: 6107

Re: Lock/Unlock

Ok, now I think I get it. Lock/unlock should be used only with PutPixel/GetPixel (fast or slow version of it) It was in the help but I wanted to lock everything ;) On my example it's too bad because I can't use the same loop and calculation to draw the dots and text (dots are x,y and text y,x) Hehe ...
by Buckethead
Wed Sep 26, 2007 8:12 pm
Forum: Problems
Topic: Lock/Unlock
Replies: 4
Views: 6107

Re: Lock/Unlock

Thanks for your reply. I see what you tried to show me, I get it but I forgot to say that I've a MAV with PutPixel2/GetPixel2. This is why I use simple PutPixel instruction. The example I gave works on my machine. I can't explain the bugg on your machine, perhaps I'd set the var bad or something. No...
by Buckethead
Tue Sep 25, 2007 8:01 pm
Forum: Problems
Topic: Lock/Unlock
Replies: 4
Views: 6107

Lock/Unlock

On this example the dots on the background looks smooth in windowed mode but they're totally jerky in Fullscreen mode. I didn't save it, but I did other codes and it was jerky even in a window. I'd to 'force' Unlock instruction to display every effects in a frame. I'm pretty sure that's why I got th...
by Buckethead
Tue Sep 25, 2007 7:35 pm
Forum: Problems
Topic: PutPixel2
Replies: 7
Views: 8284

Re: PutPixel2

Nice, I've 12 FPS (without PutPixel2) I was mainly thinking on how I could open a large buffer (i.e. 4000x4000) to grab the pixels into the main screen. To create simple scroller, page flipping stuffs, or precalculated animation of 60 (or more) frames. Actually I'm far to need it, I tried CopyBox an...
by Buckethead
Mon Sep 24, 2007 7:02 pm
Forum: Problems
Topic: PutPixel2
Replies: 7
Views: 8284

Re: PutPixel2

Nice, now I can put the color I need. Thanks. I've no idea for this "MAV", I'm running under XP pro SP2, the lastest version of direct X. Intel E2140, 2 Go , 8800 GTS At least I can plot faster than dot x,y.. PutPixel works for me. But PutPixel2 4x fastest, amazing. I could run some 320*20...
by Buckethead
Sun Sep 23, 2007 11:51 am
Forum: Problems
Topic: Music and loop mode
Replies: 4
Views: 5397

Re: Music and loop mode

Great! 8-)
by Buckethead
Sat Sep 22, 2007 1:42 pm
Forum: Problems
Topic: Music and loop mode
Replies: 4
Views: 5397

Re: Music and loop mode

Thanks. First I got a "code 42" with PlaySound. I'd to modify it a bit. It load the sample in memory so it's faster, it's not perfect but inside a routine that is not huge it's ok. (16 ms you can't hear, ~60 FPS) ... musicfile = LoadSound("sound.wav") musicchannel = PlaySound(mus...
by Buckethead
Sat Sep 22, 2007 1:06 pm
Forum: Problems
Topic: Music and loop mode
Replies: 4
Views: 5397

Music and loop mode

After many tests I couldn't make a perfect loop on a sample, I've this "Memory Access Violation" error message. music = PlaySound("sound.wav") SetSound music,1,100,0 1 should repeat the sample, but it result in a crash. SetSound Manipulates a playing channel realtime. You can, fo...
by Buckethead
Fri Sep 21, 2007 5:07 pm
Forum: Problems
Topic: PutPixel2
Replies: 7
Views: 8284

Re: PutPixel2

There's still this "memory access violation" error msg. The locked buffer works with usual putpixel, somehow I wonder what PutPixel2 do compare to PutPixel. Is it faster, or maybe it's something deeper with adresses etc ? (from this exemple it's seem to be simple as PutPixel) Now you put i...
by Buckethead
Fri Sep 21, 2007 9:12 am
Forum: Problems
Topic: PutPixel2
Replies: 7
Views: 8284

PutPixel2

Hello, I need an example with this function. GetPixel2, PutPixel2 The same as above, but for locked buffers only. I'm under the impression it's a faster way to plot a dot. I get a "memory access violation" when I use PutPixel2. All I need it's to fill pixel per pixel the whole window witho...
by Buckethead
Thu Sep 20, 2007 6:27 pm
Forum: Problems
Topic: Fullscreen
Replies: 8
Views: 8100

Re: Fullscreen

Thanks for your feedback. The problem was DrawScreen function mode: 0=GFX Card VSync, 1=CPU Vsync (default) (weird because it's the default value) DrawScreen 1 , 1 gives the same framerate than windowed mode now :D Edit: Weird. Today it worked in full frame rate without the need to put "1,1&quo...
by Buckethead
Thu Sep 20, 2007 4:34 pm
Forum: Problems
Topic: Fullscreen
Replies: 8
Views: 8100

Re: Fullscreen

FrameLimit 40 is 31 FPS in fullscreen mode with stuff or not.
It could be a problem with my machine, I wonder. It would be nice if someone tried this code and said how he got.

Code: Select all

SCREEN 800,600,16,0
Repeat
Text 1,1,FPS()
DrawScreen
Forever
by Buckethead
Thu Sep 20, 2007 4:08 pm
Forum: Problems
Topic: Fullscreen
Replies: 8
Views: 8100

Re: Fullscreen

My screen setting is 1680x1050x32. In fullscreen the frame rate is never > 31 FPS but a 1680x1050 window can be 60.
I wanted to test if there was something with the text functions, I even tried other font, but it doesn't accept a system font like terminal (it has no antialias)
by Buckethead
Thu Sep 20, 2007 3:42 pm
Forum: Problems
Topic: Sidescroller jumping
Replies: 6
Views: 6799

Re: Sidescroller jumping

I'll use a cos/sin function. 20*Sin(t) is a vertical jump of 20 pixels, t is 0 to 180° otherwise there's a problem with the sign. You can add the speed on X with speed = speed -1 until it's 0 or let the keys makes this work. SCREEN 640,480 Text 0,0, "Press any key to jump..." Dot 320,240 W...
by Buckethead
Thu Sep 20, 2007 2:31 pm
Forum: Problems
Topic: Fullscreen
Replies: 8
Views: 8100

Re: Fullscreen

Ha nice with drawscreen. Otherwise it seem's that I can't get more than 31 FPS in any fullscreen mode (320x200 to 1680x1050 @ 8,16 & 32) even without stuff.

Code: Select all

SCREEN 800,600,16,0
Repeat
Print FPS()
'Text 1,1,FPS()
DrawScreen
Forever
by Buckethead
Thu Sep 20, 2007 10:32 am
Forum: Problems
Topic: Fullscreen
Replies: 8
Views: 8100

Fullscreen

Hi, When I'm running my routine, it's kind smooth in windowed mode (full frame rate at 60 FPS on a 22" LCD) but it is not in fullscreen (30 FPS!) I tryed differents bit depth, but it was the same, half speed only. Also in windowed mode it's fast but the pixel looks like a line when the step is ...