#563
Posted 15 January 2016 - 01:37 AM
#564
Posted 15 January 2016 - 02:29 AM
FUNCTION MAN!, on 15 January 2016 - 01:11 AM, said:
I don't really see what's wrong with that. I mean, sure, from a 'real life' perspective it seems odd; but if it makes things simpler I don't see the issue.
#565
Posted 15 January 2016 - 11:11 PM

Given that the CC for 1.8 has been released we're one step closer, although Redirection is probably still top of the list.
Edited by oeed, 15 January 2016 - 11:16 PM.
#566
Posted 17 January 2016 - 02:54 AM
oeed, on 15 January 2016 - 11:11 PM, said:

Given that the CC for 1.8 has been released we're one step closer, although Redirection is probably still top of the list.
I think he's probably counting down the release to Redirection, then CraftOS 2.0 will probably get more attention.
If I had to guess. Maybe he's switched gears and that's a countdown to CraftOS 2.0. Who knows?
#569
Posted 17 January 2016 - 11:56 AM
cyanisaac, on 17 January 2016 - 02:54 AM, said:
Hmm actually that's probably more correct.
Also, sorry for the massive screenshot, OS X doesn't like scaling retina screenshots
#570
#571
Posted 20 January 2016 - 02:05 PM
#573
#574
Posted 20 January 2016 - 08:24 PM
Creator, on 20 January 2016 - 02:05 PM, said:
Pixel coords start at 0,0. I initially had them start at 1,1 to be more "lua-like", but it resulted in a lot of code ugly like "tilex = ((pixelx - 1)/tilewidth) + 1". One of the benefits of developing this in private is I can go back on bad API decisions
#575
Posted 20 January 2016 - 08:25 PM
dan200, on 20 January 2016 - 08:24 PM, said:
Creator, on 20 January 2016 - 02:05 PM, said:
Pixel coords start at 0,0. I initially had them start at 1,1 to be more "lua-like", but it resulted in a lot of code ugly like "tilex = ((pixelx - 1)/tilewidth) + 1". One of the benefits of developing this in private is I can go back on bad API decisions
Thank you!
Edited by Creator, 20 January 2016 - 09:40 PM.
#576
Posted 21 January 2016 - 12:02 AM
dan200, on 20 January 2016 - 08:24 PM, said:
Oh dear. Not that that's a bad thing, I think it's good.
...it's just the 19 thousand lines I've gotta update to use a zero based coordinate system
#577
Posted 21 January 2016 - 02:01 AM
oeed, on 21 January 2016 - 12:02 AM, said:
dan200, on 20 January 2016 - 08:24 PM, said:
Oh dear. Not that that's a bad thing, I think it's good.
...it's just the 19 thousand lines I've gotta update to use a zero based coordinate system
Edited by Waitdev_, 21 January 2016 - 02:02 AM.
#578
Posted 21 January 2016 - 02:08 AM
Waitdev_, on 21 January 2016 - 02:01 AM, said:
oeed, on 21 January 2016 - 12:02 AM, said:
dan200, on 20 January 2016 - 08:24 PM, said:
Oh dear. Not that that's a bad thing, I think it's good.
...it's just the 19 thousand lines I've gotta update to use a zero based coordinate system
That won't work too well. A lot of basic UI calculations, like text centering, are different depending on whether the pixels start at 0 or 1, for example.
#579
Posted 22 January 2016 - 03:21 AM
dan200, on 15 January 2016 - 01:37 AM, said:
Another thing on the file system, what is the speed like? I noticed a few things slowing down and realised that it was the file system reading files.
Essentially, when you have binary images files that are 24+ kilobytes the fastest I could possibly get it reading was about 0.05 seconds (average of 100 trials) in Minecraft (i.e. not an emulator). It mightn't sound terrible, but that simply isn't viable. If you're trying to display just a handful of those the system will freeze for a noticeable amount of time, especially when the user is used to 60ish FPS.
Here's the code I was using to test it. Note, I'm not actually doing anything with the data. I'm literally just reading the bytes.
local s = os.clock() local n = 100 for i = 1, n do local handle = fs.open( "Arc de Triomphe.ucg", "rb" ) if handle then local read = handle.read local lastByte repeat lastByte = read() until not lastByte handle.close() end end print( "Total time: "..( os.clock() - s ) / n )
Given the likely increase in fairly large binary files, I'd be good if this could be improved upon.
We don't really know much about how the file system works, but if it's fairly similar to the CC method I'd suggest creating a .readAll function for binary files that returns a table of all the bytes (as numbers).
Edited by oeed, 22 January 2016 - 03:22 AM.
#580
Posted 22 January 2016 - 03:42 PM
#581
Posted 22 January 2016 - 06:07 PM
oeed, on 21 January 2016 - 12:02 AM, said:
dan200, on 20 January 2016 - 08:24 PM, said:
Oh dear. Not that that's a bad thing, I think it's good.
...it's just the 19 thousand lines I've gotta update to use a zero based coordinate system
#582
Posted 22 January 2016 - 06:12 PM
Konlab, on 22 January 2016 - 06:07 PM, said:
oeed, on 21 January 2016 - 12:02 AM, said:
dan200, on 20 January 2016 - 08:24 PM, said:
Oh dear. Not that that's a bad thing, I think it's good.
...it's just the 19 thousand lines I've gotta update to use a zero based coordinate system
It adds an extra layer of operations significantly slowing everything down.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











