ranma's Recent Forum Activity

  • Is it possible to resize the window of a direct X game without the image interpolation / blurriness? It's ruining my graphics! I'm using the window object btw, not dragging the window.

    application properties -> scroll down to runtime properties if you have to -> sampling -> change to "point" and there you go!

    edit: also you might wanna consider changing the text rendering to aliased. cheers!

  • wtf moonspeak

  • You need to replace the NULL bytes (which automatically terminates a string) with something else.

    For example:

    f = open("python_error.jpg", "rb")

    text = f.read().replace('\x00','\x32')

    f.close()

    EditBox.SetText(text)

    Example .cap: http://www.box.net/shared/rkknb1p4uk

    you, dear sir, just won one free internet. big love!

  • well, how do I?

    i thought i'm fairly familiar with python, until my simple

    f = open("new.jpg", "r")
    text = f.read()
    f.close()
    EditBox.SetText(text)[/code:3fsqu5d5]
    
    did return some bull:!:hit. again, i'd like to read jpeg into editbox JUST LIKE windows' notepad does, halp plox  
    
    edit: "rb" mode also does not work
    
    edit2: of course .txt file are read with no problems :/
  • well, I'm trying to read a string from a jpeg file. the thing is, some image editors save a lot of useful data in the file (exif) which i'd like to read from my app. i was trying to open jpeg with editbox's load file action, no go. also i'm afraid this would be not so efficient. so is there any way to accomplish this one? the best way i'd like to do it is somehow read jpegs like windows' notepad does when you opens them. thanks in advance.

  • ...You could always find out by reading the wiki

    i lol'd

  • 0-255 r,g, and b

    System expression RGB(Red, Green, Blue)

    well, yeah. I was wondering how more more these kind of hidden things were there

  • well I just discovered this myself and thought I share.

    you CAN USE mousex("layer 2") to retrieve mouse position on "layer 2" LAYER!

    thinking about layer zoom now?

    anyway, I wonder how many features there are that people don't know about (like right clicking the color square when making an event to change color filter, where you can enter numeric values even from private/global variables) can I get a list of them?

  • The 120fps was just something I left it at, it works without lag at 60fps, 20fps, 900fps too.

    well, it does not, when i set the fixed framerate to 60 it behaves exactly as when i turn the v-synced mode.

    also,

    V-Synced: [...] The best quality and smoothest display. Games should all use this option.

    The point was, turning v-synch off solves the problem

    I'm confused

    Thank you Madster for explaining, but i don't think the lag is 2 frames, if my monitor draws 60 frames per second, the lag seems more like about 10 frames (well, now, after fiddling with the nvidia control panel). please also don't jump to conclusions that it's bad lcd, because the hardware mouse cursor does not lag whatsoever.

    Any ideas how to lower the lag even more, to the twoframes from the Madster explanation?

  • Turn v-synch off though and either using unlimited (not recommended obviously) or fixed, removes any lag. So it's obviously down to the v-synch in some way. Just a shame things look bad without it heh.

    well, you set the fixed framerate to 120fps. when someone has 85hz monitor, ther will be visible choppy display. also, when I set fixed framerate to 60 fps (my screen refresh rate), the lag is still there. (i believe in 120fps, it is there also, but half as visible)

    Edit: Ok more testing and yup. Turn v-synch off and there's absolutely no lag whatsoever.

    nope. i set the vsync to "force off" in nvidia control panel - no difference sadly so for me to minimise the lag, the settings are "max pre rendered frames - 0, tripple buffer - off, vertical synchrtonization - use application setting/off/on - does not make a difference)

    i'm still using the v-synced display in construct, as using fixed or unlimited is bad - the way you see it, setting the app to fixed 120 lowers the lag, you can set it to 240 and lower it more, this is not the way to do things here also i'm not saying this is a construct problem, but still i'd like to know how to overcome it.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • > well, i think turning off the triple buffering AND setting the "max frames to pre-render" to 0 (default was 3 for some reason) lowers the lag A LOT.

    >

    Out of interest, where were those settings? Are they in your graphics card driver options? What make is your graphics card?

    in the freaking "nvidia control panel". this said, my graphic card is nvidia geforce 9600gt. i was on 6600gt earlier and there was no lag, but i don't think this is the problem, i'd still bet on the triple buffering and th pre-rendered frames thing.

  • I'm not sure why this happens. I guess it would be useful to narrow it down to a single setting.

    I can't see how Construct could cause more than two or three frames latency given double buffering, which should appear almost instant. It might be something to do with graphics cards settings, VSync, mouse settings, or a combination. I don't know of anything I could do to rectify this at all; as far as my code does, it gets the mouse position and draws it, all in the same frame, so I can't see where such a large delay would come from!

    well, i think turning off the triple buffering AND setting the "max frames to pre-render" to 0 (default was 3 for some reason) lowers the lag A LOT. it's still noticeable, but very little. as you all stated, little lag is "normal", i'm at the point you all are, so for this thanks but it would be great, if there was some way to get rid of the lag completely.

ranma's avatar

ranma

Member since 20 Feb, 2008

None one is following ranma yet!

Connect with ranma

Trophy Case

  • 16-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

19/44
How to earn trophies