optimisation question - one object throught two layouts

New releases and general discussions.

Post » Tue Jul 14, 2009 9:48 pm

I want to use the same object in two layouts, but I don't want to mark it global (because it would appear in third layout), so the question is, will the object consume two times the memory when exporting to exe / placing textures in vram if I load textures for both layouts earlier?
B
81
S
50
G
10
Posts: 555
Reputation: 13,059

Post » Tue Jul 14, 2009 10:18 pm

If it's the same object type, it won't use any more memory. Object images are global to the application per object type, no matter how many of them there are and which layouts they're in.
Scirra Founder
B
373
S
218
G
83
Posts: 23,433
Reputation: 185,806

Post » Wed Jul 15, 2009 11:14 pm

even if it isn't marked as global? great :)

and now for something completely different, in everything angle-related (i.e. action - set angle) I can see "0 - 360" expression. well, 360 == 0. just a quick thought :) shouldn't it be 0-359 or 1 - 360 ? :)

oh, before I forget. it may be a total noob question, but, when changing sampling type from "linear" to "point" (app properties), does it somehow affect (speeds up) rendering? does it have to do with hardware / software rendering? or am I just making this up?
B
81
S
50
G
10
Posts: 555
Reputation: 13,059

Post » Thu Jul 16, 2009 12:23 am

You can have fractions of a degree, so you can have 0.1 or 359.9.
Moderator
B
91
S
32
G
33
Posts: 3,005
Reputation: 27,542

Post » Thu Jul 16, 2009 10:58 am

[quote="Arima":9p8qjphv]You can have fractions of a degree, so you can have 0.1 or 359.9.[/quote:9p8qjphv]
wow, didn't think of that this way :D
B
81
S
50
G
10
Posts: 555
Reputation: 13,059

Post » Thu Jul 16, 2009 1:58 pm

[quote="ranma":2kuo7dsz]when changing sampling type from "linear" to "point" (app properties), does it somehow affect (speeds up) rendering?[/quote:2kuo7dsz]
Sometimes, but I think modern graphics cards are so good at linear filtering there might not be a difference. You can always see for yourself comparing each mode with an unlimited framerate.
Scirra Founder
B
373
S
218
G
83
Posts: 23,433
Reputation: 185,806


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 5 guests